1 | %{?!with_python: %global with_python 1} |
---|
2 | |
---|
3 | %if %{with_python} |
---|
4 | %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} |
---|
5 | %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} |
---|
6 | %endif |
---|
7 | |
---|
8 | Summary: Lowlevel DNS(SEC) library with API |
---|
9 | Summary(ja): 低レベルな DNS(SEC) ライブラリと API |
---|
10 | Name: ldns |
---|
11 | Version: 1.6.6 |
---|
12 | Release: 1%{?_dist_release} |
---|
13 | License: BSD |
---|
14 | Url: http://www.nlnetlabs.nl/%{name}/ |
---|
15 | Source: http://www.nlnetlabs.nl/downloads/%{name}-%{version}.tar.gz |
---|
16 | Group: System Environment/Libraries |
---|
17 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
18 | BuildRequires: libtool, autoconf, automake, gcc-c++, doxygen, |
---|
19 | BuildRequires: perl, libpcap-devel, openssl-devel |
---|
20 | Requires: libpcap, openssl |
---|
21 | |
---|
22 | Distribution: Vine Linux |
---|
23 | Vendor: Project Vine |
---|
24 | Packager: iwaim |
---|
25 | |
---|
26 | %if %{with_python} |
---|
27 | BuildRequires: python-devel, swig |
---|
28 | %endif |
---|
29 | |
---|
30 | %description |
---|
31 | ldns is a library with the aim to simplify DNS programing in C. All |
---|
32 | lowlevel DNS/DNSSEC operations are supported. We also define a higher |
---|
33 | level API which allows a programmer to (for instance) create or sign |
---|
34 | packets. |
---|
35 | |
---|
36 | %package devel |
---|
37 | Summary: Development package that includes the ldns header files |
---|
38 | Group: Development/Libraries |
---|
39 | Requires: %{name} = %{version}-%{release} |
---|
40 | |
---|
41 | %description devel |
---|
42 | The devel package contains the ldns library and the include files |
---|
43 | |
---|
44 | %if %{with_python} |
---|
45 | %package python |
---|
46 | Summary: Python extensions for ldns |
---|
47 | Group: Applications/System |
---|
48 | Requires: %{name} = %{version}-%{release} |
---|
49 | |
---|
50 | %description python |
---|
51 | Python extensions for ldns |
---|
52 | %endif |
---|
53 | |
---|
54 | |
---|
55 | %prep |
---|
56 | %setup -q |
---|
57 | |
---|
58 | %build |
---|
59 | %configure --disable-rpath --disable-static --with-sha2 \ |
---|
60 | %if %{with_python} |
---|
61 | --with-pyldns |
---|
62 | %endif |
---|
63 | |
---|
64 | (cd drill ; %configure --disable-rpath --disable-static --with-ldns=%{buildroot}/lib/ ) |
---|
65 | (cd examples ; %configure --disable-rpath --disable-static --with-ldns=%{buildroot}/lib/ ) |
---|
66 | |
---|
67 | make %{?_smp_mflags} |
---|
68 | ( cd drill ; make %{?_smp_mflags} ) |
---|
69 | ( cd examples ; make %{?_smp_mflags} ) |
---|
70 | make %{?_smp_mflags} doc |
---|
71 | |
---|
72 | %install |
---|
73 | rm -rf %{buildroot} |
---|
74 | |
---|
75 | make DESTDIR=%{buildroot} INSTALL="%{__install} -p" install |
---|
76 | make DESTDIR=%{buildroot} INSTALL="%{__install} -p" install-doc |
---|
77 | |
---|
78 | %if %{with_python} |
---|
79 | # remove execute perms from python files |
---|
80 | chmod a-x %{buildroot}%{python_sitelib}/*py |
---|
81 | %endif |
---|
82 | |
---|
83 | # don't package building script in doc |
---|
84 | rm doc/doxyparse.pl |
---|
85 | #remove doc stubs |
---|
86 | rm -rf doc/.svn |
---|
87 | #remove double set of man pages |
---|
88 | rm -rf doc/man |
---|
89 | |
---|
90 | # remove .la files |
---|
91 | rm -rf %{buildroot}%{_libdir}/*.la %{buildroot}%{python_sitelib}/*.la |
---|
92 | (cd drill ; make DESTDIR=%{buildroot} install) |
---|
93 | (cd examples; make DESTDIR=%{buildroot} install) |
---|
94 | |
---|
95 | %clean |
---|
96 | rm -rf %{buildroot} |
---|
97 | |
---|
98 | %files |
---|
99 | %defattr(-,root,root) |
---|
100 | %{_libdir}/libldns*so.* |
---|
101 | %{_bindir}/drill |
---|
102 | %{_bindir}/ldnsd |
---|
103 | #%{_bindir}/ldns-* |
---|
104 | %{_bindir}/ldns-chaos |
---|
105 | %{_bindir}/ldns-compare-zones |
---|
106 | %{_bindir}/ldns-[d-z]* |
---|
107 | %doc README LICENSE |
---|
108 | %{_mandir}/*/* |
---|
109 | |
---|
110 | %files devel |
---|
111 | %defattr(-,root,root,-) |
---|
112 | %{_libdir}/libldns*so |
---|
113 | %{_bindir}/ldns-config |
---|
114 | %dir %{_includedir}/ldns |
---|
115 | %{_includedir}/ldns/*.h |
---|
116 | %doc doc Changelog README |
---|
117 | |
---|
118 | %if %{with_python} |
---|
119 | %files python |
---|
120 | %defattr(-,root,root) |
---|
121 | %{python_sitelib}/* |
---|
122 | %endif |
---|
123 | |
---|
124 | %post -p /sbin/ldconfig |
---|
125 | |
---|
126 | %postun -p /sbin/ldconfig |
---|
127 | |
---|
128 | %changelog |
---|
129 | * Thu Sep 2 2010 IWAI, Masaharu <iwai@alib.jp> 1.6.6-1 |
---|
130 | - new upstream release |
---|
131 | |
---|
132 | * Fri Jul 23 2010 IWAI, Masaharu <iwai@alib.jp> 1.6.5-1 |
---|
133 | - new upstream release |
---|
134 | - drop unnecessary installfix patch (Patch1): upstream merged |
---|
135 | - drop unnecessary rpathfix patch (Patch2): upstream merged |
---|
136 | |
---|
137 | * Thu Jun 3 2010 IWAI, Masaharu <iwai@alib.jp> 1.6.4-2vl6 |
---|
138 | - rebuild with libpcap 1.1.1 on VineSeed |
---|
139 | |
---|
140 | * Wed May 5 2010 IWAI, Masaharu <iwai@alib.jp> 1.6.4-1 |
---|
141 | - initial build for Vine Linux: based Fedora 1.6.4-2.fc13 |
---|
142 | |
---|
143 | * Fri Jan 22 2010 Paul Wouters <paul@xelerance.com> - 1.6.4-2 |
---|
144 | - Fix missing _ldns.so causing ldns-python to not work |
---|
145 | - Patch for installing ldns-python files |
---|
146 | - Patch for rpath in ldns-python |
---|
147 | - Don't install .a file for ldns-python |
---|
148 | |
---|
149 | * Wed Jan 20 2010 Paul Wouters <paul@xelerance.com> - 1.6.4-1 |
---|
150 | - Upgraded to 1.6.4. |
---|
151 | - Added ldns-python sub package |
---|
152 | |
---|
153 | * Fri Dec 04 2009 Paul Wouters <paul@xelerance.com> - 1.6.3-1 |
---|
154 | - Upgraded to 1.6.3, which has minor bugfixes |
---|
155 | |
---|
156 | * Fri Nov 13 2009 Paul Wouters <paul@xelerance.com> - 1.6.2-1 |
---|
157 | - Upgraded to 1.6.2. This fixes various bugs. |
---|
158 | (upstream released mostly to default with sha2 for the imminent |
---|
159 | signed root, but we already enabled that in our builds) |
---|
160 | |
---|
161 | * Tue Aug 25 2009 Tomas Mraz <tmraz@redhat.com> - 1.6.1-3 |
---|
162 | - rebuilt with new openssl |
---|
163 | |
---|
164 | * Sun Aug 16 2009 Paul Wouters <paul@xelerance.com> - 1.6.1-2 |
---|
165 | - Added openssl dependancy back in, since we get more functionality |
---|
166 | when using openssl. Especially in 'drill'. |
---|
167 | |
---|
168 | * Sun Aug 16 2009 Paul Wouters <paul@xelerance.com> - 1.6.1-1 |
---|
169 | - Updated to 1.6.1 |
---|
170 | |
---|
171 | * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0-5 |
---|
172 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
173 | |
---|
174 | * Mon Jul 13 2009 Paul Wouters <paul@xelerance.com> - 1.6.0-4 |
---|
175 | - Fixed the ssl patch so it can now compile --without-ssl |
---|
176 | |
---|
177 | * Sat Jul 11 2009 Paul Wouters <paul@xelerance.com> - 1.6.0-3 |
---|
178 | - Added patch to compile with --without-ssl |
---|
179 | - Removed openssl dependancies |
---|
180 | - Recompiled with --without-ssl |
---|
181 | |
---|
182 | * Sat Jul 11 2009 Paul Wouters <paul@xelerance.com> - 1.6.0-2 |
---|
183 | - Updated to 1.6.0 |
---|
184 | - (did not yet compile with --without-ssl due to compile failures) |
---|
185 | |
---|
186 | * Fri Jul 10 2009 Paul Wouters <paul@xelerance.com> - 1.6.0-1 |
---|
187 | - Updated to 1.6.0 |
---|
188 | - Compile without openssl |
---|
189 | |
---|
190 | * Thu Apr 16 2009 Paul Wouters <paul@xelerance.com> - 1.5.1-4 |
---|
191 | - Memory management bug when generating a sha256 key, see: |
---|
192 | https://bugzilla.redhat.com/show_bug.cgi?id=493953 |
---|
193 | |
---|
194 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.1-2 |
---|
195 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
196 | |
---|
197 | * Mon Feb 10 2009 Paul Wouters <paul@xelerance.com> - 1.5.1-1 |
---|
198 | - Updated to new version, 1.5.0 had a bug preventing |
---|
199 | zone signing. |
---|
200 | |
---|
201 | * Mon Feb 9 2009 Paul Wouters <paul@xelerance.com> - 1.5.0-1 |
---|
202 | - Updated to new version |
---|
203 | |
---|
204 | * Thu Feb 05 2009 Adam Tkac <atkac redhat com> - 1.4.0-3 |
---|
205 | - fixed configure flags |
---|
206 | |
---|
207 | * Sat Jan 17 2009 Tomas Mraz <tmraz@redhat.com> - 1.4.0-2 |
---|
208 | - rebuild with new openssl |
---|
209 | |
---|
210 | * Fri Nov 7 2008 Paul Wouters <paul@xelerance.com> - 1.4.0-1 |
---|
211 | - Updated to 1.4.0 |
---|
212 | |
---|
213 | * Wed May 28 2008 Paul Wouters <paul@xelerance.com> - 1.3.0-3 |
---|
214 | - enable SHA2 functionality |
---|
215 | |
---|
216 | * Wed May 28 2008 Paul Wouters <paul@xelerance.com> - 1.3.0-2 |
---|
217 | - re-tag (don't do builds while renaming local repo dirs) |
---|
218 | |
---|
219 | * Wed May 28 2008 Paul Wouters <paul@xelerance.com> - 1.3.0-1 |
---|
220 | - Updated to latest release |
---|
221 | |
---|
222 | * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.2.2-3 |
---|
223 | - Autorebuild for GCC 4.3 |
---|
224 | |
---|
225 | * Wed Dec 5 2007 Paul Wouters <paul@xelerance.com> - 1.2.2-2 |
---|
226 | - Rebuild for new libcrypto |
---|
227 | |
---|
228 | * Thu Nov 29 2007 Paul Wouters <paul@xelerance.com> - 1.2.2-1 |
---|
229 | - Upgraded to 1.2.2. Removed no longer needed race workaround |
---|
230 | |
---|
231 | * Tue Nov 13 2007 Paul Wouters <paul@xelerance.com> - 1.2.1-4 |
---|
232 | - Try to fix racing ln -s statements in parallel builds |
---|
233 | |
---|
234 | * Fri Nov 9 2007 Paul Wouters <paul@xelerance.com> - 1.2.1-3 |
---|
235 | - Added patch for ldns-read-zone that does not put @. in RRDATA |
---|
236 | |
---|
237 | * Fri Oct 19 2007 Paul Wouters <paul@xelerance.com> - 1.2.1-2 |
---|
238 | - Use install -p to work around multilib conflicts for .h files |
---|
239 | |
---|
240 | * Wed Oct 10 2007 Paul Wouters <paul@xelerance.com> - 1.2.1-1 |
---|
241 | - Updated to 1.2.1 |
---|
242 | - Removed patches that got moved into upstream |
---|
243 | |
---|
244 | * Wed Aug 8 2007 Paul Wouters <paul@xelerance.com> 1.2.0-11 |
---|
245 | - Patch for ldns-key2ds to write to stdout |
---|
246 | - Again remove extra set of man pages from doc |
---|
247 | - own /usr/include/ldns (bug 233858) |
---|
248 | |
---|
249 | * Wed Aug 8 2007 Paul Wouters <paul@xelerance.com> 1.2.0-10 |
---|
250 | - Added sha256 DS record patch to ldns-key2ds |
---|
251 | - Minor tweaks for proper doc/man page installation. |
---|
252 | - Workaround for parallel builds |
---|
253 | |
---|
254 | * Mon Aug 6 2007 Paul Wouters <paul@xelerance.com> 1.2.0-2 |
---|
255 | - Own the /usr/include/ldns directory (bug #233858) |
---|
256 | - Removed obsoleted patch |
---|
257 | - Remove files form previous libtool run accidentally packages by upstream |
---|
258 | |
---|
259 | * Mon Sep 11 2006 Paul Wouters <paul@xelerance.com> 1.0.1-4 |
---|
260 | - Commented out 1.1.0 make targets, put make 1.0.1 targets. |
---|
261 | |
---|
262 | * Mon Sep 11 2006 Paul Wouters <paul@xelerance.com> 1.0.1-3 |
---|
263 | - Fixed changelog typo in date |
---|
264 | - Rebuild requested for PT_GNU_HASH support from gcc |
---|
265 | - Did not upgrade to 1.1.0 due to compile issues on x86_64 |
---|
266 | |
---|
267 | * Fri Jan 6 2006 Paul Wouters <paul@xelerance.com> 1.0.1-1 |
---|
268 | - Upgraded to 1.0.1. Removed temporary clean hack from spec file. |
---|
269 | |
---|
270 | * Sun Dec 18 2005 Paul Wouters <paul@xelerance.com> 1.0.0-8 |
---|
271 | - Cannot use make clean because there are no Makefiles. Use hardcoded rm. |
---|
272 | |
---|
273 | * Sun Dec 18 2005 Paul Wouters <paul@xelerance.com> 1.0.0-7 |
---|
274 | - Patched 'make clean' target to get rid of object files shipped with 1.0.0 |
---|
275 | |
---|
276 | * Sun Dec 13 2005 Paul Wouters <paul@xelerance.com> 1.0.0-6 |
---|
277 | - added a make clean for 2.3.3 since .o files were left behind upstream, |
---|
278 | causing failure on ppc platform |
---|
279 | |
---|
280 | * Sun Dec 11 2005 Tom "spot" Callaway <tcallawa@redhat.com> 1.0.0-5 |
---|
281 | - minor cleanups |
---|
282 | |
---|
283 | * Wed Oct 5 2005 Paul Wouters <paul@xelerance.com> 0.70_1205 |
---|
284 | - reworked for svn version |
---|
285 | |
---|
286 | * Sun Sep 25 2005 Paul Wouters <paul@xelerance.com> - 0.70 |
---|
287 | - Initial version |
---|