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 surfzoid@gmail.com + Split in bin and python-hiknetextractor rpms. * Sat Apr 22 2023 surfzoid@gmail.com + 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 surfzoid@gmail.com + Windoze schedle task. + Cosmetics. * Mon Feb 06 2023 surfzoid@gmail.com + First release.