summaryrefslogtreecommitdiff
path: root/copyq/stackrpms-copyq.spec.diff
blob: 4af7cf1f9f19b189e6dd14f47513fe30a738832a (plain)
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
--- fedora/copyq.spec	2019-11-12 11:36:41.794801633 -0500
+++ stackrpms/copyq.spec	2019-11-12 11:52:29.115005959 -0500
@@ -1,15 +1,23 @@
+%define with_html 1
 %global project      CopyQ
 Name:    copyq 
 Summary: Advanced clipboard manager
 Version: 3.9.2
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: GPLv3+
 Url:     https://hluk.github.io/%{project}/
 Source0: https://github.com/hluk/%{project}/archive/v%{version}.tar.gz#/%{project}-%{version}.tar.gz
 BuildRequires: libXtst-devel, libXfixes-devel, desktop-file-utils
-BuildRequires: kf5-rpm-macros, qt5-qtbase-devel, qt5-qtwebkit-devel, qt5-qtsvg-devel
+BuildRequires: kf5-rpm-macros, qt5-qtbase-devel, qt5-qtsvg-devel
 BuildRequires: qt5-qttools-devel, qt5-qtscript-devel, qwt-qt5-devel, qt5-qtx11extras-devel
-BuildRequires: extra-cmake-modules, appstream-qt-devel, libappstream-glib
+BuildRequires: extra-cmake-modules, appstream-qt-devel
+%if 0%{?rhel} >= 8
+%else
+BuildRequires: qwt-devel
+%endif
+%if 0%{?with_html}
+BuildRequires: qt5-qtwebkit-devel
+%endif
 
 %description
 CopyQ is advanced clipboard manager with searchable and editable history with
@@ -35,7 +43,6 @@
 
 %check
 desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/com.github.hluk.%{name}.desktop
-appstream-util validate-relax --nonet $RPM_BUILD_ROOT%{_datadir}/metainfo/com.github.hluk.%{name}.appdata.xml
 
 %files -f %{name}.lang
 %doc AUTHORS CHANGES HACKING README.md
@@ -52,6 +59,9 @@
 %{_mandir}/man1/%{name}.1.*
 
 %changelog
+* Tue Nov 12 2019 B Stack <bgstack15@gmail.com> - 3.9.2-2
+- Adapted for CentOS 7 and 8
+
 * Sun Aug 25 2019 Gerald Cox <gbcox@fedoraproject.org> - 3.9.2-1
 - Upstream release rhbz#1742997
 
bgstack15