%define _rc rc1 Name: dclibc Version: 0.1.1 Release: 0.1.%{_rc}%{?dist} Summary: A library for implementing the Direct Connect peer-to-peer protocol Group: Development/Libraries License: GPL URL: http://www.gtkdc.org/ Source0: http://www.gtkdc.org/gtkdc_files/%{name}/0.1/%{name}-%{version}-%{_rc}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: glib2-devel %description DCLibC is a library for implementing the Direct Connect peer-to-peer protocol. It offers support for the NMDC protocol (client-hub commands and client-client operations) and an interface to the most common filelists. %package devel Summary: DClibC devel files Group: Development/Libraries Requires: pkgconfig, %{name} = %{version} %description devel DClibC devel files. %prep %setup -q -n %{name}-%{version}-%{_rc} %build %configure --disable-dependency-tracking --enable-shared --disable-static make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT rm -f $RPM_BUILD_ROOT%{_libdir}/libdclibc.la %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc AUTHORS COPYING README TODO %{_libdir}/libdclibc.so.* %files devel %defattr(-,root,root,-) %{_includedir}/%{name} %{_libdir}/pkgconfig/* %{_libdir}/libdclibc.so %changelog * Sat Mar 03 2007 Rafał Psota - 0.1.1-0.1.rc1 - initial release