File libnjb.spec of Package libnjb
#
# spec file for package libnjb (Version 2.2.6)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: libnjb
BuildRequires: hal-devel libusb-devel
Url: http://libnjb.sourceforge.net
License: BSD 3-Clause
Group: Development/Libraries/Other
AutoReqProv: on
Version: 2.2.6
Release: 26
Summary: Nomad Jukebox API
Source: %{name}-%{version}.tar.gz
Patch: %{name}-hal-fdi.patch
Patch1: %{name}-hal.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: dbus-1 hal libnjb5
%description
Nomad Jukebox API
Authors:
--------
Linus Walleij <triad@df.lth.se> (Much code, Windows port)
C351sar Talon (NJB 3 initial code)
David A. Knight <david@ritter.demon.co.uk> (Code, especially for NJB1)
Dwight Engen <dengen40@yahoo.com> (NJB Zen stuff)
Bernie <bernie@knup.de> (NJB 2 stuff)
Paul Lalonde <plalonde@telus.net> (NJB Zen USB 2.0 stuff)
Tom LeRoux <tom@harborcoat.com> (Dell Digital Jukebox stuff)
Friso Brugmans <njblib@brugmans.nu> (NJB Zen NX stuff)
Ryan Marsh <ryan_marsh@yahoo.com> (MacOS X porting, fixing and testing)
Richard Low <richard@wentnet.com> (MacOS X porting, fixing and testing)
Michael a.k.a. LuNaTiC (NJB Zen Touch testing)
Shaun Jackman <sjackman@gmail.com> (Debian packaging, automakification)
Kevin Williams <zakzak@gmail.com> (MSVC++ 8 port)
Polar Humenn <polar@adiron.com> (playback hacks)
%package -n libnjb5
License: BSD 3-Clause
Summary: Nomad Jukebox API
Group: Development/Libraries/Other
Requires: %{name} >= %{version}
%description -n libnjb5
Nomad Jukebox API
Authors:
--------
Linus Walleij <triad@df.lth.se> (Much code, Windows port)
C351sar Talon (NJB 3 initial code)
David A. Knight <david@ritter.demon.co.uk> (Code, especially for NJB1)
Dwight Engen <dengen40@yahoo.com> (NJB Zen stuff)
Bernie <bernie@knup.de> (NJB 2 stuff)
Paul Lalonde <plalonde@telus.net> (NJB Zen USB 2.0 stuff)
Tom LeRoux <tom@harborcoat.com> (Dell Digital Jukebox stuff)
Friso Brugmans <njblib@brugmans.nu> (NJB Zen NX stuff)
Ryan Marsh <ryan_marsh@yahoo.com> (MacOS X porting, fixing and testing)
Richard Low <richard@wentnet.com> (MacOS X porting, fixing and testing)
Michael a.k.a. LuNaTiC (NJB Zen Touch testing)
Shaun Jackman <sjackman@gmail.com> (Debian packaging, automakification)
Kevin Williams <zakzak@gmail.com> (MSVC++ 8 port)
Polar Humenn <polar@adiron.com> (playback hacks)
%package devel
License: BSD 3-Clause
Group: Development/Libraries/Other
AutoReqProv: on
Summary: Nomad Jukebox API
Requires: %{name} = %{version}
Requires: libusb-devel
%description devel
Nomad Jukebox API
Authors:
--------
Linus Walleij <triad@df.lth.se> (Much code, Windows port)
C351sar Talon (NJB 3 initial code)
David A. Knight <david@ritter.demon.co.uk> (Code, especially for NJB1)
Dwight Engen <dengen40@yahoo.com> (NJB Zen stuff)
Bernie <bernie@knup.de> (NJB 2 stuff)
Paul Lalonde <plalonde@telus.net> (NJB Zen USB 2.0 stuff)
Tom LeRoux <tom@harborcoat.com> (Dell Digital Jukebox stuff)
Friso Brugmans <njblib@brugmans.nu> (NJB Zen NX stuff)
Ryan Marsh <ryan_marsh@yahoo.com> (MacOS X porting, fixing and testing)
Richard Low <richard@wentnet.com> (MacOS X porting, fixing and testing)
Michael a.k.a. LuNaTiC (NJB Zen Touch testing)
Shaun Jackman <sjackman@gmail.com> (Debian packaging, automakification)
Kevin Williams <zakzak@gmail.com> (MSVC++ 8 port)
Polar Humenn <polar@adiron.com> (playback hacks)
%prep
%setup -q
%patch
%if %suse_version > 1030
%patch1
%endif
%build
autoreconf -fi
export CFLAGS="$RPM_OPT_FLAGS"
./configure --prefix=/usr \
--libdir=%{_libdir} \
--mandir=%{_mandir} \
--enable-submount
make
%install
make install DESTDIR=$RPM_BUILD_ROOT
%if %suse_version >= 1000
# Check the installed hal (in neededforbuild) if the directory
# is still at the place we expect to avoid surprises.
if [ ! -d /usr/share/hal/fdi/information/10freedesktop/ ] ; then
echo "*** The hal FDI file location has changed. Fix the build."
exit 1
fi
install -m 0755 -d $RPM_BUILD_ROOT/usr/share/hal/fdi/information/10freedesktop/
install -m 0644 libnjb.fdi $RPM_BUILD_ROOT/usr/share/hal/fdi/information/10freedesktop/10-usb-music-players-libnjb.fdi
%endif
%clean
rm -rf $RPM_BUILD_ROOT
%post -n libnjb5 -p /sbin/ldconfig
%postun -n libnjb5 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc AUTHORS FAQ README LICENSE
%{_bindir}/njb-*
%{_datadir}/hal/fdi/information/10freedesktop/10-usb-music-players-libnjb.fdi
%files -n libnjb5
%defattr (-, root, root)
%{_libdir}/libnjb.so.*
%files devel
%defattr(-,root,root)
%{_libdir}/libnjb.*a
%{_libdir}/libnjb.so
%{_prefix}/include/libnjb.h
%{_libdir}/pkgconfig/libnjb.pc
%changelog
* Tue Apr 01 2008 sbrabec@suse.cz
- Merged SuSE FDI file with upstream one.
- FDI rule adapted to new HAL (bnc#372557).
* Fri Feb 01 2008 rodrigo@suse.de
- Update to version 2.2.6:
* Shape up udev rules so they look like the libsane stuff
* Add HAL FDI file
* Fixup libnjb udev rules to work with new udev and HAL
* Thu Oct 04 2007 maw@suse.de
- Split out a libnjb5 subpackage.
* Wed May 16 2007 olh@suse.de
- Buildrequires libusb -> libusb-devel
Remove unneded Requires libusb
-devel package requires libusb-devel
* Fri Sep 22 2006 jhargadon@suse.de
- update to version 2.2.5
- Added Dell DJ 3
- extended documentation following a register scan
- added the missing clear playback queue command
- added a call to first clear the queue when the play command is called
- simplified device table which was growing wild. Merged protocol/USB
version detection into this file.
* Tue Apr 18 2006 gekker@suse.de
- Instally our own hal fdi file for support of more devices (#149288)
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Sat Dec 31 2005 ro@suse.de
- remove requires for "libusb-devel" (package does not exist)
* Fri Dec 23 2005 gekker@suse.de
- Import version 2.2.4