[packages/copyq] new (version 3.12.0)

atler atler at pld-linux.org
Sun Oct 4 18:19:14 CEST 2020


commit 7e34af635874d3495a976f7397fa8ee4e9dda053
Author: Jan Palus <atler at pld-linux.org>
Date:   Sun Oct 4 18:18:20 2020 +0200

    new (version 3.12.0)

 copyq-plugindir.patch | 12 ++++++++
 copyq.spec            | 80 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 92 insertions(+)
---
diff --git a/copyq.spec b/copyq.spec
new file mode 100644
index 0000000..4aac5ef
--- /dev/null
+++ b/copyq.spec
@@ -0,0 +1,80 @@
+Summary:	Advanced clipboard manager with editing and scripting features
+Name:		copyq
+Version:	3.12.0
+Release:	1
+License:	GPL v3+
+Group:		X11/Applications
+Source0:	https://github.com/hluk/CopyQ/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	fdcf14bf56bff75468b03b7a2d94d7ea
+Patch0:		%{name}-plugindir.patch
+URL:		https://hluk.github.io/CopyQ/
+BuildRequires:	Qt5Core-devel
+BuildRequires:	Qt5Gui-devel
+BuildRequires:	Qt5Network-devel
+BuildRequires:	Qt5Script-devel
+BuildRequires:	Qt5Svg
+BuildRequires:	Qt5Widgets-devel >= 5.5.0
+BuildRequires:	Qt5Xml-devel
+BuildRequires:	cmake >= 2.8.12
+BuildRequires:	qt5-linguist
+Requires:	Qt5Widgets >= 5.5.0
+Requires:	desktop-file-utils
+Requires:	hicolor-icon-theme
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+CopyQ monitors system clipboard and saves its content in customized
+tabs. Saved clipboard can be later copied and pasted directly into any
+application.
+
+%prep
+%setup -q -n CopyQ-%{version}
+%patch0 -p1
+
+%build
+install -d build
+cd build
+%cmake .. \
+	-DDATA_INSTALL_PREFIX:PATH=%{_datadir}
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} -C build install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%find_lang %{name} --with-qm
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%update_icon_cache hicolor
+%update_desktop_database
+
+%postun
+%update_icon_cache hicolor
+%update_desktop_database_postun
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/copyq
+%dir %{_libdir}/copyq
+%dir %{_libdir}/copyq/plugins
+%attr(755,root,root) %{_libdir}/copyq/plugins/libitemencrypted.so
+%attr(755,root,root) %{_libdir}/copyq/plugins/libitemfakevim.so
+%attr(755,root,root) %{_libdir}/copyq/plugins/libitemimage.so
+%attr(755,root,root) %{_libdir}/copyq/plugins/libitemnotes.so
+%attr(755,root,root) %{_libdir}/copyq/plugins/libitempinned.so
+%attr(755,root,root) %{_libdir}/copyq/plugins/libitemsync.so
+%attr(755,root,root) %{_libdir}/copyq/plugins/libitemtags.so
+%attr(755,root,root) %{_libdir}/copyq/plugins/libitemtext.so
+%dir %{_datadir}/copyq
+%{_datadir}/copyq/themes
+%dir %{_datadir}/copyq/translations
+%{_desktopdir}/com.github.hluk.copyq.desktop
+%{_iconsdir}/hicolor/*x*/apps/copyq.png
+%{_iconsdir}/hicolor/scalable/apps/copyq.svg
+%{_iconsdir}/hicolor/scalable/apps/copyq_mask.svg
+%{_mandir}/man1/copyq.1*
+%{_datadir}/metainfo/com.github.hluk.copyq.appdata.xml
diff --git a/copyq-plugindir.patch b/copyq-plugindir.patch
new file mode 100644
index 0000000..2958a62
--- /dev/null
+++ b/copyq-plugindir.patch
@@ -0,0 +1,12 @@
+diff --color -urN CopyQ-3.12.0.orig/CMakeLists.txt CopyQ-3.12.0/CMakeLists.txt
+--- CopyQ-3.12.0.orig/CMakeLists.txt	2020-07-12 11:15:04.000000000 +0200
++++ CopyQ-3.12.0/CMakeLists.txt	2020-10-04 17:21:02.130810256 +0200
+@@ -30,7 +30,7 @@
+ if (UNIX AND NOT APPLE)
+     include(GNUInstallDirs)
+     set(DATA_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATAROOTDIR}" CACHE PATH "Install path for data")
+-    set(PLUGIN_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}/${CMAKE_SHARED_MODULE_PREFIX}/copyq/plugins" CACHE PATH "Install path for plugins")
++    set(PLUGIN_INSTALL_PREFIX "${CMAKE_INSTALL_LIBDIR}/copyq/plugins" CACHE PATH "Install path for plugins")
+     set(ICON_INSTALL_PREFIX "${DATA_INSTALL_PREFIX}/icons/hicolor/scalable/apps" CACHE PATH "Install path for icons")
+     set(ICON_INSTALL_PREFIX_TEMPLATE "${DATA_INSTALL_PREFIX}/icons/hicolor/%SIZE%/apps" CACHE PATH "Install path for icons (%SIZE% is icon size)")
+     set(THEME_INSTALL_PREFIX "${DATA_INSTALL_PREFIX}/copyq/themes" CACHE PATH "Install path for themes")
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/copyq.git/commitdiff/7e34af635874d3495a976f7397fa8ee4e9dda053



More information about the pld-cvs-commit mailing list