Spec file cleanup
This commit is contained in:
parent
fa98c56d10
commit
a20decd407
@ -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 @@ USB bus.
|
||||
%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 -rf $RPM_BUILD_ROOT%{_includedir}
|
||||
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@redhat.com> 0.73-2
|
||||
- spec file cleanup
|
||||
|
||||
* Thu Jan 17 2008 Jiri Moskovcak <jmoskovc@redhat.com> 0.73-1
|
||||
- new version 0.73
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user