[packages/libinput] - PLDified/defedorized

qboosh qboosh at pld-linux.org
Sat Mar 22 17:23:54 CET 2014


commit 66c98b1bb983082a75d2016a60b20b0490db0f12
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Mar 22 17:27:15 2014 +0100

    - PLDified/defedorized

 libinput.spec | 85 ++++++++++++++++++++++++++++++++++++++++++++++++-----------
 1 file changed, 70 insertions(+), 15 deletions(-)
---
diff --git a/libinput.spec b/libinput.spec
index 281526b..355954b 100644
--- a/libinput.spec
+++ b/libinput.spec
@@ -1,15 +1,20 @@
 Summary:	Input device library
+Summary(pl.UTF-8):	Biblioteka urządzeń wejściowych
 Name:		libinput
 Version:	0.1.0
 Release:	1
 License:	MIT
-URL:		http://www.freedesktop.org/wiki/Software/libinput/
+Group:		Libraries
 Source0:	http://www.freedesktop.org/software/libinput/%{name}-%{version}.tar.xz
 # Source0-md5:	f5d794beb5228353f480d15a058e1885
-Group:		Libraries
-BuildRequires:	libevdev-devel
-BuildRequires:	mtdev-devel
+URL:		http://www.freedesktop.org/wiki/Software/libinput/
+BuildRequires:	check-devel >= 0.9.9
+BuildRequires:	doxygen
+BuildRequires:	libevdev-devel >= 0.4
+BuildRequires:	mtdev-devel >= 1.1.0
+BuildRequires:	pkgconfig
 BuildRequires:	udev-devel
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 libinput is a library that handles input devices for display servers
@@ -20,20 +25,59 @@ processing and abstraction so minimize the amount of custom input code
 the user of libinput need to provide the common set of functionality
 that users expect.
 
-%package        devel
-Summary:	Development files for %{name}
+%description -l pl.UTF-8
+libinput to biblioteka obsługująca urządzenia wejściowe dla serwerów
+grafiki i innych aplikacji wymagających bezpośredniej obsługi urządzeń
+wejściowych.
+
+Biblioteka zapewnia wykrywanie urządzeń, obsługę urządzeń,
+przetwarzanie zdarzeń urządzeń wejściowych oraz abstrakcję,
+minimalizując ilość własnego kodu, który musi napisać użytkownik
+biblioteki, aby zapewnić oczekiwaną funkcjonalność.
+
+%package devel
+Summary:	Development files for libinput
+Summary(pl.UTF-8):	Pliki programistyczne biblioteki libinput
+Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
+Requires:	udev-devel
+
+%description devel
+This package contains the header files for developing applications
+that use libinput.
+
+%description devel -l pl.UTF-8
+Ten pakiet zawiera pliki nagłówkowe niezbędne do tworzenia aplikacji
+wykorzystujących bibliotekę libinput.
+
+%package static
+Summary:	Static libinput library
+Summary(pl.UTF-8):	Statyczna biblioteka libinput
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static libinput library.
 
-%description    devel
-The %{name}-devel package contains libraries and header files for
-developing applications that use %{name}.
+%description static -l pl.UTF-8
+Statyczna biblioteka libinput.
+
+%package apidocs
+Summary:	API documentation for libinput library
+Summary(pl.UTF-8):	Dokumentacja API biblioteki libinput
+Group:		Documentation
+
+%description apidocs
+API documentation for libinput library.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API biblioteki libinput.
 
 %prep
 %setup -q
 
 %build
 %configure \
-	--disable-static \
 	--disable-silent-rules
 
 %{__make}
@@ -44,20 +88,31 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
 
 %files
 %defattr(644,root,root,755)
-%doc README
+%doc COPYING README
+%attr(755,root,root) %{_libdir}/libinput.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/libinput.so.0
-%attr(755,root,root) %{_libdir}/libinput.so.*.*
 
 %files devel
 %defattr(644,root,root,755)
-%{_includedir}/libinput.h
 %attr(755,root,root) %{_libdir}/libinput.so
+%{_includedir}/libinput.h
 %{_pkgconfigdir}/libinput.pc
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libinput.a
+
+%files apidocs
+%defattr(644,root,root,755)
+%doc doc/html/*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libinput.git/commitdiff/66c98b1bb983082a75d2016a60b20b0490db0f12



More information about the pld-cvs-commit mailing list