evemu/evemu.spec

112 lines
3.2 KiB
RPMSpec
Raw Normal View History

#
# spec file for package evemu
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define _name libevemu1
Name: evemu
Version: 1.0.10
Release: 0
Summary: Event emulation for the uTouch stack
License: GPL-3.0
Group: System/GUI/Other
Url: http://launchpad.net/evemu
# https://launchpad.net/evemu/trunk/evemu-1.0.10/+download/evemu-1.0.10.tar.gz
Source: evemu-%{version}.tar.gz
BuildRequires: asciidoc
BuildRequires: fdupes
BuildRequires: pkgconfig
BuildRequires: xmlto
Provides: %{name}-tools = %{version}
Obsoletes: %{name}-tools < %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
uTouch-evemu is a part of the effort to produce an MT device and gesture test
framework, and provides tools to emulate kernel evdev devices.
%package -n %{_name}
Summary: Event emulation for the uTouch stack
Group: System/GUI/Other
%description -n %{_name}
uTouch-evemu is a part of the effort to produce an MT device and gesture test
framework, and provides tools to emulate kernel evdev devices.
%package -n python-evemu
Summary: Python bindings for utouch-evemu
Group: System/GUI/Other
%description -n python-evemu
uTouch-evemu is a part of the effort to produce an MT device and gesture test
framework, and provides tools to emulate kernel evdev devices.
This package provides the Python bindings for utouch-evemu.
%package devel
Summary: Event emulation for the uTouch stack
Group: Development/Tools/Other
Requires: %{_name} = %{version}
Requires: %{name} = %{version}
Requires: python-evemu = %{version}
%description devel
uTouch-evemu is a part of the effort to produce an MT device and gesture test
framework, and provides tools to emulate kernel evdev devices.
This package provides the development files.
%prep
%setup -q
%build
%configure \
--disable-static \
--disable-silent-rules
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%fdupes %{buildroot}%{python_sitelib}
find %{buildroot} -type f -name "*.la" -delete -print
%post -n %{_name} -p /sbin/ldconfig
%postun -n %{_name} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/evemu-*
%{_mandir}/man1/evemu-*
%files -n %{_name}
%defattr(-,root,root)
%doc ChangeLog README COPYING
%{_libdir}/*.so.*
%files -n python-evemu
%defattr(-,root,root)
%doc ChangeLog README COPYING
%{python_sitelib}/evemu/
%files devel
%defattr(-,root,root)
%{_includedir}/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%changelog