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