]> git.pld-linux.org Git - packages/libspf2.git/blame - libspf2.spec
Build 1.2.11 version from git. Fixes CVE-2021-20314 and two other.
[packages/libspf2.git] / libspf2.spec
CommitLineData
2f42b5a3
ER
1# TODO
2# ./configure[3000]: AX_WITH_PERL: not found - needed after regeneration
3
65e29aa8 4Summary: Implementation of the SPF specification
73967574 5Summary(pl.UTF-8): Implementacja specyfikacji SPF
65e29aa8 6Name: libspf2
12ffadbc
AM
7Version: 1.2.11
8Release: 1
65e29aa8 9License: LGPL
10Group: Libraries
12ffadbc
AM
11# Source0: http://www.libspf2.org/spf/%{name}-%{version}.tar.gz
12Source0: https://github.com/shevek/libspf2/tarball/4915c30#/%{name}.tar.gz
13# Source0-md5: ad5f1b48e4f2b5561df99ca7cbf30e92
f7945713 14Patch0: %{name}-link.patch
12ffadbc 15Patch1: 0001-remove-libreplace-unneeded-on-Linux.patch
2f42b5a3 16URL: http://www.libspf2.org/
65e29aa8 17BuildRequires: autoconf >= 2.59
18BuildRequires: automake
19BuildRequires: libtool
47928301 20Obsoletes: libspf_alt
65e29aa8 21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
24Libspf2 is an implementation of the SPF specification as found at
2f42b5a3 25<http://www.ietf.org/internet-drafts/draft-mengwong-spf-01.txt>.
65e29aa8 26
d11e078d
JR
27%description -l pl.UTF-8
28Libspf2 jest implementacją specyfikacji SPF, która znajduje się pod
2f42b5a3
ER
29<adresem
30http://www.ietf.org/internet-drafts/draft-mengwong-spf-01.txt>.
65e29aa8 31
1100577e 32%package tools
33Summary: Tools distributed with libspf2
73967574 34Summary(pl.UTF-8): Programy narzędziowe, dystrybuowane z libspf2
1100577e 35Group: Networking/Utilities
36Requires: %{name} = %{version}-%{release}
37
38%description tools
39Tools distributed with libspf2; at the time of writing: spf_example,
40spf_example_2mx, spfd, spfquery and spftest.
41
d11e078d
JR
42%description tools -l pl.UTF-8
43Programy narzędziowe, dystrybuowane z libspf2; w momencie pisania tego
1100577e 44opisu: spf_example, spf_example_2mx, spfd, spfquery i spftest.
45
65e29aa8 46%package devel
47Summary: Header files for libspf2 library
73967574 48Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libspf2
65e29aa8 49Group: Development/Libraries
50Requires: %{name} = %{version}-%{release}
47928301 51Obsoletes: libspf_alt-devel
65e29aa8 52
53%description devel
54Header files for libspf2 library.
55
d11e078d
JR
56%description devel -l pl.UTF-8
57Pliki nagłówkowe biblioteki libspf2.
65e29aa8 58
59%package static
60Summary: Static libspf2 library
73967574 61Summary(pl.UTF-8): Statyczna biblioteka libspf2
65e29aa8 62Group: Development/Libraries
63Requires: %{name}-devel = %{version}-%{release}
47928301 64Obsoletes: libspf_alt-static
65e29aa8 65
66%description static
67Static libspf2 library.
68
d11e078d 69%description static -l pl.UTF-8
65e29aa8 70Statyczna biblioteka libspf2.
71
72%prep
12ffadbc
AM
73#%%setup -q
74%setup -q -n shevek-libspf2-4915c30
f7945713 75%patch0 -p1
12ffadbc 76%patch1 -p1
65e29aa8 77
78%build
79%{__libtoolize}
80%{__aclocal}
81%{__autoconf}
82%{__autoheader}
2f42b5a3 83%{__automake}
65e29aa8 84%configure
85%{__make}
86
87%install
88rm -rf $RPM_BUILD_ROOT
65e29aa8 89%{__make} install \
90 DESTDIR=$RPM_BUILD_ROOT
91
92%clean
93rm -rf $RPM_BUILD_ROOT
94
95%post -p /sbin/ldconfig
96%postun -p /sbin/ldconfig
97
98%files
99%defattr(644,root,root,755)
dcc755cb 100%doc README TODO LICENSES INSTALL
2f42b5a3
ER
101%attr(755,root,root) %{_libdir}/libspf2.so.*.*.*
102%ghost %{_libdir}/libspf2.so.2
65e29aa8 103
1100577e 104%files tools
105%defattr(644,root,root,755)
2f42b5a3
ER
106%attr(755,root,root) %{_bindir}/spf_example
107%attr(755,root,root) %{_bindir}/spf_example_static
108%attr(755,root,root) %{_bindir}/spfd
109%attr(755,root,root) %{_bindir}/spfd_static
110%attr(755,root,root) %{_bindir}/spfquery
111%attr(755,root,root) %{_bindir}/spfquery_static
112%attr(755,root,root) %{_bindir}/spftest
113%attr(755,root,root) %{_bindir}/spftest_static
1100577e 114
65e29aa8 115%files devel
116%defattr(644,root,root,755)
2f42b5a3
ER
117%attr(755,root,root) %{_libdir}/libspf2.so
118%{_libdir}/libspf2.la
65e29aa8 119%dir %{_includedir}/spf2
120%{_includedir}/spf2/*.h
121
122%files static
123%defattr(644,root,root,755)
2f42b5a3 124%{_libdir}/libspf2.a
This page took 0.050481 seconds and 4 git commands to generate.