Package lxde-lxinput: Specfile

%define upstreamname lxinput
%define gtkver 2
Name: lxde-%upstreamname
Version: 0.3.5
Release: alt1
Summary: Keyboard and mouse settings dialog for LXDE

Group: System/Configuration/Hardware
License: GPLv2+
Url: http://lxde.sourceforge.net/
#Url: git://git.lxde.org/lxde/lxinput.git

Packager: LXDE Development Team <lxde at packages.altlinux.org>

Source: %upstreamname-%version.tar

BuildRequires: docbook-dtds docbook-style-xsl intltool libgtk+%gtkver-devel xsltproc
Requires: lxde-lxsession

%description
LXInput is a keyboard and mouse configuration utility for LXDE, the
Lightweight X11 Desktop Environment.

%prep
%setup -n %upstreamname-%version

%build
%autoreconf
%if %gtkver==3
    %configure --enable-man --enable-gtk3
%else
    %configure --enable-man
%endif

%make_build

%install
%makeinstall_std
#cp data/%upstreamname.desktop %buildroot%_desktopdir/%upstreamname.desktop
%find_lang %upstreamname

%files -f %upstreamname.lang
%doc AUTHORS COPYING README ChangeLog NEWS
%_bindir/%upstreamname
%_datadir/%upstreamname/
%_desktopdir/%upstreamname.desktop
%_man1dir/%upstreamname.1.*

%changelog
* Tue May 17 2016 Anton Midyukov <antohami@altlinux.org> 0.3.5-alt1
- New version (0.3.5)

* Wed May 30 2012 Radik Usupov <radik@altlinux.org> 0.3.2-alt1
- new version (0.3.2)

* Fri Aug 26 2011 Radik Usupov <radik@altlinux.org> 0.3.1-alt1
- new version (0.3.1)

* Sun Aug 08 2010 Radik Usupov <radik@altlinux.org> 0.3.0-alt1
- new version
- changed packager

* Sun May 30 2010 Radik Usupov <radik@altlinux.org> 0.1.1-alt4
- buildrequires are corrected
- added autoreconf -fisv parameters
- added --enable-man fot %%configure parameters
- Makefile.am fixed: lxinput.desktop.in -> data/lxinput.desktop.in (thanks snejok@)

* Thu Feb 25 2010 Radik Usupov <radik@altlinux.org> 0.1.1-alt3
- Copy desktop file by 'cp'

* Tue Jan 26 2010 Radik Usupov <radik@altlinux.org> 0.1.1-alt2
- Update spec-files

* Mon Dec 28 2009 Radik Usupov <Radik@altlinux.org> 0.1.1-alt1
- First version of RPM package for Sisyphus