--- bluez-libs.spec.orig 2007-08-31 15:06:12.000000000 +0200
+++ bluez-libs.spec 2007-08-31 15:15:21.000000000 +0200
@@ -7,8 +7,6 @@ Group: System Environment/Libraries
Source: http://bluez.sourceforge.net/download/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
URL: http://www.bluez.org/
-#BuildRequires: glib-devel
-Requires: bluez-libs >= %{version}
ExcludeArch: s390 s390x
%description
@@ -19,29 +17,27 @@ The BLUETOOTH trademarks are owned by Bl
%package devel
Summary: Development libraries for Bluetooth applications
Group: Development/Libraries
-Requires: bluez-libs = %{version}
-Obsoletes: bluez-sdp-devel
+Requires: %{name} = %{version}-%{release}
+Requires: pkgconfig
+Obsoletes: bluez-sdp-devel <= 1.5
%description devel
bluez-libs-devel contains development libraries and headers for
use in Bluetooth applications.
%prep
-
%setup -q
%build
-%configure
-make
+%configure --disable-static
+make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
-/sbin/ldconfig -n $RPM_BUILD_ROOT/%{_libdir}
-# Remove autocrap and libtool droppings
-rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
-rm -f $RPM_BUILD_ROOT/usr/share/aclocal/bluez.m4
-
+# Remove unused files
+rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
+rm -f $RPM_BUILD_ROOT%{_datadir}/aclocal/bluez.m4
%clean
rm -rf $RPM_BUILD_ROOT
@@ -51,18 +47,27 @@ rm -rf $RPM_BUILD_ROOT
%postun -p /sbin/ldconfig
%files
-%defattr(-, root, root)
-%doc AUTHORS COPYING INSTALL ChangeLog NEWS README
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING ChangeLog README
%{_libdir}/libbluetooth.so.*
%files devel
-%defattr(-,root,root)
-/usr/include/bluetooth/*
-%{_libdir}/libbluetooth.a
+%defattr(-,root,root,-)
+%{_includedir}/bluetooth/
%{_libdir}/libbluetooth.so
%{_libdir}/pkgconfig/bluez.pc
%changelog
+* Fri Aug 31 2007 Matthias Saou 3.17-2
+- Own "bluetooth" include directory in devel package.
+- Require pkgconfig and exact main package release in devel package.
+- Disable static library building.
+- Don't ship the generic INSTALL file nor the empty NEWS file.
+- Remove unneeded build-time ldconfig call.
+- Use last known version for the bluez-sdp-devel obsoletes.
+- Remove the package's requirement on itself (!?).
+- Use _smp_mflags.
+
* Thu Aug 30 2007 David Woodhouse - 3.17-1
- Update to bluez-libs 3.17