[packages/lxshortcut] - pl, cleanup
qboosh
qboosh at pld-linux.org
Fri May 5 21:21:03 CEST 2023
commit 4670b5ea241e2bdcd5209d096128334aeb65c895
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri May 5 21:23:27 2023 +0200
- pl, cleanup
lxshortcut.spec | 33 +++++++++++++++++++--------------
1 file changed, 19 insertions(+), 14 deletions(-)
---
diff --git a/lxshortcut.spec b/lxshortcut.spec
index f8425bb..9500f7c 100644
--- a/lxshortcut.spec
+++ b/lxshortcut.spec
@@ -1,52 +1,57 @@
#
# Conditional build:
-%bcond_with gtk3 # build GTK+3 disables GTK+2
-%bcond_without gtk2 # build with GTK+2
-
-%if %{with gtk3}
-%undefine with_gtk2
-%endif
+%bcond_with gtk3 # use GTK+3 instead of GTK+2
Summary: Program to edit application shortcuts
+Summary(pl.UTF-8): Program do modyfikowania skrótów do aplikacji
Name: lxshortcut
Version: 0.1.2
Release: 4
-License: GPL v3
+License: GPL v2+
Group: X11/Applications
-Source0: http://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.gz
+Source0: https://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.gz
# Source0-md5: 72f0dfafa8098be853beae6e33b5e13b
-URL: http://wiki.lxde.org/en/LXShortCut
+URL: http://www.lxde.org/
BuildRequires: gettext-tools
-%{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.12.0}
-%{?with_gtk3:BuildRequires: gtk+3-devel}
+BuildRequires: glib2-devel >= 2.0
+%{!?with_gtk3:BuildRequires: gtk+2-devel >= 2:2.12.0}
+%{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0.0}
+BuildRequires: intltool
BuildRequires: pkgconfig
+%{!?with_gtk3:Requires: gtk+2 >= 2:2.12.0}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
LXShortcut is a small program used to edit application shortcuts
created with freedesktop.org Desktop Entry spec.
+%description -l pl.UTF-8
+LXShortcut to mały program służący do modyfikowania skrótów do
+aplikacji tworzonych zgodnie ze specyfikacją freedesktop.org Desktop
+Entry.
+
%prep
%setup -q
%build
%configure \
%{?with_gtk3:--enable-gtk3}
-touch po/stamp-it
+
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
+
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+# unify name
+%{__mv} $RPM_BUILD_ROOT%{_datadir}/locale/{tt_RU,tt}
# duplicate of ur
%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/ur_PK
# unsupported by glibc
%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/frp
-mv $RPM_BUILD_ROOT%{_datadir}/locale/tt{_RU,}
-
%find_lang %{name}
%clean
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/lxshortcut.git/commitdiff/4670b5ea241e2bdcd5209d096128334aeb65c895
More information about the pld-cvs-commit
mailing list