rpms/usbutils/devel usbutils.spec,1.22,1.23

Jiří Moskovčák (jmoskovc) fedora-extras-commits at redhat.com
Tue Feb 12 12:37:15 UTC 2008


Author: jmoskovc

Update of /cvs/extras/rpms/usbutils/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv29543

Modified Files:
	usbutils.spec 
Log Message:
Spec file cleanup



Index: usbutils.spec
===================================================================
RCS file: /cvs/extras/rpms/usbutils/devel/usbutils.spec,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- usbutils.spec	17 Jan 2008 16:00:55 -0000	1.22
+++ usbutils.spec	12 Feb 2008 12:36:40 -0000	1.23
@@ -1,14 +1,15 @@
 Name: usbutils
 Version: 0.73
-Release: 1
+Release: 2%{?dist}
 Source:	http://prdownloads.sourceforge.net/linux-usb/%{name}-%{version}.tar.gz
 Patch1: usbutils-0.73-hwdata.patch
 URL: http://www.linux-usb.org/
-License: GPL
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
+License: GPLv2+
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
 Requires: hwdata
 BuildRequires: libtool, libusb-devel >= 0.1.8
-Summary: Linux USB utilities.
+Summary: Linux USB utilities
 Group: Applications/System
 Conflicts: hotplug < 3:2002_01_14-2
 ExcludeArch: s390 s390x
@@ -24,13 +25,11 @@
 %build
 cp /usr/share/libtool/config.{sub,guess} .
 %configure --sbindir=/sbin
-make
+make %{?_smp_mflags}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%makeinstall
-mkdir -p $RPM_BUILD_ROOT/sbin
-mv $RPM_BUILD_ROOT/usr/sbin/* $RPM_BUILD_ROOT/sbin/
+make install DESTDIR=$RPM_BUILD_ROOT
 
 # remove unpackaged files from the buildroot
 rm -rf $RPM_BUILD_ROOT%{_libdir}
@@ -38,15 +37,18 @@
 rm -f $RPM_BUILD_ROOT%{_datadir}/usb.ids*
 
 %files
-%defattr(-,root,root)
+%defattr(-,root,root,-)
 %{_mandir}/*/*
 /sbin/*
-%doc AUTHORS COPYING ChangeLog INSTALL NEWS README
+%doc AUTHORS COPYING ChangeLog NEWS README
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %changelog
+* Tue Feb 12 2008 Jiri Moskovcak <jmoskovc at redhat.com> 0.73-2
+- spec file cleanup
+
 * Thu Jan 17 2008 Jiri Moskovcak <jmoskovc at redhat.com> 0.73-1
 - new version 0.73
 




More information about the fedora-extras-commits mailing list