1 | %define plugindir %{_libdir}/esmtp-plugins |
---|
2 | |
---|
3 | Summary: SMTP client library |
---|
4 | SUmmary(ja): SMTPクライアントライブラリ |
---|
5 | Name: libesmtp |
---|
6 | Version: 1.0.4 |
---|
7 | Release: 3%{?_dist_release} |
---|
8 | License: LGPLv2+ |
---|
9 | Group: System Environment/Libraries |
---|
10 | Source: http://www.stafford.uklinux.net/libesmtp/%{name}-%{version}.tar.bz2 |
---|
11 | Patch1: libesmtp-build.patch |
---|
12 | Patch2: libesmtp-1.0.4-ssl.patch |
---|
13 | URL: http://www.stafford.uklinux.net/libesmtp/ |
---|
14 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
15 | BuildRequires: openssl-devel pkgconfig |
---|
16 | |
---|
17 | %description |
---|
18 | LibESMTP is a library to manage posting (or submission of) electronic |
---|
19 | mail using SMTP to a preconfigured Mail Transport Agent (MTA) such as |
---|
20 | Exim. It may be used as part of a Mail User Agent (MUA) or another |
---|
21 | program that must be able to post electronic mail but where mail |
---|
22 | functionality is not the program's primary purpose. |
---|
23 | |
---|
24 | %package devel |
---|
25 | Summary: Headers and development libraries for libESMTP |
---|
26 | # example file is under the GPLv2+ |
---|
27 | License: LGPLv2+ and GPLv2+ |
---|
28 | Group: Development/Libraries |
---|
29 | Requires: %{name} = %{version}-%{release}, openssl-devel |
---|
30 | |
---|
31 | %description devel |
---|
32 | LibESMTP is a library to manage posting (or submission of) electronic |
---|
33 | mail using SMTP to a preconfigured Mail Transport Agent (MTA) such as |
---|
34 | Exim. |
---|
35 | |
---|
36 | The libesmtp-devel package contains headers and development libraries |
---|
37 | necessary for building programs against libesmtp. |
---|
38 | |
---|
39 | %prep |
---|
40 | %setup -q |
---|
41 | %patch1 -p1 -b .build |
---|
42 | %patch2 -p1 -b .571817 |
---|
43 | |
---|
44 | # Keep rpmlint happy about libesmtp-debuginfo... |
---|
45 | chmod a-x htable.c |
---|
46 | |
---|
47 | %build |
---|
48 | |
---|
49 | if pkg-config openssl ; then |
---|
50 | export CFLAGS="$CFLAGS $RPM_OPT_FLAGS `pkg-config --cflags openssl`" |
---|
51 | export LDFLAGS="$LDFLAGS `pkg-config --libs-only-L openssl`" |
---|
52 | fi |
---|
53 | %configure --with-auth-plugin-dir=%{plugindir} --enable-pthreads \ |
---|
54 | --enable-require-all-recipients --enable-debug \ |
---|
55 | --enable-etrn --disable-isoc --disable-more-warnings --disable-static |
---|
56 | make %{?_smp_mflags} |
---|
57 | cat << "EOF" > libesmtp.pc |
---|
58 | prefix=%{_prefix} |
---|
59 | exec_prefix=%{_prefix} |
---|
60 | libdir=%{_libdir} |
---|
61 | includedir=%{_includedir} |
---|
62 | |
---|
63 | Name: libESMTP |
---|
64 | Version: %{version} |
---|
65 | Description: SMTP client library. |
---|
66 | Requires: openssl |
---|
67 | Libs: -pthread -L${libdir} -lesmtp |
---|
68 | Cflags: |
---|
69 | EOF |
---|
70 | |
---|
71 | cat << "EOF" > libesmtp-config |
---|
72 | #! /bin/sh |
---|
73 | exec pkg-config "$@" libesmtp |
---|
74 | EOF |
---|
75 | |
---|
76 | %install |
---|
77 | rm -rf $RPM_BUILD_ROOT |
---|
78 | make DESTDIR=$RPM_BUILD_ROOT install INSTALL='install -p' |
---|
79 | rm $RPM_BUILD_ROOT/%{_libdir}/*.la |
---|
80 | rm $RPM_BUILD_ROOT/%{_libdir}/esmtp-plugins/*.la |
---|
81 | install -p -m644 -D libesmtp.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig/libesmtp.pc |
---|
82 | |
---|
83 | |
---|
84 | %clean |
---|
85 | rm -rf $RPM_BUILD_ROOT |
---|
86 | |
---|
87 | %post -p /sbin/ldconfig |
---|
88 | |
---|
89 | %postun -p /sbin/ldconfig |
---|
90 | |
---|
91 | %files |
---|
92 | %defattr(-,root,root,-) |
---|
93 | %doc AUTHORS COPYING.LIB NEWS Notes README |
---|
94 | %{_libdir}/libesmtp.so.* |
---|
95 | %{plugindir} |
---|
96 | |
---|
97 | %files devel |
---|
98 | %defattr(-,root,root,-) |
---|
99 | %doc examples COPYING |
---|
100 | %{_bindir}/libesmtp-config |
---|
101 | %{_prefix}/include/* |
---|
102 | %{_libdir}/libesmtp.so |
---|
103 | %{_libdir}/pkgconfig/libesmtp.pc |
---|
104 | |
---|
105 | %changelog |
---|
106 | * Sun Mar 20 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.4-3 |
---|
107 | - rebuild with openssl-1.0.0d |
---|
108 | |
---|
109 | * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.4-2 |
---|
110 | - rebuild with rpm-4.8.1 for pkg-config file |
---|
111 | |
---|
112 | * Sat Jul 10 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.4-1 |
---|
113 | - new upstream release |
---|
114 | |
---|
115 | - fix bug 599428: use 'version' macro instead of '_version'. |
---|
116 | - Use SSL patch by Ludwig Nussel of SUSE (bugzilla att id 399130). |
---|
117 | |
---|
118 | * Tue Mar 9 2010 Pawel Salek <pawsa@theochem.kth.se> - 1.0.4-13 |
---|
119 | - fix CVE-2009-2408 (#571817). |
---|
120 | |
---|
121 | * Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 1.0.4-12 |
---|
122 | - rebuilt with new openssl |
---|
123 | |
---|
124 | * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-11 |
---|
125 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
126 | |
---|
127 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-10 |
---|
128 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
129 | |
---|
130 | * Sat Jan 17 2009 Tomas Mraz <tmraz@redhat.com> - 1.0.4-9 |
---|
131 | - rebuild with new openssl |
---|
132 | |
---|
133 | * Sat Nov 1 2008 Manuel "lonely wolf" Wolfshant <wolfy@fedoraproject.org> - 1.0.4-8 |
---|
134 | - do not package libtool files from the plugin directory |
---|
135 | |
---|
136 | * Fri Apr 4 2008 Pawel Salek <pawsa@theochem.kth.se> - 1.0.4-7 |
---|
137 | - attempt at multilib support (#342011). |
---|
138 | |
---|
139 | * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0.4-6 |
---|
140 | - Autorebuild for GCC 4.3 |
---|
141 | |
---|
142 | * Wed Dec 05 2007 Release Engineering <rel-eng at fedoraproject dot org> - 1.0.4-5 |
---|
143 | - Rebuild for deps |
---|
144 | |
---|
145 | * Sun Nov 18 2007 Patrice Dumas <pertusus@free.fr> - 1.0.4-4 |
---|
146 | - use --disable-static |
---|
147 | |
---|
148 | * Thu Nov 15 2007 Pawel Salek <pawsa@theochem.kth.se> - 1.0.4-3 |
---|
149 | - drop static libs as suggested in bug 377731. |
---|
150 | |
---|
151 | * Mon Sep 11 2006 Pawel Salek <pawsa@theochem.kth.se> - 1.0.4-2 |
---|
152 | - rebuild for FC6. |
---|
153 | |
---|
154 | * Fri Mar 24 2006 Pawel Salek <pawsa@theochem.kth.se> - 1.0.4-1 |
---|
155 | - Update to 1.0.4 - redo build and ssl patches. |
---|
156 | |
---|
157 | * Wed Mar 1 2006 Pawel Salek <pawsa@theochem.kth.se> - 1.0.3r1-8 |
---|
158 | - Rebuild for Fedora Extras 5 |
---|
159 | |
---|
160 | * Sun Dec 4 2005 Pawel Salek <pawsa@theochem.kth.se> - 1.0.3r1-7 |
---|
161 | - Fix bug 173332 completely, including licence issues. |
---|
162 | |
---|
163 | * Thu Nov 17 2005 Pawel Salek <pawsa@theochem.kth.se> - 1.0.3r1-6 |
---|
164 | - fix #173332. |
---|
165 | |
---|
166 | * Tue Nov 15 2005 Dan Williams <dcbw@redhat.com> - 1.0.3r1-5 |
---|
167 | - rebuild against newer crypto libs |
---|
168 | |
---|
169 | * Wed Oct 19 2005 Pawel Salek <pawsa@theochem.kth.se> - 1.0.3r1-4 |
---|
170 | - fix crashes on certificates with subjectAltName extension. Fix #166844. |
---|
171 | |
---|
172 | * Sun Jun 12 2005 Pawel Salek <pawsa@theochem.kth.se> - 1.0.3r1-3 |
---|
173 | - Add libesmtp-build.patch - fix building under FC4. |
---|
174 | |
---|
175 | * Thu Sep 30 2004 Miloslav Trmac <mitr@redhat.com> - 1.0.3r1-2 |
---|
176 | - Include libesmtp-config in libesmtp-devel (#125426, patch by Robert Scheck) |
---|
177 | |
---|
178 | * Tue Jul 13 2004 John Dennis <jdennis@redhat.com> 1.0.3r1-1 |
---|
179 | - bring up to latest upstream release |
---|
180 | |
---|
181 | * Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com> |
---|
182 | - rebuilt |
---|
183 | |
---|
184 | * Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com> |
---|
185 | - rebuilt |
---|
186 | |
---|
187 | * Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com> |
---|
188 | - rebuilt |
---|
189 | |
---|
190 | * Thu Jan 29 2004 Bill Nottingham <notting@redhat.com> 1.0.2-1 |
---|
191 | - upgrade to 1.0.2 (#113894) |
---|
192 | |
---|
193 | * Fri Oct 3 2003 Bill Nottingham <notting@redhat.com> 1.0.1-1 |
---|
194 | - update to 1.0.1, rebuild to fix some broken 64-bit libs |
---|
195 | |
---|
196 | * Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com> |
---|
197 | - rebuilt |
---|
198 | |
---|
199 | * Wed Jan 22 2003 Tim Powers <timp@redhat.com> |
---|
200 | - rebuilt |
---|
201 | |
---|
202 | * Tue Jan 7 2003 Nalin Dahyabhai <nalin@redhat.com> 0.8.12-4 |
---|
203 | - include compilation flags for openssl as defined for pkg-config |
---|
204 | - don't blow up on compile because key schedules aren't arrays |
---|
205 | |
---|
206 | * Tue Nov 5 2002 Bill Nottingham <notting@redhat.com> 0.8.12-3 |
---|
207 | - build on various platforms |
---|
208 | |
---|
209 | * Tue Jul 23 2002 Bill Nottingham <notting@redhat.com> 0.8.12-2 |
---|
210 | - fix broken lib (no pthread dependency) |
---|