1- %define qctools_version 1.2.1
1+ %define qctools_version 1.3
2+ %define debug_package %{nil }
3+ %define _unpackaged_files_terminate_build 0
24
35Name: qctools
46Version: %{qctools_version }
@@ -11,6 +13,7 @@ URL: http://MediaArea.net
1113Packager: MediaArea.net SARL < info@mediaarea.net>
1214Source0: %{name }_%{version }-1.tar.gz
1315
16+ Prefix: %{_prefix }
1417BuildRoot: %{_tmppath }/%{name }-%{version }-%{release }-root
1518BuildRequires: gcc-c++
1619BuildRequires: pkgconfig
@@ -22,42 +25,80 @@ BuildRequires: bzip2-devel
2225BuildRequires: libbz2-devel
2326%endif
2427%endif
25- %if ! 0%{?rhel }
2628BuildRequires: yasm
27- %endif
2829BuildRequires: cmake
2930%if 0%{?suse_version }
3031BuildRequires: update-desktop-files
3132%endif
3233
33- %if 0%{?suse_version } || 0%{?rhel }
34+ %if 0%{?rhel } > 7
35+ BuildRequires: alternatives
36+ %endif
37+
3438%if 0%{?suse_version } >= 1200
39+ BuildRequires: pkgconfig(Qt5Qml)
40+ BuildRequires: pkgconfig(Qt5Svg)
3541BuildRequires: pkgconfig(Qt5Core)
3642BuildRequires: pkgconfig(Qt5Widgets)
43+ BuildRequires: pkgconfig(Qt5Network)
3744BuildRequires: pkgconfig(Qt5Concurrent)
3845BuildRequires: pkgconfig(Qt5PrintSupport)
39- %else
40- BuildRequires: libqt4-devel
41- %endif
46+ BuildRequires: pkgconfig(Qt5QuickControls2)
47+ BuildRequires: pkgconfig(Qt5XmlPatterns)
48+ BuildRequires: pkgconfig(Qt5Multimedia)
49+ BuildRequires: libXv-devel
4250%endif
4351
44- %if 0%{?fedora }
52+ %if 0%{?fedora_version } || 0%{? rhel } > 7
4553BuildRequires: pkgconfig(Qt5)
54+ BuildRequires: pkgconfig(Qt5Qml)
55+ BuildRequires: pkgconfig(Qt5QuickControls2)
56+ BuildRequires: pkgconfig(Qt5Svg)
57+ BuildRequires: pkgconfig(Qt5XmlPatterns)
58+ BuildRequires: pkgconfig(Qt5Multimedia)
4659BuildRequires: desktop-file-utils
60+ BuildRequires: libXv-devel
4761%endif
4862
4963%if 0%{?mageia }
5064%ifarch x86_64
51- BuildRequires: lib64qt5base5-devel
5265BuildRequires: lib64bzip2-devel
66+ BuildRequires: lib64qt5qml-devel
67+ BuildRequires: lib64qt5base5-devel
68+ BuildRequires: lib64qt5quicktemplates2-devel
69+ BuildRequires: lib64qt5quicktemplates2_5
70+ BuildRequires: lib64qt5quickcontrols2-devel
71+ BuildRequires: lib64qt5quickcontrols2_5
72+ BuildRequires: lib64qt5quickwidgets-devel
73+ BuildRequires: lib64qt5multimedia-devel
74+ BuildRequires: lib64qt5svg-devel
75+ BuildRequires: lib64qt5xmlpatterns-devel
76+ BuildRequires: lib64qt5xmlpatterns5
5377%else
54- BuildRequires: libqt5base5-devel
5578BuildRequires: libbzip2-devel
79+ BuildRequires: libqt5qml-devel
80+ BuildRequires: libqt5base5-devel
81+ BuildRequires: libqt5quicktemplates2-devel
82+ BuildRequires: libqt5quicktemplates2_5
83+ BuildRequires: libqt5quickcontrols2-devel
84+ BuildRequires: libqt5quickcontrols2_5
85+ BuildRequires: libqt5quickwidgets-devel
86+ BuildRequires: libqt5multimedia-devel
87+ BuildRequires: libqt5svg-devel
88+ BuildRequires: libqt5xmlpatterns-devel
89+ BuildRequires: libqt5xmlpatterns5
90+ %endif
91+ %if 0%{?mageia } > 5
92+ BuildRequires: libproxy-pacrunner
5693%endif
5794BuildRequires: sane-backends-iscan
5895BuildRequires: libuuid-devel
5996%endif
6097
98+ %package -n qcli
99+ Summary: QCTools command line interface
100+ Group: Applications/Multimedia
101+
61102%description
62103QCTools (Quality Control Tools for Video Preservation)
63104
@@ -67,7 +108,21 @@ to help users detect corruptions or compromises in the results of analog video d
67108The goal of the project is to cut down the time it takes to perform high-quality video preservation
68109and direct time towards preservation issues that are solvable - for example, identifying tapes
69110that would benefit from a second transfer, saving not only the precious time of preservationists
70- and institutional resources, but giving collections a necessary advantage in the bigger race against time
111+ and institutional resources, but giving collections a necessary advantage in the bigger race against time
112+ to preserve their significant cultural artifacts. QCTools incorporates archival standards and best practices
113+ for reformatting and capturing metadata that enables the long-term preservation of and access to the original artifact,
114+ the digital object, and the associated catalog record.
115+
116+ %description -n qcli
117+ QCli - QCTools Command Line Interface
118+
119+ QCTools (Quality Control Tools for Video Preservation) is a free and open source software tool
120+ that helps users analyze and understand their digitized video files through use of audiovisual analytics and filtering
121+ to help users detect corruptions or compromises in the results of analog video digitization or in born-digital video.
122+ The goal of the project is to cut down the time it takes to perform high-quality video preservation
123+ and direct time towards preservation issues that are solvable - for example, identifying tapes
124+ that would benefit from a second transfer, saving not only the precious time of preservationists
125+ and institutional resources, but giving collections a necessary advantage in the bigger race against time
71126to preserve their significant cultural artifacts. QCTools incorporates archival standards and best practices
72127for reformatting and capturing metadata that enables the long-term preservation of and access to the original artifact,
73128the digital object, and the associated catalog record.
@@ -77,16 +132,15 @@ the digital object, and the associated catalog record.
77132
78133# build
79134pushd qctools
80- chmod 644 History.txt
81- chmod 644 License.html
82- ./Project/BuildAllFromSource/build
135+ chmod 644 History.txt
136+ chmod 644 License.html
137+ ./Project/BuildAllFromSource/build
83138popd
84139
85140%install
86- pushd qctools/Project/QtCreator
87- install -dm 755 %{buildroot }%{_bindir }
88- install -m 755 QCTools %{buildroot }%{_bindir }
89- popd
141+ install -dm 755 %{buildroot }%{_bindir }
142+ install -m 755 qctools/Project/QtCreator/build/qctools-gui/QCTools %{buildroot }%{_bindir }
143+ install -m 755 qctools/Project/QtCreator/build/qctools-cli/qcli %{buildroot }%{_bindir }
90144
91145# icon
92146install -dm 755 %{buildroot }%{_datadir }/icons/hicolor/256x256/apps
@@ -108,10 +162,20 @@ install -m 644 qctools/Project/GNU/GUI/qctools.kde3.desktop %{buildroot}/%{_data
108162install -dm 755 %{buildroot }/%{_datadir }/kde4/services/ServiceMenus/
109163install -m 644 qctools/Project/GNU/GUI/qctools.kde4.desktop \
110164 %{buildroot }/%{_datadir }/kde4/services/ServiceMenus/qctools.desktop
165+ install -dm 755 %{buildroot }/%{_datadir }/kservices5/ServiceMenus/
166+ install -m 644 qctools/Project/GNU/GUI/qctools.kde4.desktop \
167+ %{buildroot }/%{_datadir }/kservices5/ServiceMenus/qctools.desktop
111168%if 0%{?suse_version }
112169 %suse_update_desktop_file -n %{buildroot }/%{_datadir }/kde4/services/ServiceMenus/qctools.desktop AudioVideo AudioVideoEditing
170+ %suse_update_desktop_file -n %{buildroot }/%{_datadir }/kservices5/ServiceMenus/qctools.desktop AudioVideo AudioVideoEditing
171+ %endif
172+ %if %{undefined fedora_version} || 0%{?fedora_version } < 26
173+ install -dm 755 %{buildroot }%{_datadir }/appdata/
174+ install -m 644 qctools/Project/GNU/GUI/qctools.metainfo.xml %{buildroot }%{_datadir }/appdata/qctools.appdata.xml
175+ %else
176+ install -dm 755 %{buildroot }%{_datadir }/metainfo/
177+ install -m 644 qctools/Project/GNU/GUI/qctools.metainfo.xml %{buildroot }%{_datadir }/metainfo/qctools.metainfo.xml
113178%endif
114-
115179
116180%files
117181%defattr(-,root,root,-)
@@ -131,7 +195,21 @@ install -m 644 qctools/Project/GNU/GUI/qctools.kde4.desktop \
131195%dir %{_datadir }/kde4/services
132196%dir %{_datadir }/kde4/services/ServiceMenus
133197%{_datadir }/kde4/services/ServiceMenus/* .desktop
198+ %dir %{_datadir }/kservices5
199+ %dir %{_datadir }/kservices5/ServiceMenus
200+ %{_datadir }/kservices5/ServiceMenus/* .desktop
201+ %if 0%{?fedora_version } && 0%{?fedora_version } > = 26
202+ %dir %{_datadir }/metainfo
203+ %{_datadir }/metainfo/* .xml
204+ %else
205+ %dir %{_datadir }/appdata
206+ %{_datadir }/appdata/* .xml
207+ %endif
134208
209+ %files -n qcli
210+ %defattr(-,root,root,-)
211+ %doc qctools/License.html qctools/History.txt
212+ %{_bindir }/qcli
135213
136214%changelog
137215* Wed Jan 01 2014 MediaArea.net SARL <info@mediaarea.net> - 0.5.0
0 commit comments