SHA256
1
0
forked from pool/bluez

Accepting request 156839 from home:seife:testing

add bluez-4.101-new-automake.diff, fix build with automake-1.13.1

OBS-URL: https://build.opensuse.org/request/show/156839
OBS-URL: https://build.opensuse.org/package/show/Base:System/bluez?expand=0&rev=137
This commit is contained in:
Stefan Seyfried 2013-02-28 15:01:43 +00:00 committed by Git OBS Bridge
parent 67f48c3207
commit 9f24348bf6
6 changed files with 86 additions and 28 deletions

12
README.packagers Normal file
View File

@ -0,0 +1,12 @@
Hi all,
bluez and bluez-gstreamer are just split in order to avoid cyclic
build dependencies.
If you are changing bluez.spec, consider also adapting bluez-gstreamer.spec
so that the diff remains more or less the same.
Especially, bluez-gstreamer.changes should always be identical to
bluez.changes.
Thanks for considering :-)
seife

View File

@ -0,0 +1,16 @@
Index: b/configure.ac
===================================================================
--- a/configure.ac
+++ b/configure.ac
@@ -1,10 +1,10 @@
AC_PREREQ(2.60)
AC_INIT(bluez, 4.101)
AM_INIT_AUTOMAKE([foreign subdir-objects color-tests])
-AM_CONFIG_HEADER(config.h)
+AC_CONFIG_HEADERS(config.h)
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AM_MAINTAINER_MODE

View File

@ -1,3 +1,21 @@
-------------------------------------------------------------------
Thu Feb 28 14:45:10 UTC 2013 - seife+obs@b1-systems.com
- add bluez-4.101-new-automake.diff, fix build with automake-1.13.1
-------------------------------------------------------------------
Fri Jan 25 08:05:27 UTC 2013 - seife+obs@b1-systems.com
- also run spec-cleaner on bluez-gstreamer.spec, add README for
packagers, fix bluez-gstreamer changelog
-------------------------------------------------------------------
Mon Jan 21 11:16:34 UTC 2013 - dimstar@opensuse.org
- Unconditionally enable the systemd bluetooth service (actual
activation of bluez is triggered by udev) (bnc#796671).
- Run spec-cleaner.
-------------------------------------------------------------------
Fri Jan 11 14:38:03 UTC 2013 - crrodriguez@opensuse.org

View File

@ -18,17 +18,27 @@
Name: bluez-gstreamer
BuildRequires: dbus-1-devel >= 1.4
BuildRequires: flex
BuildRequires: libcap-ng-devel
BuildRequires: pkgconfig(dbus-1) >= 1.4
%if 0%{?suse_version} > 1130
BuildRequires: pkgconfig(systemd)
%endif
Version: 4.101
Release: 0
Summary: Bluetooth Sound Support
License: GPL-2.0+
Group: Productivity/Multimedia/Sound/Utilities
Url: http://www.bluez.org
Source: bluez-%{version}.tar.bz2
Source3: bluetooth.sysconfig
Source6: README.SUSE
Source99: README.packagers
# fix for new automake, will not go upstream (upstream is at bluez-5)
Patch1: bluez-4.101-new-automake.diff
BuildRequires: alsa-devel
BuildRequires: automake
BuildRequires: check-devel
BuildRequires: glib2-devel >= 2.28
BuildRequires: gstreamer-0_10-devel
BuildRequires: gstreamer-0_10-plugins-base-devel
BuildRequires: libsndfile-devel
BuildRequires: libtool
@ -37,19 +47,12 @@ BuildRequires: libusb-devel
BuildRequires: pkg-config
BuildRequires: readline-devel
BuildRequires: udev
BuildRequires: pkgconfig(glib-2.0) >= 2.28
BuildRequires: pkgconfig(gstreamer-0.10)
BuildRequires: pkgconfig(libnl-1)
Url: http://www.bluez.org
Version: 4.101
Release: 0
Summary: Bluetooth Sound Support
License: GPL-2.0+
Group: Productivity/Multimedia/Sound/Utilities
Source: bluez-%{version}.tar.bz2
Source3: bluetooth.sysconfig
Source6: README.SUSE
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: libbluetooth3 = %{version}
Provides: bluez-audio:%_libdir/gstreamer-0.10/libgstbluetooth.so
Provides: bluez-audio:%{_libdir}/gstreamer-0.10/libgstbluetooth.so
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if %( echo `rpm -q --queryformat %%{version} udev` ) < 144
%define OLD_UDEV 1
%else
@ -61,16 +64,10 @@ The package contains libraries for using bluetooth audio services.
The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., USA.
Authors:
--------
Marcel Holtmann <marcel@holtmann.org>
and others, see AUTHORS in the documentation of the "bluez" package.
%prep
%setup -n bluez-%{version} -q
cp %{S:6} .
%patch1 -p1
cp %{SOURCE6} .
%build
autoreconf -fiv
@ -94,14 +91,14 @@ autoreconf -fiv
make %{?_smp_mflags} all V=1
%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/%{_libdir}/pkgconfig $RPM_BUILD_ROOT/%{_libdir}/*bluetooth* $RPM_BUILD_ROOT/usr/include
rm -rf $RPM_BUILD_ROOT/usr/lib/udev $RPM_BUILD_ROOT/usr/lib/systemd
rm $RPM_BUILD_ROOT/%{_libdir}/*/*.la
%make_install
rm -rf %{buildroot}%{_prefix}/[^l]* %{buildroot}/[^u]* %{buildroot}/%{_libdir}/[^g]*
rm -rf %{buildroot}/%{_libdir}/pkgconfig %{buildroot}/%{_libdir}/*bluetooth* %{buildroot}%{_prefix}/include
rm -rf %{buildroot}%{_prefix}/lib/udev %{buildroot}%{_prefix}/lib/systemd
rm %{buildroot}/%{_libdir}/*/*.la
%clean
rm -rf $RPM_BUILD_ROOT
rm -rf %{buildroot}
%files
%defattr(-, root, root)

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Thu Feb 28 14:45:10 UTC 2013 - seife+obs@b1-systems.com
- add bluez-4.101-new-automake.diff, fix build with automake-1.13.1
-------------------------------------------------------------------
Fri Jan 25 08:05:27 UTC 2013 - seife+obs@b1-systems.com
- also run spec-cleaner on bluez-gstreamer.spec, add README for
packagers, fix bluez-gstreamer changelog
-------------------------------------------------------------------
Mon Jan 21 11:16:34 UTC 2013 - dimstar@opensuse.org

View File

@ -38,8 +38,11 @@ Source3: bluetooth.sysconfig
Source5: baselibs.conf
Source6: README.SUSE
Source7: bluetooth.modprobe
Source99: README.packagers
# already fixed upstream
Patch0: 0001-network-fix-network-Connect-method-parameters.patch
# fix for new automake, will not go upstream (upstream is at bluez-5)
Patch1: bluez-4.101-new-automake.diff
BuildRequires: alsa-devel
BuildRequires: automake
BuildRequires: check-devel
@ -149,6 +152,7 @@ deprecated binaries that might still be needed for compatibility.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
cp %{SOURCE6} .
mkdir dbus-apis
cp -a doc/*.txt dbus-apis/