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