libnjb/libnjb.spec

101 lines
3.6 KiB
RPMSpec

Name: libnjb
Version: 2.2.7
Release: 2mamba
Summary: A C library and API for communicating with the Creative Nomad JukeBox and Dell DJ digital audio players
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://libnjb.sourceforge.net
Source: http://downloads.sourceforge.net/sourceforge/libnjb/libnjb-%{version}.tar.gz
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libcap-devel
BuildRequires: libdw-devel
BuildRequires: libncurses-devel
BuildRequires: libpcre-devel
BuildRequires: libselinux-devel
BuildRequires: libsepol-devel
BuildRequires: libudev-devel
BuildRequires: libusb-compat-devel
BuildRequires: libusb-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRequires: libtag-devel >= 1.9.1
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
libnjb is a C library and API for communicating with the Creative Nomad JukeBox and Dell DJ digital audio players under BSD, Linux, Mac OS X and Windows. The protocol these devices use is presumably called PDE (Portable Digital Entertainment protocol) at Creative. Newer devices using the Microsoft MTP (Media Transfer Protocol) are NOT supported.
There are no kernel devices required for libnjb:s operation, so instead it depends on user-level USB using libusb on all platforms.
%package devel
Summary: Devel package for %{name}
Group: Development/Libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
libnjb is a C library and API for communicating with the Creative Nomad JukeBox and Dell DJ digital audio players under BSD, Linux, Mac OS X and Windows. The protocol these devices use is presumably called PDE (Portable Digital Entertainment protocol) at Creative. Newer devices using the Microsoft MTP (Media Transfer Protocol) are NOT supported.
There are no kernel devices required for libnjb:s operation, so instead it depends on user-level USB using libusb on all platforms.
This package contains static libraries and header files need for development.
%package -n njb-tools
Summary: Tools for using %{name}
Group: System/Tools
%description -n njb-tools
libnjb is a C library and API for communicating with the Creative Nomad JukeBox and Dell DJ digital audio players under BSD, Linux, Mac OS X and Windows. The protocol these devices use is presumably called PDE (Portable Digital Entertainment protocol) at Creative. Newer devices using the Microsoft MTP (Media Transfer Protocol) are NOT supported.
There are no kernel devices required for libnjb:s operation, so instead it depends on user-level USB using libusb on all platforms.
This package contains a set of tools for interfacing to %{name}.
%prep
%setup -q
%build
%configure \
--program-prefix=njb-
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libnjb.so.*
%doc AUTHORS LICENSE
%files devel
%defattr(-,root,root)
%{_libdir}/libnjb.a
%{_libdir}/libnjb.la
%{_libdir}/libnjb.so
%{_includedir}/*.h
%{_libdir}/pkgconfig/*.pc
%doc ChangeLog ChangeLog-old README
%files -n njb-tools
%defattr(-,root,root)
%{_bindir}/*
%changelog
* Wed Dec 30 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.7-2mamba
- mass rebuild with libtag 1.9.1
* Fri Jul 01 2011 Automatic Build System <autodist@mambasoft.it> 2.2.7-1mamba
- automatic update by autodist
* Tue Jul 29 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.6-1mamba
- package created by autospec