[libbluedevil] Initial import

Jaroslav Reznik jreznik at fedoraproject.org
Tue Sep 21 12:08:46 UTC 2010


commit e504364dfc030b6b715e52c75223a51614986f5b
Author: Jaroslav Reznik <jreznik at redhat.com>
Date:   Tue Sep 21 14:08:44 2010 +0200

    Initial import

 .gitignore                          |    1 +
 libbluedevil-1.7-lib-suffix.patch   |   46 +++++++++++++++++++++
 libbluedevil-1.7-pkgconfig-64.patch |   19 +++++++++
 libbluedevil.spec                   |   76 +++++++++++++++++++++++++++++++++++
 sources                             |    1 +
 5 files changed, 143 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..05334d3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libbluedevil-1.7.tar.bz2
diff --git a/libbluedevil-1.7-lib-suffix.patch b/libbluedevil-1.7-lib-suffix.patch
new file mode 100644
index 0000000..9f8bc0b
--- /dev/null
+++ b/libbluedevil-1.7-lib-suffix.patch
@@ -0,0 +1,46 @@
+From 4387f595299f42d3a218411dd8cfed221df18c54 Mon Sep 17 00:00:00 2001
+From: Rafael Fernández López <ereslibre at ereslibre.es>
+Date: Wed, 28 Jul 2010 14:25:34 +0000
+Subject: cmake: Patch provided by Michael Jansen for LIB_SUFFIX support. Thanks !
+
+---
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 908b92e..c9cb759 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -5,6 +5,19 @@ set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH})
+ 
+ find_package(Qt4 REQUIRED)
+ 
++#
++### lib64/32 support kde like
++#
++set(LIB_SUFFIX "" CACHE STRING "Define suffix for lib directory (32/64)")
++
++set(BIN_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/bin)
++set(LIB_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX})
++
++set(INSTALL_TARGETS_DEFAULT_ARGS  RUNTIME DESTINATION "${BIN_INSTALL_DIR}"
++                                  LIBRARY DESTINATION "${LIB_INSTALL_DIR}"
++                                  ARCHIVE DESTINATION "${LIB_INSTALL_DIR}" COMPONENT Devel )
++
++
+ set(GENERIC_LIB_VERSION "1.5")
+ set(GENERIC_LIB_SOVERSION "1")
+ set(VERSION ${GENERIC_LIB_VERSION})
+diff --git a/bluedevil/CMakeLists.txt b/bluedevil/CMakeLists.txt
+index 8777b4f..a479a9d 100644
+--- a/bluedevil/CMakeLists.txt
++++ b/bluedevil/CMakeLists.txt
+@@ -26,7 +26,8 @@ set_target_properties(bluedevil PROPERTIES
+    SOVERSION ${GENERIC_LIB_SOVERSION}
+ )
+ 
+-install(TARGETS bluedevil DESTINATION lib)
++install(TARGETS bluedevil ${INSTALL_TARGETS_DEFAULT_ARGS})
++
+ install(FILES bluedevilmanager.h
+               bluedeviladapter.h
+               bluedevildevice.h
+--
+cgit v0.8.3.1-79-gf914
diff --git a/libbluedevil-1.7-pkgconfig-64.patch b/libbluedevil-1.7-pkgconfig-64.patch
new file mode 100644
index 0000000..fddbc54
--- /dev/null
+++ b/libbluedevil-1.7-pkgconfig-64.patch
@@ -0,0 +1,19 @@
+From 0605f86648ab00a7bfd8443cc3b3e4f32a406b75 Mon Sep 17 00:00:00 2001
+From: Nicolas Lécureuil <nlecureuil at mandriva.com>
+Date: Sat, 07 Aug 2010 21:18:38 +0000
+Subject: Fix install of pkgconfig file in 64 bit arch
+
+---
+diff --git a/bluedevil/CMakeLists.txt b/bluedevil/CMakeLists.txt
+index a479a9d..766d603 100644
+--- a/bluedevil/CMakeLists.txt
++++ b/bluedevil/CMakeLists.txt
+@@ -37,5 +37,5 @@ install(FILES bluedevilmanager.h
+ 
+ if(NOT WIN32) # pkgconfig file
+    configure_file(${CMAKE_CURRENT_SOURCE_DIR}/bluedevil.pc.in ${CMAKE_CURRENT_BINARY_DIR}/bluedevil.pc @ONLY)
+-   install(FILES ${CMAKE_CURRENT_BINARY_DIR}/bluedevil.pc DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig)
++   install(FILES ${CMAKE_CURRENT_BINARY_DIR}/bluedevil.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
+ endif(NOT WIN32)
+--
+cgit v0.8.3.1-79-gf914
diff --git a/libbluedevil.spec b/libbluedevil.spec
new file mode 100644
index 0000000..de5dddd
--- /dev/null
+++ b/libbluedevil.spec
@@ -0,0 +1,76 @@
+Name:           libbluedevil
+Version:        1.7
+Release:        1%{?dist}
+Summary:        A Qt wrapper for bluez
+
+Group:          System Environment/Libraries
+License:        LGPLv2+
+URL:            http://ereslibre.es/
+Source0:        http://git.ereslibre.es/libbluedevil/snapshot/libbluedevil-1.7.tar.bz2
+Patch0:         libbluedevil-1.7-lib-suffix.patch
+Patch1:         libbluedevil-1.7-pkgconfig-64.patch
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires:  qt4-devel
+BuildRequires:  automoc4
+BuildRequires:  cmake
+
+Requires:       bluez
+
+%description
+%{name} is Qt-based library written handle all Bluetooth functionality.
+
+%package        devel
+Summary:        Development files for %{name}
+Group:          Development/Libraries
+Requires:       %{name} = %{version}-%{release}
+
+%description    devel
+Development files for %{name}.
+
+
+%prep
+%setup -q
+
+%patch0 -p1 -b .lib-suffix
+%patch1 -p1 -b .pkgconfig-64
+
+
+%build
+mkdir -p %{_target_platform}
+pushd %{_target_platform}
+%{cmake} ..
+popd
+
+make %{?_smp_mflags} -C %{_target_platform}
+
+
+%install
+rm -rf %{buildroot}
+make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%defattr(-,root,root,-)
+%{_libdir}/*.so.*
+
+%files devel
+%defattr(-,root,root,-)
+%doc HACKING
+%{_includedir}/*
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/*.pc
+
+
+%changelog
+* Fri Aug 13 2010 Jaroslav Reznik <jreznik at redhat.com> 1.7-1
+- initial package
\ No newline at end of file
diff --git a/sources b/sources
index e69de29..e574f0d 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+038bdc46b5b74e96fb178ec6ae9ed2d2  libbluedevil-1.7.tar.bz2


More information about the scm-commits mailing list