%define major 2 %define libname %mklibname spf %{major} Summary: Libspf2 is an implementation of the SPF specification Name: libspf2 Version: 1.2.5 Release: %mkrel 2 License: BSD Group: System/Libraries URL: http://www.libspf2.org/ Source0: http://www.libspf2.org/spf/%{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version} %description libspf2 is an implementation of the SPF (Sender Policy Framework) specification as found at: http://www.ietf.org/internet-drafts/draft-mengwong-spf-00.txt SPF allows email systems to check SPF DNS records and make sure that an email is authorized by the administrator of the domain name that it is coming from. This prevents email forgery, commonly used by spammers, scammers, and email viruses/worms. A lot of effort has been put into making it secure by design, and a great deal of effort has been put into the regression tests. %if "%{_lib}" != "lib" %package -n %{libname} Summary: Libspf2 is an implementation of the SPF specification Group: System/Libraries %description -n %{libname} libspf2 is an implementation of the SPF (Sender Policy Framework) specification as found at: http://www.ietf.org/internet-drafts/draft-mengwong-spf-00.txt SPF allows email systems to check SPF DNS records and make sure that an email is authorized by the administrator of the domain name that it is coming from. This prevents email forgery, commonly used by spammers, scammers, and email viruses/worms. A lot of effort has been put into making it secure by design, and a great deal of effort has been put into the regression tests. %endif %package -n %{libname}-devel Summary: Development tools needed to build programs that use libspf2 Group: Development/C Requires: %{libname} = %{version} Provides: libspf-devel %description -n %{libname}-devel The libspf2-devel package contains the header files and static libraries necessary for developing programs using the libspf2 (Sender Policy Framework) library. If you want to develop programs that will look up and process SPF records, you should install libspf2-devel. You also need to install the libspf2 package. %package -n spf2-utils Summary: Programs for making SPF queries using libspf2 Group: System/Servers %description -n spf2-utils Programs for making SPF queries and checking their results using libspf2. %prep %setup -q %build # The configure script checks for the existence of __ns_get16 and uses the # system-supplied version if found, otherwise one from src/libreplace. # However, this function is marked GLIBC_PRIVATE in recent versions of glibc # and shouldn't be called even if the configure script finds it. So we make # sure that the configure script always uses the version in src/libreplace. # This prevents us getting an unresolvable dependency in the built RPM. cat > config.cache << EOF ac_cv_func___ns_get16=no EOF %configure2_5x \ --cache-file=config.cache %make %install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %makeinstall_std # install all headers install -m0644 src/include/*.h %{buildroot}%{_includedir}/spf2/ # these binaries are needed by the tests above rm -f %{buildroot}%{_bindir}/*_static %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %files -n %{libname} %defattr(-,root,root) %doc README Changelog docs/*.txt INSTALL LICENSES TODO %{_libdir}/lib*.so.* %files -n %{libname}-devel %defattr(-,root,root) %doc docs/API %{_libdir}/*.a %{_libdir}/*.la %{_libdir}/*.so %{_includedir}/spf2 %files -n spf2-utils %defattr(-,root,root) %{_bindir}/spfd %{_bindir}/spfquery %{_bindir}/spftest %{_bindir}/spf_example %changelog * Wed Mar 30 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 1.2.5-2mdk - install missing headers * Wed Mar 30 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 1.2.5-1mdk - 1.2.5 - use the %%mkrel macro - remove the resolv patch, it's integrated upstream - cleaned up the spec file and used naming as in the libalsa2 package * Tue Feb 22 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 1.2.4-1mdk - 1.2.4 * Sun Feb 20 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 1.2.1-1mdk - 1.2.1 - remove the lowercase diff (P0) * Sat Jan 01 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 1.0.4-2mdk - make it build on amd64 (duh!) * Wed Oct 20 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 1.0.4-1mdk - initial mandrake import * Mon Aug 16 2004 Paul Howarth <paul@city-fan.org> 1.0.4-7 - Configure fix to find -lresolv on x64_64 - Portability fixes for x64_64 * Sun Aug 1 2004 Paul Howarth <paul@city-fan.org> 1.0.4-6 - Fix case-sensitivity bug. * Wed Jul 28 2004 Paul Howarth <paul@city-fan.org> 1.0.4-5 - Revert -pthread option as it didn't improve anything. * Tue Jul 27 2004 Paul Howarth <paul@city-fan.org> 1.0.4-4 - Use `alternatives' so that the spfquery and spfd programs can co-exist with versions from other implementations. - Ensure thread-safe operation by building with -pthread. * Thu Jul 15 2004 Paul Howarth <paul@city-fan.org> 1.0.4-3 - Install the libtool library in the devel package so that dependent libraries are found properly. - Use the libtool supplied with the package rather than the system libtool. * Tue Jul 13 2004 Paul Howarth <paul@city-fan.org> 1.0.4-2 - Cosmetic changes for building on Mandrake Linux - Require rpm-build >= 4.1.1 for building to avoid strange error messages from old versions of rpm when they see %%check - Require glibc-devel and make for building - Require perl for building with checks enabled - Improved description text for the packages * Fri Jul 09 2004 Paul Howarth <paul@city-fan.org> 1.0.4-1 - Update to 1.0.4 - Added facility to build without running test suite (rpmbuild --without checks) * Sat Jul 03 2004 Paul Howarth <paul@city-fan.org> 1.0.3-1 - Initial RPM build.