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