libkarma/libkarma.spec

93 lines
2.8 KiB
RPMSpec

Name: libkarma
Version: 0.1.2
Release: 1mamba
Summary: A C library for managing the Rio Karma mp3 player via TCP/IP
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.freakysoft.de/html/libkarma/
Source: https://www.freakysoft.de/libkarma/libkarma-%{version}.tar.gz
Patch0: libkarma-0.1.0-install_dest.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libtag-devel
BuildRequires: libusb-compat-devel
BuildRequires: libz-devel
BuildRequires: mono-devel
## AUTOBUILDREQ-END
%description
libkarma is a C library for managing the Rio Karma mp3 player via TCP/IP. It supports all basic protocol commands and some advanced functions on top of these, like caching of the Rio database. There are two proof-of-concept tools included, riocp and chprop. riocp can be used to upload files to the Karma.
%package devel
Summary: Devel package for libkarma
Group: Development/Libraries
Requires: %{name} = %{version}
%description devel
libkarma is a C library for managing the Rio Karma mp3 player via TCP/IP. It supports all basic protocol commands and some advanced functions on top of these, like caching of the Rio database. There are two proof-of-concept tools included, riocp and chprop. riocp can be used to upload files to the Karma.
This is the development package.
%debug_package
%prep
%setup -q
#%patch0 -p1
%build
%make -j1
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall \
DEST=%{buildroot}%{_prefix} \
PREFIX=%{_prefix} \
CHOWNPROG=/bin/true \
CHGRPPROG=/bin/true
rm -rf %{buildroot}%{_datadir}/doc/libkarma
%ifarch x86_64 aarch64
mv %{buildroot}%{_prefix}/lib{,64}
%endif
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/chprop
%{_bindir}/karma_helper
%{_bindir}/riocp
%{_libdir}/libkarma.so.*
%dir %{_libdir}/karma-sharp
%{_libdir}/karma-sharp/karma-sharp.dll
%{_libdir}/karma-sharp/karma-sharp.dll.config
%{_mandir}/man1/chprop.1*
%{_mandir}/man1/karma_helper.1*
%{_mandir}/man1/riocp.1*
%doc COPYING
%files devel
%defattr(-,root,root)
%{_libdir}/libkarma.a
%{_libdir}/libkarma.so
%{_libdir}/pkgconfig/karma-sharp.pc
%{_includedir}/libkarma/*.h
%doc ChangeLog THANKS TODO
%changelog
* Sun Dec 26 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1.2-1mamba
- update to 0.1.2
* Mon Jul 15 2013 Automatic Build System <autodist@mambasoft.it> 0.1.1-2mamba
- automatic rebuild by autodist
* Thu Jun 18 2009 Automatic Build System <autodist@mambasoft.it> 0.1.1-1mamba
- automatic update by autodist
* Tue Aug 14 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1.0-1mamba
- package created by autospec