-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
HNEWizard.spec
116 lines (94 loc) · 2.86 KB
/
HNEWizard.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
Name: HikNetExtractor
Summary: HikNetExtractor for Hikvision
Version: 1.0.11
%global Rel 3
%if 0%{?mageia}
Release: %mkrel %{Rel}
%elif 0%{?fedora} > 36 || 0%{?rhel} > 6
Release: %{Rel}.surf%{?dist}
%else
Release: %{Rel}.surf.mlo
%endif
License: GPLv3
Group: Video/Players
URL: https://github.com/surfzoid/HNEWizard
Source0: https://github.com/surfzoid/HNEWizard/archive/%{version}/HNEWizard-%{version}.tar.gz
# List of additional build dependencies
%if 0%{?mageia}
BuildRequires: qtbase5-common-devel
BuildRequires: pkgconfig(Qt5Widgets)
%else
%if 0%{?suse_version}
BuildRequires: libqt5-qtbase-devel
%else
BuildRequires: pkgconfig(Qt5)
%endif
%endif
BuildRequires: wget
BuildRequires: unzip
Requires: qtbase5-common
Requires: %{name}-python = %{version}
%description
A wizard to configure and install HikNetExtractor https://github.com/surfzoid/HikNetExtractor
%package python
Summary: Extract periodically record event from Hikvion camera or NVR.
Group: Networking/Other
Requires: %{name} = %{version}
Requires: python3
%description python
Provides functionality to extract periodically record event from
Hikvion camera or NVR with ISAPI and HTTPDigestAuth enable.
Add this script to an schedule task and you will keep records
during the number of day you put in the config or
use the GUI wizard /usr/bin/HikNetExtractor.
%prep
%autosetup -n HNEWizard-%{version}
%build
%if 0%{?suse_version}
#find /|grep -i qmake
/usr/bin/qmake-qt5
%else
%qmake_qt5
%endif
%make_build
%install
%make_install INSTALL_ROOT=%{buildroot}%{_datadir}
%find_lang %{name} --with-qt --all-name
mkdir -p %{buildroot}%{_datadir}/HikNetExtractor/template/
wget https://github.com/surfzoid/HikNetExtractor/archive/refs/heads/main.zip
unzip -o ./main.zip
cd ./HikNetExtractor-main/
cp -fv ./*.py %{buildroot}%{_datadir}/HikNetExtractor/template/
cp -fv ./LICENSE %{buildroot}%{_datadir}/HikNetExtractor/template/
cp -fv ./README.md %{buildroot}%{_datadir}/HikNetExtractor/template/
%post
%clean
rm -rf %buildroot
chmod -R ug+rw %{_rpmdir}
chmod -R ug+rw %{_srcrpmdir}
%files
%if 0%{?mageia}
%license LICENSE
%doc README.md
%else
%{_datadir}/doc/HikNetExtractor/README.md
%{_datadir}/licenses/HikNetExtractor/LICENSE
%endif
%{_bindir}/HikNetExtractor
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hiknetextractor.png
%{_datadir}/HikNetExtractor/translations/HNEWizard_fr_FR.qm
%files python
%{_datadir}/HikNetExtractor/template/
%changelog
* Sat May 6 2023 [email protected]
+ Split in bin and python-hiknetextractor rpms.
* Sat Apr 22 2023 [email protected]
+ when start, test and display phyton version.
+ check if hiknetextractor-python is Here.
+ sugest deb, rpm repo or for windoze download.
* Sat Apr 15 2023 [email protected]
+ Windoze schedle task.
+ Cosmetics.
* Mon Feb 06 2023 [email protected]
+ First release.