Accepting request 74322 from home:msmeissn:branches:Base:System

add baselibs for the lib

OBS-URL: https://build.opensuse.org/request/show/74322
OBS-URL: https://build.opensuse.org/package/show/Base:System/bluez?expand=0&rev=101
This commit is contained in:
Cristian Rodríguez 2011-06-23 02:42:33 +00:00 committed by Git OBS Bridge
parent c373378a80
commit 66845306c4
4 changed files with 38 additions and 0 deletions

1
baselibs.conf Normal file
View File

@ -0,0 +1 @@
libbluetooth13

View File

@ -52,6 +52,7 @@ Provides: bluez-audio:%_libdir/gstreamer-0.10/libgstbluetooth.so
%define OLD_UDEV 0 %define OLD_UDEV 0
%endif %endif
%description %description
The package contains libraries for using bluetooth audio services. The package contains libraries for using bluetooth audio services.
@ -70,6 +71,7 @@ Authors:
cp %{S:6} . cp %{S:6} .
%{?suse_update_config:%{suse_update_config -f . }} %{?suse_update_config:%{suse_update_config -f . }}
%build %build
# autoreconf -sfi # autoreconf -sfi
CFLAGS="$RPM_OPT_FLAGS -g" \ CFLAGS="$RPM_OPT_FLAGS -g" \
@ -95,17 +97,22 @@ CFLAGS="$RPM_OPT_FLAGS -g" \
%{?with_libcapng} %{?with_libcapng}
make %{?_smp_mflags} all V=1 make %{?_smp_mflags} all V=1
%install %install
make DESTDIR=$RPM_BUILD_ROOT install make DESTDIR=$RPM_BUILD_ROOT install
rm -rf $RPM_BUILD_ROOT/usr/[^l]* $RPM_BUILD_ROOT/[^u]* $RPM_BUILD_ROOT/%{_libdir}/[^g]* rm -rf $RPM_BUILD_ROOT/usr/[^l]* $RPM_BUILD_ROOT/[^u]* $RPM_BUILD_ROOT/%{_libdir}/[^g]*
rm -rf $RPM_BUILD_ROOT/%{_libdir}/pkgconfig $RPM_BUILD_ROOT/%{_libdir}/*bluetooth* $RPM_BUILD_ROOT/usr/include rm -rf $RPM_BUILD_ROOT/%{_libdir}/pkgconfig $RPM_BUILD_ROOT/%{_libdir}/*bluetooth* $RPM_BUILD_ROOT/usr/include
rm $RPM_BUILD_ROOT/%{_libdir}/*/*.la rm $RPM_BUILD_ROOT/%{_libdir}/*/*.la
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-, root, root) %defattr(-, root, root)
%{_libdir}/gstreamer-*/*.so %{_libdir}/gstreamer-*/*.so
%changelog %changelog

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jun 22 16:02:15 CEST 2011 - meissner@suse.de
- added baselibs.conf bnc#700840
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jun 14 06:49:35 UTC 2011 - seife+obs@b1-systems.com Tue Jun 14 06:49:35 UTC 2011 - seife+obs@b1-systems.com

View File

@ -42,6 +42,7 @@ Source: http://www.kernel.org/pub/linux/bluetooth/bluez-%{version}.tar.b
Source2: bluez-coldplug.init Source2: bluez-coldplug.init
Source3: bluetooth.sysconfig Source3: bluetooth.sysconfig
Source4: bluetooth.sh Source4: bluetooth.sh
Source5: baselibs.conf
Source6: README.SUSE Source6: README.SUSE
Source7: bluetooth.modprobe Source7: bluetooth.modprobe
Patch1: bluez-4.75-udev-use-helperscript.diff Patch1: bluez-4.75-udev-use-helperscript.diff
@ -68,6 +69,7 @@ Requires: libbluetooth3 = %{version}
%define cups_lib_dir %{_libdir}/cups %define cups_lib_dir %{_libdir}/cups
%endif %endif
%description %description
The Bluetooth stack for Linux. The Bluetooth stack for Linux.
@ -84,6 +86,7 @@ Summary: Files needed for BlueZ development
Group: Development/Sources Group: Development/Sources
Requires: libbluetooth3 = %{version} Requires: libbluetooth3 = %{version}
%description devel %description devel
Files needed to develop applications for the BlueZ Bluetooth protocol Files needed to develop applications for the BlueZ Bluetooth protocol
stack. stack.
@ -102,6 +105,7 @@ Group: Hardware/Mobile
Provides: bluez-libs = 3.36 Provides: bluez-libs = 3.36
Obsoletes: bluez-libs <= 3.36 Obsoletes: bluez-libs <= 3.36
%description -n libbluetooth3 %description -n libbluetooth3
Bluetooth protocol stack libraries. Bluetooth protocol stack libraries.
@ -118,6 +122,7 @@ License: GPLv2+
Summary: CUPS Driver for Bluetooth Printers Summary: CUPS Driver for Bluetooth Printers
Requires: libbluetooth3 = %{version} Requires: libbluetooth3 = %{version}
%description cups %description cups
Contains the files required by CUPS for printing to Bluetooth-connected Contains the files required by CUPS for printing to Bluetooth-connected
printers. printers.
@ -135,6 +140,7 @@ License: GPLv2+ ; MIT License (or similar)
Summary: Tools for testing of various Bluetooth-functions Summary: Tools for testing of various Bluetooth-functions
Requires: libbluetooth3 = %{version} python-gobject2 dbus-1-python Requires: libbluetooth3 = %{version} python-gobject2 dbus-1-python
%description test %description test
Contains a few tools for testing various bluetooth functions. The Contains a few tools for testing various bluetooth functions. The
BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A. BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
@ -153,6 +159,7 @@ Summary: Bluetooth Sound Support
Requires: libbluetooth3 = %{version} Requires: libbluetooth3 = %{version}
Provides: bluez-audio:%_libdir/alsa-lib/libasound_module_pcm_bluetooth.so Provides: bluez-audio:%_libdir/alsa-lib/libasound_module_pcm_bluetooth.so
%description alsa %description alsa
The package contains libraries for using bluetooth audio services. The package contains libraries for using bluetooth audio services.
@ -171,6 +178,7 @@ License: GPLv2+
Summary: Bluetooth Stack for Linux Summary: Bluetooth Stack for Linux
Requires: libbluetooth3 = %{version} Requires: libbluetooth3 = %{version}
%description compat %description compat
The Bluetooth stack for Linux. This package contains older and partly The Bluetooth stack for Linux. This package contains older and partly
deprecated binaries that might still be needed for compatibility. deprecated binaries that might still be needed for compatibility.
@ -193,6 +201,7 @@ cp %{S:6} .
mkdir dbus-apis mkdir dbus-apis
cp -a doc/*.txt dbus-apis/ cp -a doc/*.txt dbus-apis/
%build %build
# autoreconf -sfi # autoreconf -sfi
CFLAGS="$RPM_OPT_FLAGS -g" \ CFLAGS="$RPM_OPT_FLAGS -g" \
@ -218,6 +227,7 @@ CFLAGS="$RPM_OPT_FLAGS -g" \
%{?with_libcapng} %{?with_libcapng}
make %{?_smp_mflags} all V=1 make %{?_smp_mflags} all V=1
%install %install
make DESTDIR=$RPM_BUILD_ROOT install make DESTDIR=$RPM_BUILD_ROOT install
# bluez-test # bluez-test
@ -256,23 +266,30 @@ then if test -e %{buildroot}%{_libdir}/cups/backend/bluetooth
fi fi
fi fi
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%post %post
%{fillup_only -n bluetooth} %{fillup_only -n bluetooth}
%{insserv_force_if_yast bluez-coldplug} %{insserv_force_if_yast bluez-coldplug}
%preun %preun
%stop_on_removal bluez-coldplug %stop_on_removal bluez-coldplug
%postun %postun
%{insserv_cleanup} %{insserv_cleanup}
%post -n libbluetooth3 -p /sbin/ldconfig %post -n libbluetooth3 -p /sbin/ldconfig
%postun -n libbluetooth3 -p /sbin/ldconfig %postun -n libbluetooth3 -p /sbin/ldconfig
%files %files
%defattr(-, root, root) %defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog README README.SUSE dbus-apis %doc AUTHORS COPYING ChangeLog README README.SUSE dbus-apis
@ -317,23 +334,27 @@ rm -rf $RPM_BUILD_ROOT
%dir %{_sysconfdir}/modprobe.d %dir %{_sysconfdir}/modprobe.d
%config(noreplace) %{_sysconfdir}/modprobe.d/50-bluetooth.conf %config(noreplace) %{_sysconfdir}/modprobe.d/50-bluetooth.conf
%files devel %files devel
%defattr(-, root, root) %defattr(-, root, root)
/usr/include/bluetooth /usr/include/bluetooth
%{_libdir}/libbluetooth.so %{_libdir}/libbluetooth.so
%{_libdir}/pkgconfig/bluez.pc %{_libdir}/pkgconfig/bluez.pc
%files -n libbluetooth3 %files -n libbluetooth3
%defattr(-, root, root) %defattr(-, root, root)
%{_libdir}/libbluetooth.so.* %{_libdir}/libbluetooth.so.*
%doc AUTHORS COPYING INSTALL ChangeLog README %doc AUTHORS COPYING INSTALL ChangeLog README
%files cups %files cups
%defattr(-,root,root) %defattr(-,root,root)
%dir %{cups_lib_dir} %dir %{cups_lib_dir}
%dir %{cups_lib_dir}/backend %dir %{cups_lib_dir}/backend
%{cups_lib_dir}/backend/bluetooth %{cups_lib_dir}/backend/bluetooth
%files test %files test
%defattr(-,root,root) %defattr(-,root,root)
%{_sbindir}/hciemu %{_sbindir}/hciemu
@ -354,12 +375,14 @@ rm -rf $RPM_BUILD_ROOT
%{_bindir}/test-service %{_bindir}/test-service
%{_bindir}/test-telephony %{_bindir}/test-telephony
%files alsa %files alsa
%defattr(-,root,root) %defattr(-,root,root)
%dir /usr/share/alsa %dir /usr/share/alsa
%config /usr/share/alsa/bluetooth.conf %config /usr/share/alsa/bluetooth.conf
%{_libdir}/alsa-lib/*.so %{_libdir}/alsa-lib/*.so
%files compat %files compat
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/dund %{_bindir}/dund
@ -367,4 +390,6 @@ rm -rf $RPM_BUILD_ROOT
%doc %{_mandir}/man1/pand.1.gz %doc %{_mandir}/man1/pand.1.gz
%doc %{_mandir}/man1/dund.1.gz %doc %{_mandir}/man1/dund.1.gz
%changelog %changelog