packages: libmtp/libmtp.spec - package libmtp.rules once - moved udev files...

qboosh qboosh at pld-linux.org
Tue Jan 11 05:54:20 CET 2011


Author: qboosh                       Date: Tue Jan 11 04:54:20 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- package libmtp.rules once
- moved udev files to subpackage (library must not enforce udev)

---- Files affected:
packages/libmtp:
   libmtp.spec (1.35 -> 1.36) 

---- Diffs:

================================================================
Index: packages/libmtp/libmtp.spec
diff -u packages/libmtp/libmtp.spec:1.35 packages/libmtp/libmtp.spec:1.36
--- packages/libmtp/libmtp.spec:1.35	Mon Jan 10 13:02:03 2011
+++ packages/libmtp/libmtp.spec	Tue Jan 11 05:54:14 2011
@@ -6,7 +6,7 @@
 Name:		libmtp
 Version:	1.0.4
 Release:	1
-License:	GPL v2
+License:	LGPL v2+
 Group:		Libraries
 Source0:	http://downloads.sourceforge.net/libmtp/%{name}-%{version}.tar.gz
 # Source0-md5:	a9ae962c72cc46988409ce19d60c5850
@@ -62,6 +62,19 @@
 %description progs -l pl.UTF-8
 Ten pakiet zawiera narzędzia z biblioteki mtp.
 
+%package -n udev-libmtp
+Summary:	UDEV rules for libmtp devices
+Summary(pl.UTF-8):	Reguły UDEV dla urządzeń libmtp
+Group:		Applications/System
+Requires:	%{name} = %{version}-%{release}
+Requires:	udev-core
+
+%description -n udev-libmtp
+UDEV rules for libmtp devices.
+
+%description -n udev-libmtp -l pl.UTF-8
+Reguły UDEV dla urządzeń libmtp.
+
 %prep
 %setup -q
 
@@ -76,8 +89,7 @@
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
-install -d $RPM_BUILD_ROOT/lib/udev/rules.d
-cp -a libmtp.rules $RPM_BUILD_ROOT/lib/udev/rules.d/80-libmtp.rules
+mv -f $RPM_BUILD_ROOT/lib/udev/rules.d/{libmtp,80-libmtp}.rules
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -90,8 +102,6 @@
 %doc AUTHORS ChangeLog README TODO
 %attr(755,root,root) %{_libdir}/libmtp.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/libmtp.so.8
-/lib/udev/rules.d/*.rules
-/lib/udev/mtp-probe
 
 %files devel
 %defattr(644,root,root,755)
@@ -107,7 +117,12 @@
 
 %files progs
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_bindir}/mtp-*
+
+%files -n udev-libmtp
+%defattr(644,root,root,755)
+/lib/udev/rules.d/80-libmtp.rules
+/lib/udev/mtp-probe
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -115,6 +130,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.36  2011/01/11 04:54:14  qboosh
+- package libmtp.rules once
+- moved udev files to subpackage (library must not enforce udev)
+
 Revision 1.35  2011/01/10 12:02:03  caleb
 - Up to 1.0.4
 - Added unpackaged /lib/udev/mtp-probe to %files
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/libmtp/libmtp.spec?r1=1.35&r2=1.36&f=u



More information about the pld-cvs-commit mailing list