- don't cp config.{sub,guess} - they are copied by %{__automake}
[packages/libspf2.git] / libspf2.spec
1 Summary:        Implementation of the SPF specification
2 Summary(pl):    Implementacja specyfikacji SPF
3 Name:           libspf2
4 Version:        1.0.4
5 Release:        3
6 License:        LGPL
7 Group:          Libraries
8 Source0:        http://libspf2.org/spf/%{name}-%{version}.tar.gz
9 # Source0-md5:  5fe69ba13bf35d505b733247032a8a64
10 Patch0:         %{name}-link.patch
11 Patch1:         %{name}-ac.patch
12 BuildRequires:  autoconf >= 2.59
13 BuildRequires:  automake
14 BuildRequires:  libtool
15 Obsoletes:      libspf_alt
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 Libspf2 is an implementation of the SPF specification as found at
20 http://www.ietf.org/internet-drafts/draft-mengwong-spf-01.txt .
21
22 %description -l pl
23 Libspf2 jest implementacj± specyfikacji SPF, która znajduje siê pod
24 adresem
25 http://www.ietf.org/internet-drafts/draft-mengwong-spf-01.txt .
26
27 %package tools
28 Summary:        Tools distributed with libspf2
29 Summary(pl):    Programy narzêdziowe, dystrybuowane z libspf2
30 Group:          Networking/Utilities
31 Requires:       %{name} = %{version}-%{release}
32
33 %description tools
34 Tools distributed with libspf2; at the time of writing: spf_example,
35 spf_example_2mx, spfd, spfquery and spftest.
36
37 %description tools -l pl
38 Programy narzêdziowe, dystrybuowane z libspf2; w momencie pisania tego
39 opisu: spf_example, spf_example_2mx, spfd, spfquery i spftest.
40
41 %package devel
42 Summary:        Header files for libspf2 library
43 Summary(pl):    Pliki nag³ówkowe biblioteki libspf2
44 Group:          Development/Libraries
45 Requires:       %{name} = %{version}-%{release}
46 Obsoletes:      libspf_alt-devel
47
48 %description devel
49 Header files for libspf2 library.
50
51 %description devel -l pl
52 Pliki nag³ówkowe biblioteki libspf2.
53
54 %package static
55 Summary:        Static libspf2 library
56 Summary(pl):    Statyczna biblioteka libspf2
57 Group:          Development/Libraries
58 Requires:       %{name}-devel = %{version}-%{release}
59 Obsoletes:      libspf_alt-static
60
61 %description static
62 Static libspf2 library.
63
64 %description static -l pl
65 Statyczna biblioteka libspf2.
66
67 %prep
68 %setup -q
69 %patch0 -p1
70 %patch1 -p1
71
72 %build
73 %{__libtoolize}
74 %{__aclocal}
75 %{__autoconf}
76 %{__autoheader}
77 %{__automake} 
78 %configure
79 %{__make}
80
81 %install
82 rm -rf $RPM_BUILD_ROOT
83
84 %{__make} install \
85         DESTDIR=$RPM_BUILD_ROOT
86
87 %clean
88 rm -rf $RPM_BUILD_ROOT
89
90 %post   -p /sbin/ldconfig
91 %postun -p /sbin/ldconfig
92
93 %files
94 %defattr(644,root,root,755)
95 %doc README TODO LICENSES INSTALL Changelog docs/API docs/draft-mengwong-spf-00.txt
96 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
97
98 %files tools
99 %defattr(644,root,root,755)
100 %attr(755,root,root) %{_bindir}/*
101
102 %files devel
103 %defattr(644,root,root,755)
104 %attr(755,root,root) %{_libdir}/lib*.so
105 %{_libdir}/lib*.la
106 %dir %{_includedir}/spf2
107 %{_includedir}/spf2/*.h
108
109 %files static
110 %defattr(644,root,root,755)
111 %{_libdir}/lib*.a
This page took 0.056457 seconds and 3 git commands to generate.