Name: libkarma Version: 0.1.0 Release: 3%{?dist} Summary: Library to manage the Rio Karma via TCP/IP Group: System Environment/Libraries License: GPLv2 URL: http://www.freakysoft.de/html/libkarma/ Source0: http://www.freakysoft.de/html/libkarma/libkarma-0.1.0.tar.gz Patch0: libkarma-0.1.0-destdir.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: taglib-devel, zlib-devel, libusb-devel # mono only availible on these: %ifarch %ix86 x86_64 ppc ia64 armv4l sparc alpha BuildRequires: mono-devel %endif %description Libkarma is a C library for managing the Rio Karma via TCP/IP. It supports all basic protocol commands and some advanced functions on top of these, like caching of the Rio database. %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %package -n karma-sharp Summary: Mono bindings for %{name} mono development Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: pkgconfig Provides: karma-sharp-devel = %{name}-%{version} %description -n karma-sharp The karma-sharp package contains libraries and header files for developing applications that use %{name} with Mono. %package -n karma-tools Summary: Tools to manage Rio Karma devices Group: Applications/Communications Requires: %{name} = %{version}-%{release} %description -n karma-tools This package contains two tools to manage Rio Karma devices, riocp and chprop. riocp can be used to upload files to the Karma. Those tools are built on libkarma. %prep %setup -q %patch0 -p0 -b .destdir %build CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" export CFLAGS CXXFLAGS # No support for parallel-building #make %{?_smp_mflags} PREFIX=%{_prefix} make PREFIX=%{_prefix} #%%configure --disable-static %install rm -rf $RPM_BUILD_ROOT make install PREFIX=%{_prefix} DEST=$RPM_BUILD_ROOT%{_prefix} LIB=%{_lib} find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' rm -f $RPM_BUILD_ROOT%{_libdir}/*.a rm -rf $RPM_BUILD_ROOT%{_datadir}/doc %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc ChangeLog COPYING THANKS TODO %{_libdir}/*.so.* %files devel %defattr(-,root,root,-) %{_includedir}/* %{_libdir}/*.so # mono only availible on these: %ifarch %ix86 x86_64 ppc ia64 armv4l sparc alpha %files -n karma-sharp %defattr(-,root,root,-) %{_libdir}/karma-sharp %{_libdir}/pkgconfig/karma-sharp.pc %endif %files -n karma-tools %defattr(-,root,root,-) %doc tools/TODO %{_bindir}/* %defattr(644,root,root,755) %{_mandir}/man1/*.1.gz %changelog * Wed Jan 23 2008 Aurelien Bompard 0.1.0-3 - mono is only availible on these archs : ix86 x86_64 ppc ia64 armv4l sparc alpha -> disable karma-sharp elsewhere * Sat Jan 19 2008 Aurelien Bompard 0.1.0-2 - fix 64bit install paths * Mon Aug 13 2007 Aurelien Bompard 0.1.0-1 - initial package