af8bfd8
# SPEC file for libnjb, primary target is the Fedora Extras
af8bfd8
# RPM repository.
af8bfd8
af8bfd8
Name:		libnjb
ae5058e
Version:	2.2.6
6e287ff
Release:	6%{?dist}
af8bfd8
Summary:	A software library for talking to the Creative Nomad Jukeboxes and Dell DJs
af8bfd8
URL:		http://libnjb.sourceforge.net/
af8bfd8
af8bfd8
Group:		System Environment/Libraries
2791adc
Source0:	http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
2791adc
Source1:	libnjb.rules
af8bfd8
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
af8bfd8
License:	BSD
2791adc
Requires:	udev
af8bfd8
BuildRequires:	libusb-devel
af8bfd8
BuildRequires:	zlib-devel
af8bfd8
BuildRequires:	ncurses-devel
af8bfd8
BuildRequires:	doxygen
af8bfd8
af8bfd8
%description
af8bfd8
This package provides a software library for communicating with the
af8bfd8
Creative Nomad Jukebox line of MP3 players.
af8bfd8
af8bfd8
%package examples
af8bfd8
Summary:        Example programs for libnjb
af8bfd8
Group:          Applications/Multimedia
af8bfd8
Requires:       %{name} = %{version}-%{release}
af8bfd8
af8bfd8
%description examples
af8bfd8
This package provides example programs for communicating with the
af8bfd8
Creative Nomad Jukebox and Dell DJ line of MP3 players.
af8bfd8
af8bfd8
%package devel
af8bfd8
Summary:        Development files for libnjb
af8bfd8
Group:          System Environment/Libraries
af8bfd8
Requires:       %{name} = %{version}-%{release}
af8bfd8
# doc subpackage removed in newer releases, and included
af8bfd8
# in the -devel package.
af8bfd8
Provides:	libnjb-doc
af8bfd8
Obsoletes:	libnjb-doc <= 2.2-1
af8bfd8
Requires:	libusb-devel
af8bfd8
Requires:	zlib-devel
af8bfd8
Requires:	ncurses-devel
af8bfd8
af8bfd8
%description devel
af8bfd8
This package provides development files for the libnjb
af8bfd8
library for Creative Nomad/Zen/Jukebox and Dell DJ line of MP3 players.
af8bfd8
af8bfd8
%prep
af8bfd8
%setup -q
af8bfd8
af8bfd8
%build
af8bfd8
%configure --disable-static --program-prefix=njb-
af8bfd8
make %{?_smp_mflags}
af8bfd8
af8bfd8
%install
af8bfd8
rm -rf $RPM_BUILD_ROOT
af8bfd8
%makeinstall
af8bfd8
# Remove libtool archive remnant
af8bfd8
rm -f $RPM_BUILD_ROOT%{_libdir}/libnjb.la
2791adc
# Install udev rules file.
2791adc
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
2791adc
install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/60-libnjb.rules
ae5058e
mkdir -p $RPM_BUILD_ROOT%{_datadir}/hal/fdi/information/10freedesktop
ae5058e
install -p -m 644 libnjb.fdi $RPM_BUILD_ROOT%{_datadir}/hal/fdi/information/10freedesktop/10-usb-music-players-libnjb.fdi
af8bfd8
# Copy documentation to a good place
af8bfd8
install -p -m 644 AUTHORS ChangeLog ChangeLog-old FAQ \
af8bfd8
INSTALL LICENSE HACKING $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
78ed0ab
# Touch generated files to make them always have the same time stamp.
78ed0ab
touch -r configure.ac \
78ed0ab
      $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html/* \
78ed0ab
      $RPM_BUILD_ROOT%{_includedir}/*.h \
78ed0ab
      $RPM_BUILD_ROOT%{_libdir}/pkgconfig/*.pc
78ed0ab
# Remove the Doxygen HTML documentation, this get different
78ed0ab
# each time it is generated and thus creates multiarch conflicts.
78ed0ab
# I don't want to pre-generate it but will instead wait for upstream
78ed0ab
# to find a suitable solution that will always bring the same files,
78ed0ab
# or that Doxygen is fixed not to do this.
3b36af8
#rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html
af8bfd8
af8bfd8
%clean
af8bfd8
rm -rf $RPM_BUILD_ROOT
af8bfd8
af8bfd8
%post -p /sbin/ldconfig
af8bfd8
%postun -p /sbin/ldconfig
af8bfd8
af8bfd8
%files
af8bfd8
%defattr(-, root, root)
af8bfd8
%{_libdir}/*.so.*
2791adc
%config(noreplace) %{_sysconfdir}/udev/rules.d/*
ae5058e
%config(noreplace) %{_datadir}/hal/fdi/information/10freedesktop/10-usb-music-players-libnjb.fdi
af8bfd8
%files examples
af8bfd8
%defattr(-, root, root)
af8bfd8
%{_bindir}/*
af8bfd8
af8bfd8
%files devel
af8bfd8
%defattr(-, root, root)
af8bfd8
%{_libdir}/*.so
af8bfd8
%dir %{_docdir}/%{name}-%{version}
af8bfd8
%{_docdir}/%{name}-%{version}/*
af8bfd8
%{_includedir}/*.h
af8bfd8
%{_libdir}/pkgconfig/*.pc
af8bfd8
af8bfd8
af8bfd8
%changelog
6e287ff
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.6-6
6e287ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
6e287ff
8167db1
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.6-5
8167db1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
8167db1
3b36af8
* Fri Jul 11 2008 Linus Walleij <triad@df.lth.se> 2.2.6-4
3b36af8
- Loose console permissions. See if docs build fine again.
c7b48e5
* Sat Feb 9 2008 Linus Walleij <triad@df.lth.se> 2.2.6-3
c7b48e5
- Rebuild for GCC 4.3.
78ed0ab
* Wed Oct 24 2007 Linus Walleij <triad@df.lth.se> 2.2.6-2
78ed0ab
- Flat out KILL the Doxygen HTML docs to resolve multiarch conflicts.
78ed0ab
  Either upstream (that's me!) needs to work around the HTML files being 
78ed0ab
  different each time OR Doxygen must stop generating anchors that
78ed0ab
  hash the system time, creating different files with each generation.
78ed0ab
  Pre-generating the docs is deemed silly. (Someone will disagree.)
ae5058e
* Wed Sep 5 2007 Linus Walleij <triad@df.lth.se> 2.2.6-1
ae5058e
- Long overdue upstream release.
ae5058e
- Shape up udev rules so they look like the libsane stuff.
ae5058e
- Add HAL FDI file.
cbde10d
* Fri Aug 17 2007 Linus Walleij <triad@df.lth.se> 2.2.5-4
cbde10d
- Fixup libnjb udev rules to work with new udev and HAL.
e7341ad
* Mon Aug 28 2006 Linus Walleij <triad@df.lth.se> 2.2.5-3
e7341ad
- Rebuild for Fedora Extras 6.
a2369f8
* Tue Feb 14 2006 Linus Walleij <triad@df.lth.se> 2.2.5-2
a2369f8
- Rebuild for Fedora Extras 5.
97a910a
* Sun Jan 29 2006 Linus Walleij <triad@df.lth.se> 2.2.5-1
97a910a
- New upstream release.
2791adc
* Wed Jan 25 2006 Linus Walleij <triad@df.lth.se> 2.2.4-2
2791adc
- Fix udev problem, let go of hotplug, fix console perms.
2791adc
- Still working on libusb vs udev issues.
c096f30
* Wed Oct 12 2005 Linus Walleij <triad@df.lth.se> 2.2.4-1
c096f30
- New upstream release.
96b0665
* Mon Sep 19 2005 Linus Walleij <triad@df.lth.se> 2.2.3-1
96b0665
- New upstream release.
17546e7
* Tue Sep 6 2005 Linus Walleij <triad@df.lth.se> 2.2.2-1
17546e7
- New upstream release.
af8bfd8
* Wed Aug 11 2005 Linus Walleij <triad@df.lth.se> 2.2.1-7
af8bfd8
- Forgot one extraneous docdir, removing it.
af8bfd8
* Wed Aug 10 2005 Linus Walleij <triad@df.lth.se> 2.2.1-6
af8bfd8
- Even more fixes after more feedback from Michael.
af8bfd8
* Tue Aug 9 2005 Linus Walleij <triad@df.lth.se> 2.2.1-5
af8bfd8
- More fixes after feedback from Michael Schwendt.
af8bfd8
* Sun Aug 7 2005 Linus Walleij <triad@df.lth.se> 2.2.1-4
af8bfd8
- More fixes after feedback from Ralf Corsepius.
af8bfd8
* Sat Aug 6 2005 Linus Walleij <triad@df.lth.se> 2.2.1-3
af8bfd8
- Remove unnecessary macros.
af8bfd8
* Mon Aug 1 2005 Linus Walleij <triad@df.lth.se> 2.2.1-2
af8bfd8
- More work on Fedora compliance.
af8bfd8
* Sat Jul 30 2005 Linus Walleij <triad@df.lth.se> 2.2.1-1
af8bfd8
- Fedora extrafication, created a -devel package.
af8bfd8
* Mon Jun 27 2005 Linus Walleij <triad@df.lth.se> 2.2-1
af8bfd8
- Fixed a lot of RPM modernization for 2.2 release
af8bfd8
* Mon May 23 2005 Linus Walleij <triad@df.lth.se> 2.1.2-1
af8bfd8
- Interrim 2.1.2 release. Fixed program prefix.
af8bfd8
* Fri May 13 2005 Linus Walleij <triad@df.lth.se> 2.1.1-1
af8bfd8
- Interrim 2.1.1 release. Fixed library versioning.
af8bfd8
* Tue May 10 2005 Linus Walleij <triad@df.lth.se> 2.1-1
af8bfd8
- Final 2.1 release. Removed the checkings for old hotplug versions.
af8bfd8
* Fri Mar 4 2005 Ed Welch <ed_welch@inbox.net> 2.0-1mdk
af8bfd8
- Mandrake rpm for final 2.0 release.
af8bfd8
* Wed Mar 2 2005 Linus Walleij <triad@df.lth.se> 2.0-1
af8bfd8
- Final 2.0 release.
af8bfd8
* Mon Feb 21 2005 Linus Walleij <triad@df.lth.se> 2.0-0.RC1
af8bfd8
- Release candidate 1 for 2.0.
af8bfd8
* Tue Feb 8 2005 Linus Walleij <triad@df.lth.se> 2.0-0.20050208
af8bfd8
- Third CVS snapshot for the pre-2.0 series.
af8bfd8
* Thu Jan 20 2005 Linus Walleij <triad@df.lth.se> 2.0-0.20050120
af8bfd8
- Second CVS snapshot for the pre-2.0 series.
af8bfd8
* Mon Jan 10 2005 Linus Walleij <triad@df.lth.se> 2.0-0.20050110
af8bfd8
- A CVS snapshot for the first pre-2.0 series.
af8bfd8
* Tue Nov 30 2004 Linus Walleij <triad@df.lth.se> 1.3-0.20041130
af8bfd8
- A CVS snapshot for the new API and all.
af8bfd8
* Wed Sep 29 2004 Linus Walleij <triad@df.lth.se> 1.2-0.20040929
af8bfd8
- A CVS snapshot, much needed, which also works
af8bfd8
* Fri Sep 24 2004 Linus Walleij <triad@df.lth.se> 1.2-0.20040924
af8bfd8
- A CVS snapshot, much needed.
af8bfd8
* Tue May 25 2004 Linus Walleij <triad@df.lth.se> 1.1-1
af8bfd8
- Added hook to redistribute pkgconfig module
af8bfd8
* Wed Apr 25 2004 Linus Walleij <triad@df.lth.se> 1.1-1
af8bfd8
- Final 1.1 release!
af8bfd8
* Wed Apr 21 2004 Linus Walleij <triad@df.lth.se> 1.0.2-0.20040421
af8bfd8
- A new CVS snapshot.
af8bfd8
* Fri Apr 9 2004 Linus Walleij <triad@df.lth.se> 1.0.2-0.20040409
af8bfd8
- A new CVS snapshot.
af8bfd8
* Sun Feb 22 2004 Linus Walleij <triad@df.lth.se> 1.0.2-0.20040222
af8bfd8
- A new CVS snapshot. Adressing several bugs.
af8bfd8
* Fri Jan 9 2004 Linus Walleij <triad@df.lth.se> 1.0.1-0.20040109
af8bfd8
- A new CVS release adressing bugs, better numbering scheme
af8bfd8
* Tue Dec 9 2003 Linus Walleij <triad@df.lth.se> 1.0.1-1
af8bfd8
- Addressed some issues in 1.0
af8bfd8
* Tue Dec 9 2003 Linus Walleij <triad@df.lth.se> 1.0-2
af8bfd8
- Second package for samples
af8bfd8
* Sat Dec 6 2003 Linus Walleij <triad@df.lth.se> 1.0-1
af8bfd8
- Final 1.0 release
af8bfd8
* Sun Aug 17 2003 Linus Walleij <triad@df.lth.se> 1.1.0b-6
af8bfd8
- Seventh RPM
af8bfd8
* Sun Aug 17 2003 Linus Walleij <triad@df.lth.se> 1.1.0b-5
af8bfd8
- Sixth RPM
af8bfd8
* Thu Jul 31 2003 Linus Walleij <triad@df.lth.se> 1.1.0b-4
af8bfd8
- Fifth RPM
af8bfd8
* Wed Jun 11 2003 Linus Walleij <triad@df.lth.se> 1.1.0b-3
af8bfd8
- Fourth RPM.
af8bfd8
* Mon Apr 21 2003 Linus Walleij <triad@df.lth.se> 1.1.0b-2
af8bfd8
- Third RPM, big improvements in hotplug installation.
af8bfd8
* Sun Mar 30 2003 Linus Walleij <triad@df.lth.se> 1.1.0b
af8bfd8
- Second CVS RPM
af8bfd8
* Thu Dec 26 2002 Dwight Engen <dengen40@yahoo.com> 0.9.1
af8bfd8
- First RPM'ed