%define cvs 20041216 Summary: Direct Connect file sharing library Name: dclib Version: 0.3.4 Release: 2.n0i.2%{?cvs:.cvs%{cvs}} License: GPL URL: http://dcgui.berlios.de Group: System Environment/Libraries %if %{?cvs:1}%{!?cvs:0} Source: %{name}-%{version}-cvs%{cvs}.tar.bz2 %else Source: http://download.berlios.de/dcgui/%{name}-%{version}.tar.bz2 %endif Patch0: cxml4.patch Patch1: cspeed.patch Patch2: czlib.patch Patch3: dclib-connectionlist_fix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: openssl-devel, libxml2-devel, bzip2-devel %{?cvs:BuildRequires: automake16} Requires: libxml2, openssl, bzip2-libs %description This library implements the Direct Connect file sharing protocol. The package contains the shared library required for running programs based on dclib. %package devel Summary: Development Direct Connect shared library Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: openssl-devel, libxml2-devel, bzip2-devel %description devel This library implements the Direct Connect file sharing protocol. The package contains the C++ headers and static library to compile programs based on dclib. %prep %setup %{?cvs:-n %{name}} %patch0 %patch1 %patch2 %patch3 %{?cvs:make -f Makefile.dist} %build %configure make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install-strip DESTDIR=$RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{_libdir}/libdc.so.* %files devel %defattr(-,root,root,-) %{_includedir}/dclib %{_libdir}/pkgconfig/* %{_libdir}/libdc.a %exclude %{_libdir}/libdc.la %changelog * Thu Dec 16 2004 Marius FERARU 0:0.3.4-2.n0i.2.cvs20041216 - refreshed source to the current CVS snapshot - added more dependency tags - twisted spec to enable building CVS snapshots - added some patches from people on dcgui forum: + patch to work around utf collate problems in libxml2-2.6.16 + patch to remove "INFLATE"-spew when downloading. + patch to set "28.8Kbps" as defaultspeed as "Modem" causes problems with some hubs + patch to fix Valknut ignoring connection requests * Wed Dec 08 2004 Marius FERARU 0:0.3.3-1.n0i.1 - initial packaging