-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #163 from kou/libspf2
libspf2-1.2.9: initial commit
- Loading branch information
Showing
1 changed file
with
93 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
# $Id$ | ||
# Authority: Axel Thimm | ||
# Upstream: http://www.libspf2.org/ | ||
|
||
Summary: An implemenation of the Sender Policy Framework | ||
Name: libspf2 | ||
Version: 1.2.9 | ||
Release: 7%{?dist} | ||
License: GPL/BSD dual license | ||
Group: System Environment/Libraries | ||
URL: http://www.libspf2.org/ | ||
|
||
Source: http://www.libspf2.org/spf/%{name}-%{version}.tar.gz | ||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root | ||
|
||
BuildRequires: gettext | ||
BuildRequires: gcc-c++ | ||
BuildRequires: rpm-macros-rpmforge | ||
|
||
%description | ||
libspf2 implements the Sender Policy Framework, a part of the SPF/SRS | ||
protocol pair. libspf2 is a library which allows email systems such as | ||
Sendmail, Postfix, Exim, Zmailer and MS Exchange to check SPF records | ||
and make sure that the email is authorized by the domain name that it | ||
is coming from. This prevents email forgery, commonly used by | ||
spammers, scammers and email viruses/worms. | ||
|
||
%package devel | ||
Summary: Header files and libraries for %{name}. | ||
Group: Development/Libraries | ||
Requires: %{name} = %{version}-%{release} | ||
|
||
%description devel | ||
This package contains the header files and static libraries for | ||
%{name}. If you like to develop programs using %{name}, you will need | ||
to install %{name}-devel. | ||
|
||
%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. | ||
ac_cv_func___ns_get16=no | ||
export ac_cv_func___ns_get16 | ||
%configure | ||
make %{?_smp_mflags} | ||
|
||
%install | ||
rm -rf %{buildroot} | ||
%{__make} install DESTDIR="%{buildroot}" | ||
|
||
%post | ||
/sbin/ldconfig 2>/dev/null | ||
|
||
%postun -p /sbin/ldconfig | ||
|
||
%clean | ||
%{__rm} -rf %{buildroot} | ||
|
||
%files | ||
%defattr(-, root, root, 0755) | ||
%doc README LICENSES TODO | ||
%{_bindir}/spf* | ||
%{_libdir}/*.so.* | ||
|
||
%files devel | ||
%defattr(-, root, root, 0755) | ||
%{_includedir}/spf2/*.h | ||
%{_libdir}/*.so | ||
%{_libdir}/*.a | ||
%{_libdir}/*.la | ||
|
||
%changelog | ||
* Sun May 6 2012 Kouhei Sutou <kou@clear-code.com> - 1.2.9-7 | ||
- Imported from ATrpms. | ||
|
||
* Tue Mar 1 2011 Axel Thimm <Axel.Thimm@ATrpms.net> - 1.2.9-6 | ||
- Update to 1.2.9. | ||
|
||
* Tue Oct 25 2005 Axel Thimm <Axel.Thimm@ATrpms.net> | ||
- Fixes for 64 bits (by Carsten Koch-Mauthe <ckm@vienenbox.de>). | ||
|
||
* Mon Jul 4 2005 Axel Thimm <Axel.Thimm@ATrpms.net> | ||
- Update to 1.2.5. | ||
|
||
* Fri Feb 11 2005 Axel Thimm <Axel.Thimm@ATrpms.net> | ||
- Initial build. | ||
- added patches from builds of Paul Howarth <paul@city-fan.org>. |