summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Krasnyansky <maxk@qualcomm.com>2002-12-21 05:17:15 +0000
committerMax Krasnyansky <maxk@qualcomm.com>2002-12-21 05:17:15 +0000
commit2ac228bc6fcc7a6f2b1368f39cb392b61c984608 (patch)
tree193299275467f42dff59845e0b6dfb165cc6ce40
parentd6cbeb4c61f5dc0c0d04dd022139b44f81964b18 (diff)
Add RPM spec file.
-rw-r--r--Makefile.am2
-rw-r--r--libs.spec60
2 files changed, 61 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index bc2d6cb2..2f4de561 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -6,4 +6,4 @@ SUBDIRS := include src
DISTCLEANFILES = conftest.c conftest
-EXTRA_DIST = ChangeLog
+EXTRA_DIST = ChangeLog libs.spec
diff --git a/libs.spec b/libs.spec
new file mode 100644
index 00000000..7a39fbcf
--- /dev/null
+++ b/libs.spec
@@ -0,0 +1,60 @@
+# Note that this is NOT a relocatable package
+%define ver 2.2
+%define RELEASE 1
+%define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
+%define prefix /usr
+
+Summary: BlueZ libraries
+Name: bluez-libs
+Version: %ver
+Release: %rel
+Copyright: GPL
+Group: Applications/System
+Vendor: Official Linux Bluetooth protocol stack
+Packager: Sebastian Frankfurt <sf@infesto.de>
+Source: http://bluez.sourceforge.net/%{name}-%{ver}.tar.gz
+BuildRoot: /var/tmp/%{name}-%{PACKAGE_VERSION}-root
+URL: http://bluez.sourceforge.net
+Docdir: %{prefix}/share/doc
+Requires: glibc >= 2.2.4
+BuildRequires: glibc >= 2.2.4
+BuildRequires: glib-devel >= 1.2
+
+%description
+Official Linux Bluetooth protocol stack libraries (bluez-libs).
+
+The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
+
+%changelog
+* Tue Aug 13 2002 Sebastian Frankfurt <sf@infesto.de>
+- Initial RPM
+
+%prep
+rm -rf $RPM_BUILD_ROOT
+#rm -rf /usr/src/redhat/BUILD/*
+
+%setup -q
+
+%build
+CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix}
+make
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make prefix=$RPM_BUILD_ROOT%{prefix} install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-, root, root)
+
+/usr/include/bluetooth/*
+/usr/lib/libbluetooth*
+
+%doc AUTHORS COPYING INSTALL ChangeLog NEWS README
+