summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Krasnyansky <maxk@qualcomm.com>2002-12-21 06:47:32 +0000
committerMax Krasnyansky <maxk@qualcomm.com>2002-12-21 06:47:32 +0000
commit976e691e5dcb92629f6f7d75a37d9ebc8e7d4da3 (patch)
treeaf9c7685e60c0e34915d6a5f26a566bdf99ea3fe
parentd77d3f848c60d692cc9029ccf9a15b06f0704e90 (diff)
Add RPM spec file. Configure fixes.
-rw-r--r--Makefile.am4
-rw-r--r--configure.in2
-rw-r--r--utils.spec80
3 files changed, 85 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index d0351af9..308ede8d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3,3 +3,7 @@
#
SUBDIRS := hcid tools rfcomm test scripts pcmcia
+
+DISTCLEANFILES = conftest.c conftest
+
+EXTRA_DIST = ChangeLog utils.spec
diff --git a/configure.in b/configure.in
index bf66615a..f7154f1a 100644
--- a/configure.in
+++ b/configure.in
@@ -42,7 +42,7 @@ AC_ARG_WITH(bluez-libs,
AC_ARG_WITH(bluez-includes,
--with-bluez-includes=DIR BlueZ header files,
BLUEZ_INCDIR="$withval",
- BLUEZ_INCDIR='../libs/include /usr/include/bluetooth'
+ BLUEZ_INCDIR='../libs/include /usr/include'
)
AC_SEARCH_HEADERS(bluetooth/bluetooth.h, $BLUEZ_INCDIR,,
diff --git a/utils.spec b/utils.spec
new file mode 100644
index 00000000..e12ba74b
--- /dev/null
+++ b/utils.spec
@@ -0,0 +1,80 @@
+# Note that this is NOT a relocatable package
+%define ver 2.1
+%define RELEASE 1
+%define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
+%define prefix /
+
+Summary: Bluetooth utilities
+Name: bluez-utils
+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
+Patch0: %{name}-%{ver}.patch
+BuildRoot: /var/tmp/%{name}-%{PACKAGE_VERSION}-root
+URL: http://bluez.sourceforge.net
+Docdir: %{prefix}/usr/share/doc
+Requires: glibc >= 2.2.4
+Requires: glib >= 1.2
+Requires: bluez-libs >= 2.0
+BuildRequires: glibc >= 2.2.4
+BuildRequires: glib-devel >= 1.2
+BuildRequires: bluez-libs >= 2.0
+
+%description
+Bluetooth utilities (bluez-utils):
+ - hcitool
+ - hciattach
+ - hciconfig
+ - hcid
+ - l2ping
+ - start scripts (RedHat)
+ - pcmcia configuration files
+
+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
+
+%setup -q
+#%patch0 -p1
+
+%build
+CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} --mandir=%{_mandir} --sysconfdir=%{_sysconfdir}
+make
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make DESTDIR=$RPM_BUILD_ROOT prefix=%{prefix} mandir=%{_mandir} install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-, root, root)
+
+/etc/rc.d/init.d/bluetooth
+/bin/hcitool
+/bin/l2ping
+/bin/bluepin
+/bin/rfcomm
+/sbin/hciattach
+/sbin/hciconfig
+/sbin/hcid
+%{_mandir}/man8/hciattach.8.gz
+%{_mandir}/man8/hciconfig.8.gz
+%{_mandir}/man1/hcitool.1.gz
+%{_mandir}/man1/l2ping.1.gz
+%{_sysconfdir}/bluetooth/*
+%{_sysconfdir}/pcmcia/bluetooth.conf
+%{_sysconfdir}/pcmcia/bluetooth
+
+%doc AUTHORS COPYING INSTALL ChangeLog NEWS README
+