File libnjb.spec of Package libnjb

#
# spec file for package libnjb
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           libnjb
BuildRequires:  libusb-devel zlib-devel
Url:            http://libnjb.sourceforge.net
License:        BSD 3-Clause
Group:          Development/Libraries/Other
AutoReqProv:    on
Version:        2.2.7
Release:        1
Summary:        Nomad Jukebox API
Source:         %{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       dbus-1

%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

%build
autoreconf -fiv
%configure --program-prefix=njb- --disable-static --with-pic
%{__make} %{?jobs:-j%jobs}

%install
make install DESTDIR=$RPM_BUILD_ROOT
rm %{buildroot}%{_libdir}/*.la

%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-*

%files -n libnjb5
%defattr (-, root, root)
%{_libdir}/libnjb.so.*

%files devel
%defattr(-,root,root)
%{_libdir}/libnjb.so
%{_prefix}/include/libnjb.h
%{_libdir}/pkgconfig/libnjb.pc

%changelog
openSUSE Build Service is sponsored by