]>
Commit | Line | Data |
---|---|---|
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: 3 | |
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 | # https://github.com/shevek/libspf2/pull/44 | |
17 | Patch2: integer-underflow.patch | |
18 | Patch3: spf_dns-include-std-headers.patch | |
19 | Patch4: abolish-spf-rrtype.patch | |
20 | URL: http://www.libspf2.org/ | |
21 | BuildRequires: autoconf >= 2.59 | |
22 | BuildRequires: automake | |
23 | BuildRequires: libtool | |
24 | Obsoletes: libspf_alt | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | Libspf2 is an implementation of the SPF specification as found at | |
29 | <http://www.ietf.org/internet-drafts/draft-mengwong-spf-01.txt>. | |
30 | ||
31 | %description -l pl.UTF-8 | |
32 | Libspf2 jest implementacją specyfikacji SPF, która znajduje się pod | |
33 | <adresem | |
34 | http://www.ietf.org/internet-drafts/draft-mengwong-spf-01.txt>. | |
35 | ||
36 | %package tools | |
37 | Summary: Tools distributed with libspf2 | |
38 | Summary(pl.UTF-8): Programy narzędziowe, dystrybuowane z libspf2 | |
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 | ||
46 | %description tools -l pl.UTF-8 | |
47 | Programy narzędziowe, dystrybuowane z libspf2; w momencie pisania tego | |
48 | opisu: spf_example, spf_example_2mx, spfd, spfquery i spftest. | |
49 | ||
50 | %package devel | |
51 | Summary: Header files for libspf2 library | |
52 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libspf2 | |
53 | Group: Development/Libraries | |
54 | Requires: %{name} = %{version}-%{release} | |
55 | Obsoletes: libspf_alt-devel | |
56 | ||
57 | %description devel | |
58 | Header files for libspf2 library. | |
59 | ||
60 | %description devel -l pl.UTF-8 | |
61 | Pliki nagłówkowe biblioteki libspf2. | |
62 | ||
63 | %package static | |
64 | Summary: Static libspf2 library | |
65 | Summary(pl.UTF-8): Statyczna biblioteka libspf2 | |
66 | Group: Development/Libraries | |
67 | Requires: %{name}-devel = %{version}-%{release} | |
68 | Obsoletes: libspf_alt-static | |
69 | ||
70 | %description static | |
71 | Static libspf2 library. | |
72 | ||
73 | %description static -l pl.UTF-8 | |
74 | Statyczna biblioteka libspf2. | |
75 | ||
76 | %prep | |
77 | #%%setup -q | |
78 | %setup -q -n shevek-libspf2-4915c30 | |
79 | %patch0 -p1 | |
80 | %patch1 -p1 | |
81 | %patch2 -p1 | |
82 | %patch3 -p1 | |
83 | %patch4 -p1 | |
84 | ||
85 | %build | |
86 | %{__libtoolize} | |
87 | %{__aclocal} | |
88 | %{__autoconf} | |
89 | %{__autoheader} | |
90 | %{__automake} | |
91 | %configure | |
92 | %{__make} | |
93 | ||
94 | %install | |
95 | rm -rf $RPM_BUILD_ROOT | |
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) | |
107 | %doc README TODO LICENSES INSTALL | |
108 | %attr(755,root,root) %{_libdir}/libspf2.so.*.*.* | |
109 | %ghost %{_libdir}/libspf2.so.2 | |
110 | ||
111 | %files tools | |
112 | %defattr(644,root,root,755) | |
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 | |
121 | ||
122 | %files devel | |
123 | %defattr(644,root,root,755) | |
124 | %attr(755,root,root) %{_libdir}/libspf2.so | |
125 | %{_libdir}/libspf2.la | |
126 | %dir %{_includedir}/spf2 | |
127 | %{_includedir}/spf2/*.h | |
128 | ||
129 | %files static | |
130 | %defattr(644,root,root,755) | |
131 | %{_libdir}/libspf2.a |