%define major 0 %define libname %mklibname spopc %{major} %define develname %mklibname spopc -d Summary: POP3 client library Name: libspopc Version: 0.7.5 Release: %mkrel 1 License: LGPL Group: System/Libraries URL: http://brouits.free.fr/libspopc/ Source0: http://brouits.free.fr/libspopc/releases/%{name}-%{version}.tar.gz Patch0: libspopc-shared.diff BuildRequires: openssl-devel BuildRoot: %{_tmppath}/%{name}-%{version}-root %description 'libspopc' is a simple-to-use POP3 client library. It provides an easy and quick way to host a POP3 client within a program to C developers without exposing them to socket programming. However, the socket layer is also accessible. libspopc allows mail programs to connect to many POP accounts and manage email. It implements the client side of RFC 1939. The email client can download email headers before downloading the entire message. %package -n %{libname} Summary: POP3 client library Group: System/Libraries Obsoletes: %{name} Provides: %{name} %description -n %{libname} 'libspopc' is a simple-to-use POP3 client library. It provides an easy and quick way to host a POP3 client within a program to C developers without exposing them to socket programming. However, the socket layer is also accessible. libspopc allows mail programs to connect to many POP accounts and manage email. It implements the client side of RFC 1939. The email client can download email headers before downloading the entire message. %package -n %{develname} Summary: Development library and header files for %{name} Group: Development/C Requires: %{libname} = %{version} Provides: %{libname}-devel = %{version} Obsoletes: %{libname}-devel Provides: spopc-devel = %{version} Obsoletes: spopc-devel %description -n %{develname} 'libspopc' is a simple-to-use POP3 client library. It provides an easy and quick way to host a POP3 client within a program to C developers without exposing them to socket programming. However, the socket layer is also accessible. libspopc allows mail programs to connect to many POP accounts and manage email. It implements the client side of RFC 1939. The email client can download email headers before downloading the entire message. This package contains the development library and header files for %{name} %prep %setup -q -n %{name}-%{version} %patch -p0 # fix attribs chmod 644 AUTHORS ChangeLog doc/README* README* doc/*.txt doc/*.html examples/* %build make %install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} install -d %{buildroot}%{_includedir} install -d %{buildroot}%{_libdir} install -m0755 libspopc.so.%{version} %{buildroot}%{_libdir}/ ln -snf libspopc.so.%{version} %{buildroot}%{_libdir}/libspopc.so.0.7 ln -snf libspopc.so.%{version} %{buildroot}%{_libdir}/libspopc.so.0 ln -snf libspopc.so.%{version} %{buildroot}%{_libdir}/libspopc.so install -m0755 libspopc.a %{buildroot}%{_libdir}/ install -m0644 libspopc.h %{buildroot}%{_includedir}/ cp doc/README README.examples %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %files -n %{libname} %defattr(-,root,root) %doc AUTHORS ChangeLog README doc/*.txt doc/*.html %{_libdir}/*.so.* %files -n %{develname} %defattr(-,root,root) %doc README.examples examples %{_includedir}/* %{_libdir}/*.so %{_libdir}/*.a %changelog * Sun Aug 19 2007 Oden Eriksson <oeriksson@mandriva.com> 0.7.5-1mdv2008.0 + Revision: 66828 - fix build (try #1) - 0.7.5 - rediffed P0 - fix deps - conform to the 2008 specs - Import libspopc * Fri Jul 14 2006 Oden Eriksson <oeriksson@mandriva.com> 0.7.2-1mdk - 0.7.2 * Fri Jun 03 2005 Oden Eriksson <oeriksson@mandriva.com> 0.5.8-2mdk - rebuild * Tue May 25 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 0.5.8-1mdk - initial cooker contrib - added P0