]>
Commit | Line | Data |
---|---|---|
b2d4e942 | 1 | %define qtver 5.8.0 |
2 | ||
7b86f3e3 | 3 | Summary: Advanced clipboard manager with editing and scripting features |
4 | Name: copyq | |
a43380fd | 5 | Version: 4.1.0 |
7b86f3e3 | 6 | Release: 1 |
7 | License: GPL v3+ | |
8 | Group: X11/Applications | |
9 | Source0: https://github.com/hluk/CopyQ/archive/v%{version}/%{name}-%{version}.tar.gz | |
a43380fd | 10 | # Source0-md5: 4df535288b6e88222ec2eda353df655c |
7b86f3e3 | 11 | Patch0: %{name}-plugindir.patch |
12 | URL: https://hluk.github.io/CopyQ/ | |
b2d4e942 | 13 | BuildRequires: Qt5Core-devel >= %{qtver} |
14 | BuildRequires: Qt5Gui-devel >= %{qtver} | |
15 | BuildRequires: Qt5Network-devel >= %{qtver} | |
16 | BuildRequires: Qt5Qml-devel >= %{qtver} | |
17 | BuildRequires: Qt5Script-devel >= %{qtver} | |
18 | BuildRequires: Qt5Svg-devel >= %{qtver} | |
19 | BuildRequires: Qt5WaylandClient-devel >= %{qtver} | |
20 | BuildRequires: Qt5Widgets-devel >= %{qtver} | |
21 | BuildRequires: Qt5X11Extras-devel >= %{qtver} | |
22 | BuildRequires: Qt5Xml-devel >= %{qtver} | |
7b86f3e3 | 23 | BuildRequires: cmake >= 2.8.12 |
b2d4e942 | 24 | BuildRequires: kf5-extra-cmake-modules >= 5.18.0 |
25 | BuildRequires: kf5-knotifications-devel >= 5.18.0 | |
26 | BuildRequires: libstdc++-devel >= 6:7 | |
27 | BuildRequires: libxcb-devel | |
7b86f3e3 | 28 | BuildRequires: qt5-linguist |
b2d4e942 | 29 | BuildRequires: rpm-build >= 4.6 |
30 | BuildRequires: rpmbuild(macros) >= 1.605 | |
31 | BuildRequires: xorg-lib-libX11-devel | |
32 | BuildRequires: xorg-proto-xproto-devel | |
33 | Requires: Qt5Core >= %{qtver} | |
34 | Requires: Qt5Gui >= %{qtver} | |
35 | Requires: Qt5Network >= %{qtver} | |
36 | Requires: Qt5Qml >= %{qtver} | |
37 | Requires: Qt5Script >= %{qtver} | |
38 | Requires: Qt5Svg >= %{qtver} | |
39 | Requires: Qt5WaylandClient >= %{qtver} | |
40 | Requires: Qt5Widgets >= %{qtver} | |
41 | Requires: Qt5X11Extras >= %{qtver} | |
42 | Requires: Qt5Xml >= %{qtver} | |
7b86f3e3 | 43 | Requires: desktop-file-utils |
44 | Requires: hicolor-icon-theme | |
b2d4e942 | 45 | Requires: kf5-knotifications >= 5.18.0 |
7b86f3e3 | 46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
47 | ||
48 | %description | |
49 | CopyQ monitors system clipboard and saves its content in customized | |
50 | tabs. Saved clipboard can be later copied and pasted directly into any | |
51 | application. | |
52 | ||
b2d4e942 | 53 | %package -n bash-completion-copyq |
54 | Summary: Bash completion for CopyQ | |
55 | Group: Applications/Shells | |
56 | Requires: %{name} = %{version}-%{release} | |
57 | Requires: bash-completion >= 2.0 | |
58 | BuildArch: noarch | |
59 | ||
60 | %description -n bash-completion-copyq | |
61 | Bash completion for CopyQ. | |
62 | ||
7b86f3e3 | 63 | %prep |
64 | %setup -q -n CopyQ-%{version} | |
65 | %patch0 -p1 | |
66 | ||
67 | %build | |
68 | install -d build | |
69 | cd build | |
70 | %cmake .. \ | |
71 | -DDATA_INSTALL_PREFIX:PATH=%{_datadir} | |
72 | %{__make} | |
73 | ||
74 | %install | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | %{__make} -C build install \ | |
77 | DESTDIR=$RPM_BUILD_ROOT | |
78 | ||
79 | %find_lang %{name} --with-qm | |
80 | ||
81 | %clean | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %post | |
85 | %update_icon_cache hicolor | |
86 | %update_desktop_database | |
87 | ||
88 | %postun | |
89 | %update_icon_cache hicolor | |
90 | %update_desktop_database_postun | |
91 | ||
92 | %files -f %{name}.lang | |
93 | %defattr(644,root,root,755) | |
94 | %attr(755,root,root) %{_bindir}/copyq | |
95 | %dir %{_libdir}/copyq | |
96 | %dir %{_libdir}/copyq/plugins | |
97 | %attr(755,root,root) %{_libdir}/copyq/plugins/libitemencrypted.so | |
98 | %attr(755,root,root) %{_libdir}/copyq/plugins/libitemfakevim.so | |
99 | %attr(755,root,root) %{_libdir}/copyq/plugins/libitemimage.so | |
100 | %attr(755,root,root) %{_libdir}/copyq/plugins/libitemnotes.so | |
101 | %attr(755,root,root) %{_libdir}/copyq/plugins/libitempinned.so | |
102 | %attr(755,root,root) %{_libdir}/copyq/plugins/libitemsync.so | |
103 | %attr(755,root,root) %{_libdir}/copyq/plugins/libitemtags.so | |
104 | %attr(755,root,root) %{_libdir}/copyq/plugins/libitemtext.so | |
105 | %dir %{_datadir}/copyq | |
106 | %{_datadir}/copyq/themes | |
107 | %dir %{_datadir}/copyq/translations | |
108 | %{_desktopdir}/com.github.hluk.copyq.desktop | |
109 | %{_iconsdir}/hicolor/*x*/apps/copyq.png | |
110 | %{_iconsdir}/hicolor/scalable/apps/copyq.svg | |
111 | %{_iconsdir}/hicolor/scalable/apps/copyq_mask.svg | |
112 | %{_mandir}/man1/copyq.1* | |
113 | %{_datadir}/metainfo/com.github.hluk.copyq.appdata.xml | |
b2d4e942 | 114 | |
115 | %files -n bash-completion-copyq | |
116 | %defattr(644,root,root,755) | |
117 | %{bash_compdir}/copyq |