[packages/parcellite] - up to 1.2.6; - changed source (from fedora); - switched to cmake;
mrozowik
mrozowik at pld-linux.org
Tue Oct 3 21:52:08 CEST 2023
commit 09008ab84b0c8df5fe8aa4ebc48bf256dfaf992d
Author: Krzysztof Mrozowicz <mrozowik at pld-linux.org>
Date: Tue Oct 3 19:42:02 2023 +0000
- up to 1.2.6;
- changed source (from fedora);
- switched to cmake;
parcellite-startup.desktop | 10 ++++++++++
parcellite.spec | 45 +++++++++++++++++++--------------------------
2 files changed, 29 insertions(+), 26 deletions(-)
---
diff --git a/parcellite.spec b/parcellite.spec
index 0cd8490..940f993 100644
--- a/parcellite.spec
+++ b/parcellite.spec
@@ -1,20 +1,18 @@
Summary: GTK+ clipboard manager
-Summary(pl.UTF-8): zarządca schowska stworzony w GTK+
+Summary(pl.UTF-8): Zarządca schowka stworzony w GTK+
Name: parcellite
-Version: 1.2.1
+Version: 1.2.6
Release: 1
License: GPL v3
Group: X11/Applications
-Source0: http://downloads.sourceforge.net/parcellite/%{name}-%{version}.tar.gz
-# Source0-md5: f7d5ca3a31c7a558cf56b77e4e7cdc6c
-URL: http://parcellite.sourceforge.net/
-BuildRequires: autoconf
-BuildRequires: automake
-BuildRequires: gettext-tools
+Source0: https://github.com/ZaWertun/parcellite/archive/refs/tags/%{version}.tar.gz
+# Source0-md5: 3875fd547557a99711da4d3087948b1c
+Source1: %{name}-startup.desktop
+URL: https://parcellite.sourceforge.net/
+BuildRequires: cmake >= 3.1
BuildRequires: glib2-devel >= 2.14.0
BuildRequires: gtk+2-devel >= 2.10.0
-BuildRequires: intltool
-BuildRequires: libtool
+BuildRequires: intltool >= 0.23
BuildRequires: pkgconfig
Suggests: xdotool
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -29,21 +27,16 @@ Parcellite to lekki zarządca schowka stworzony w GTK+.
%setup -q
%build
-%{__intltoolize}
-%{__libtoolize}
-%{__aclocal}
-%{__autoheader}
-%{__automake}
-%{__autoconf}
-
-%configure
-
-%{__make}
+%cmake -B build
+%{__make} -C build
%install
rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/etc/xdg/autostart
+cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/xdg/autostart
+install -D data/%{name}.appdata.xml $RPM_BUILD_ROOT%{_datadir}/metainfo/%{name}.appdata.xml
-%{__make} install \
+%{__make} -C build install \
DESTDIR=$RPM_BUILD_ROOT
# duplicate of pl
@@ -57,10 +50,10 @@ rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(644,root,root,755)
%attr(755,root,root)%{_bindir}/%{name}
-%doc AUTHORS ChangeLog COPYING README NEWS TODO
+%doc AUTHORS ChangeLog README.md
%{_mandir}/man1/%{name}.1*
%{_sysconfdir}/xdg/autostart/parcellite-startup.desktop
-%{_desktopdir}/%{name}.desktop
-%{_pixmapsdir}/%{name}.png
-%{_pixmapsdir}/%{name}.xpm
-%{_pixmapsdir}/%{name}.svg
+%{_desktopdir}/parcellite.desktop
+%{_iconsdir}/hicolor/*x*/apps/parcellite.png
+%{_iconsdir}/hicolor/scalable/apps/parcellite.svg
+%{_datadir}/metainfo/parcellite.appdata.xml
diff --git a/parcellite-startup.desktop b/parcellite-startup.desktop
new file mode 100644
index 0000000..954f677
--- /dev/null
+++ b/parcellite-startup.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=Parcellite
+Comment=Clipboard Manager
+Icon=parcellite
+Exec=parcellite
+Terminal=false
+Type=Application
+X-GNOME-Autostart-enabled=true
+Categories=TrayIcon;
+OnlyShowIn=GNOME;KDE;LXDE;MATE;XFCE;
\ No newline at end of file
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/parcellite.git/commitdiff/09008ab84b0c8df5fe8aa4ebc48bf256dfaf992d
More information about the pld-cvs-commit
mailing list