]> git.pld-linux.org Git - packages/lxinput.git/commitdiff
- updated to 0.3.5 auto/th/lxinput-0.3.5-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 6 May 2023 05:43:03 +0000 (07:43 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 6 May 2023 05:43:03 +0000 (07:43 +0200)
lxinput.spec

index b913eb2315b61c0d8aeb538b44bbe735e0ca0198..19c40e26d3082646473d71343650ec598c3aa854 100644 (file)
@@ -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*
This page took 0.125918 seconds and 4 git commands to generate.