[packages/lxinput] - updated to 0.3.5

qboosh qboosh at pld-linux.org
Sat May 6 07:40:40 CEST 2023


commit 1cc37076a918323333e546b28cd1bd76b806756e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat May 6 07:43:03 2023 +0200

    - updated to 0.3.5

 lxinput.spec | 41 ++++++++++++++++++++++++++++++-----------
 1 file changed, 30 insertions(+), 11 deletions(-)
---
diff --git a/lxinput.spec b/lxinput.spec
index b913eb2..19c40e2 100644
--- a/lxinput.spec
+++ b/lxinput.spec
@@ -1,37 +1,56 @@
-# TODO
-# - gtk3 possible:   --enable-gtk3           enable to use gtk-3.0 instead of gtk-2.0
+#
+# Conditional build:
+%bcond_with	gtk3	# use GTK+3 instead of GTK+2
+
 Summary:	Keyboard and mouse configurator for LXDE
+Summary(pl.UTF-8):	Konfigurator klawiatury i myszy dla LXDE
 Name:		lxinput
-Version:	0.3.2
-Release:	2
+Version:	0.3.5
+Release:	1
 License:	GPL v3
 Group:		X11/Applications
-Source0:	http://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.gz
-# Source0-md5:	5bf563d04984ef2a147433f3bdda687b
+Source0:	https://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.xz
+# Source0-md5:	69680debaef053d540ae3a5f4b237150
 URL:		http://www.lxde.org/
 BuildRequires:	gettext-tools
-BuildRequires:	gtk+2-devel >= 2:2.12.0
+%{!?with_gtk3:BuildRequires:	gtk+2-devel >= 2:2.12.0}
+%{?with_gtk3:BuildRequires:	gtk+3-devel >= 3.0.0}
 BuildRequires:	intltool >= 0.40
 BuildRequires:	pkgconfig
+BuildRequires:	tar >= 1:1.22
+BuildRequires:	xz
+%{!?with_gtk3:Requires:	gtk+2 >= 2:2.12.0}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 LXInput is a small program used to configure keyboard and mouse for
 LXDE.
 
+%description -l pl.UTF-8
+LXInput to mały program, służący do konfiguracji klawiatury i myszy
+dla LXDE.
+
 %prep
 %setup -q
 
 %build
-%configure
-%{__make} V=1
+%configure \
+	%{?with_gtk3:--enable-gtk3} \
+	--disable-silent-rules
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
+
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
-%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/{frp,ur_PK,tt_RU}
+# unify name
+%{__mv} $RPM_BUILD_ROOT%{_localedir}/{tt_RU,tt}
+# not supported by glibc
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/frp
+# duplicate of ur
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ur_PK
 
 %find_lang %{name}
 
@@ -44,4 +63,4 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/lxinput
 %{_desktopdir}/lxinput.desktop
 %{_datadir}/lxinput
-%{_mandir}/man1/lxinput*
+%{_mandir}/man1/lxinput.1*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lxinput.git/commitdiff/1cc37076a918323333e546b28cd1bd76b806756e



More information about the pld-cvs-commit mailing list