- fix: clean relocation path for --prefix=/.
[tools/librpm-tizen.git] / rpm.spec.in
1 %define with_python_subpackage  @WITH_PYTHON_SUBPACKAGE@%{nil}
2 %define with_python_version     @WITH_PYTHON_VERSION@%{nil}
3 %define with_bzip2              @WITH_BZIP2@%{nil}
4 %define with_apidocs            @WITH_APIDOCS@%{nil}
5
6 # XXX legacy requires './' payload prefix to be omitted from rpm packages.
7 %define _noPayloadPrefix        1
8
9 %define __prefix        /usr
10 %{?!_lib: %define _lib lib}
11 %{expand: %%define __share %(if [ -d %{__prefix}/share/man ]; then echo /share ; else echo %%{nil} ; fi)}
12
13 %define __bindir        %{__prefix}/bin
14 %define __includedir    %{__prefix}/include
15 %define __libdir        %{__prefix}/%{_lib}
16 %define __mandir        %{__prefix}%{__share}/man
17
18 Summary: The RPM package management system.
19 Name: rpm
20 %define version @VERSION@
21 Version: %{version}
22 %{expand: %%define rpm_version %{version}}
23 Release: 0.63
24 Group: System Environment/Base
25 Source: ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/rpm-%{rpm_version}.tar.gz
26 Copyright: GPL
27 Conflicts: patch < 2.5
28 %ifos linux
29 Prereq: gawk fileutils textutils mktemp shadow-utils
30 %endif
31 Requires: popt = 1.8
32 Obsoletes: rpm-perl < %{version}
33
34 # XXX necessary only to drag in /usr/lib/libelf.a, otherwise internal elfutils.
35 BuildRequires: elfutils-libelf
36
37 BuildRequires: zlib-devel
38
39 # XXX Red Hat 5.2 has not bzip2 or python
40 %if %{with_bzip2}
41 BuildRequires: bzip2 >= 0.9.0c-2
42 %endif
43 %if %{with_python_subpackage}
44 BuildRequires: python-devel >= %{with_python_version}
45 %endif
46
47 BuildRoot: %{_tmppath}/%{name}-root
48
49 %description
50 The RPM Package Manager (RPM) is a powerful command line driven
51 package management system capable of installing, uninstalling,
52 verifying, querying, and updating software packages. Each software
53 package consists of an archive of files along with information about
54 the package like its version, a description, etc.
55
56 %package devel
57 Summary:  Development files for manipulating RPM packages.
58 Group: Development/Libraries
59 Requires: rpm = %{rpm_version}
60
61 %description devel
62 This package contains the RPM C library and header files. These
63 development files will simplify the process of writing programs that
64 manipulate RPM packages and databases. These files are intended to
65 simplify the process of creating graphical package managers or any
66 other tools that need an intimate knowledge of RPM packages in order
67 to function.
68
69 This package should be installed if you want to develop programs that
70 will manipulate RPM packages and databases.
71
72 %package build
73 Summary: Scripts and executable programs used to build packages.
74 Group: Development/Tools
75 Requires: rpm = %{rpm_version}, patch >= 2.5, file
76 Provides: rpmbuild(VendorConfig) = %{version}
77
78 %description build
79 The rpm-build package contains the scripts and executable programs
80 that are used to build packages using the RPM Package Manager.
81
82 %if %{with_python_subpackage}
83 %package python
84 Summary: Python bindings for apps which will manipulate RPM packages.
85 Group: Development/Libraries
86 Requires: rpm = %{rpm_version}
87 Requires: python >= %{with_python_version}
88 Requires: elfutils >= 0.55
89
90 %description python
91 The rpm-python package contains a module that permits applications
92 written in the Python programming language to use the interface
93 supplied by RPM Package Manager libraries.
94
95 This package should be installed if you want to develop Python
96 programs that will manipulate RPM packages and databases.
97 %endif
98
99 %package -n popt
100 Summary: A C library for parsing command line parameters.
101 Group: Development/Libraries
102 Version: 1.8
103
104 %description -n popt
105 Popt is a C library for parsing command line parameters. Popt was
106 heavily influenced by the getopt() and getopt_long() functions, but it
107 improves on them by allowing more powerful argument expansion. Popt
108 can parse arbitrary argv[] style arrays and automatically set
109 variables based on command line arguments. Popt allows command line
110 arguments to be aliased via configuration files and includes utility
111 functions for parsing arbitrary strings into argv[] arrays using
112 shell-like rules.
113
114 %prep
115 %setup -q
116
117 %build
118
119 # XXX rpm needs functioning nptl for configure tests
120 unset LD_ASSUME_KERNEL
121
122 %if %{with_python_subpackage}
123 WITH_PYTHON="--with-python=%{with_python_version}"
124 %else
125 WITH_PYTHON="--without-python"
126 %endif
127
128 %ifos linux
129 %ifarch x86_64 s390 s390x 
130 CFLAGS="$RPM_OPT_FLAGS -fPIC"; export CFLAGS
131 %else
132 CFLAGS="$RPM_OPT_FLAGS"; export CFLAGS
133 %endif
134 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{__prefix} --sysconfdir=/etc \
135         --localstatedir=/var --infodir='${prefix}%{__share}/info' \
136         --mandir='${prefix}%{__share}/man' \
137         $WITH_PYTHON --enable-posixmutexes --without-javaglue
138 %else
139 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{__prefix} $WITH_PYTHON \
140         --without-javaglue
141 %endif
142
143 make
144
145 %install
146 # XXX rpm needs functioning nptl for configure tests
147 unset LD_ASSUME_KERNEL
148
149 rm -rf $RPM_BUILD_ROOT
150
151 make DESTDIR="$RPM_BUILD_ROOT" install
152
153 %ifos linux
154
155 # Save list of packages through cron
156 mkdir -p ${RPM_BUILD_ROOT}/etc/cron.daily
157 install -m 755 scripts/rpm.daily ${RPM_BUILD_ROOT}/etc/cron.daily/rpm
158
159 mkdir -p ${RPM_BUILD_ROOT}/etc/logrotate.d
160 install -m 644 scripts/rpm.log ${RPM_BUILD_ROOT}/etc/logrotate.d/rpm
161
162 mkdir -p $RPM_BUILD_ROOT/etc/rpm
163
164 mkdir -p $RPM_BUILD_ROOT/var/spool/repackage
165 mkdir -p $RPM_BUILD_ROOT/var/lib/rpm
166 for dbi in \
167         Basenames Conflictname Dirnames Group Installtid Name Packages \
168         Providename Provideversion Requirename Requireversion Triggername \
169         Filemd5s Pubkeys Sha1header Sigmd5 \
170         __db.001 __db.002 __db.003 __db.004 __db.005 __db.006 __db.007 \
171         __db.008 __db.009
172 do
173     touch $RPM_BUILD_ROOT/var/lib/rpm/$dbi
174 done
175
176 %endif
177
178 %if %{with_apidocs}
179 gzip -9n apidocs/man/man*/* || :
180 %endif
181
182 # Get rid of unpackaged files
183 { cd $RPM_BUILD_ROOT
184   rm -rf .%{__includedir}/beecrypt
185   rm -f .%{__libdir}/libbeecrypt.{a,la,so.2.2.0}
186   rm -rf .%{__includedir}/libelf
187   rm -f .%{__libdir}/libelf.{a,la}
188   rm -f .%{__prefix}/lib/rpm/{Specfile.pm,cpanflute,cpanflute2,rpmdiff,rpmdiff.cgi,sql.prov,sql.req,tcl.req}
189   rm -rf .%{__mandir}/{fr,ko}
190 }
191
192 %clean
193 rm -rf $RPM_BUILD_ROOT
194
195 %pre
196 %ifos linux
197 if [ -f /var/lib/rpm/packages.rpm ]; then
198     echo "
199 You have (unsupported)
200         /var/lib/rpm/packages.rpm       db1 format installed package headers
201 Please install rpm-4.0.4 first, and do
202         rpm --rebuilddb
203 to convert your database from db1 to db3 format.
204 "
205 #    exit 1
206 fi
207 /usr/sbin/groupadd -g 37 @RPMGROUP@                             > /dev/null 2>&1
208 /usr/sbin/useradd  -r -d /var/lib/rpm -u 37 -g 37 @RPMUSER@     > /dev/null 2>&1
209 %endif
210 exit 0
211
212 %post
213 %ifos linux
214 /sbin/ldconfig
215 /bin/chown @RPMUSER@.@RPMGROUP@ /var/lib/rpm/[A-Z]*
216 %endif
217 exit 0
218
219 %ifos linux
220 %postun
221 /sbin/ldconfig
222 if [ $1 = 0 ]; then
223     /usr/sbin/userdel rpm
224     /usr/sbin/groupdel rpm
225 fi
226 exit 0
227
228 %post devel -p /sbin/ldconfig
229 %postun devel -p /sbin/ldconfig
230
231 %post -n popt -p /sbin/ldconfig
232 %postun -n popt -p /sbin/ldconfig
233 %endif
234
235 %if %{with_python_subpackage}
236 %post python -p /sbin/ldconfig
237 %postun python -p /sbin/ldconfig
238 %endif
239
240 %define rpmattr         %attr(0755, @RPMUSER@, @RPMGROUP@)
241
242 %files
243 %defattr(-,root,root)
244 %doc RPM-PGP-KEY RPM-GPG-KEY BETA-GPG-KEY CHANGES GROUPS doc/manual/[a-z]*
245 # XXX comment these lines out if building with rpm that knows not %pubkey attr
246 %pubkey RPM-PGP-KEY
247 %pubkey RPM-GPG-KEY
248 %pubkey BETA-GPG-KEY
249 %attr(0755, @RPMUSER@, @RPMGROUP@)      /bin/rpm
250
251 %ifos linux
252 %config(noreplace,missingok)    /etc/cron.daily/rpm
253 %config(noreplace,missingok)    /etc/logrotate.d/rpm
254 %dir                            /etc/rpm
255 #%config(noreplace,missingok)   /etc/rpm/macros.*
256 %attr(0755, @RPMUSER@, @RPMGROUP@)      %dir /var/lib/rpm
257 %attr(0755, @RPMUSER@, @RPMGROUP@)      %dir /var/spool/repackage
258
259 %define rpmdbattr %attr(0644, @RPMUSER@, @RPMGROUP@) %verify(not md5 size mtime) %ghost %config(missingok,noreplace)
260 %rpmdbattr      /var/lib/rpm/*
261 %endif
262
263 %rpmattr        %{__bindir}/rpm2cpio
264 %rpmattr        %{__bindir}/gendiff
265 %rpmattr        %{__bindir}/rpmdb
266 #%rpmattr       %{__bindir}/rpm[eiu]
267 %rpmattr        %{__bindir}/rpmsign
268 %rpmattr        %{__bindir}/rpmquery
269 %rpmattr        %{__bindir}/rpmverify
270
271 %{__libdir}/librpm-@VERSION@.so
272 %{__libdir}/librpmdb-@VERSION@.so
273 %{__libdir}/librpmio-@VERSION@.so
274 %{__libdir}/librpmbuild-@VERSION@.so
275
276 %attr(0755, @RPMUSER@, @RPMGROUP@)      %dir %{__prefix}/lib/rpm
277 %rpmattr        %{__prefix}/lib/rpm/config.guess
278 %rpmattr        %{__prefix}/lib/rpm/config.sub
279 %rpmattr        %{__prefix}/lib/rpm/convertrpmrc.sh
280 %attr(0644, @RPMUSER@, @RPMGROUP@)      %{__prefix}/lib/rpm/macros
281 %rpmattr        %{__prefix}/lib/rpm/mkinstalldirs
282 %rpmattr        %{__prefix}/lib/rpm/rpm.*
283 %rpmattr        %{__prefix}/lib/rpm/rpm2cpio.sh
284 %rpmattr        %{__prefix}/lib/rpm/rpm[deiukqv]
285 %rpmattr        %{__prefix}/lib/rpm/tgpg
286 %attr(0644, @RPMUSER@, @RPMGROUP@)      %{__prefix}/lib/rpm/rpmpopt*
287 %attr(0644, @RPMUSER@, @RPMGROUP@)      %{__prefix}/lib/rpm/rpmrc
288
289 %ifarch i386 i486 i586 i686 athlon
290 %attr(-, @RPMUSER@, @RPMGROUP@)         %{__prefix}/lib/rpm/i[3456]86*
291 %attr(-, @RPMUSER@, @RPMGROUP@)         %{__prefix}/lib/rpm/athlon*
292 %endif
293 %ifarch alpha alphaev5 alphaev56 alphapca56 alphaev6 alphaev67
294 %attr(-, @RPMUSER@, @RPMGROUP@)         %{__prefix}/lib/rpm/alpha*
295 %endif
296 %ifarch sparc sparcv9 sparc64
297 %attr(-, @RPMUSER@, @RPMGROUP@)         %{__prefix}/lib/rpm/sparc*
298 %endif
299 %ifarch ia64
300 %attr(-, @RPMUSER@, @RPMGROUP@)         %{__prefix}/lib/rpm/ia64*
301 %endif
302 %ifarch powerpc ppc ppciseries ppcpseries ppcmac ppc64
303 %attr(-, @RPMUSER@, @RPMGROUP@)         %{__prefix}/lib/rpm/ppc*
304 %endif
305 %ifarch s390 s390x
306 %attr(-, @RPMUSER@, @RPMGROUP@)         %{__prefix}/lib/rpm/s390*
307 %endif
308 %ifarch armv3l armv4l
309 %attr(-, @RPMUSER@, @RPMGROUP@)         %{__prefix}/lib/rpm/armv[34][lb]*
310 %endif
311 %ifarch mips mipsel
312 %attr(-, @RPMUSER@, @RPMGROUP@)         %{__prefix}/lib/rpm/mips*
313 %endif
314 %ifarch x86_64
315 %attr(-, @RPMUSER@, @RPMGROUP@)         %{__prefix}/lib/rpm/x86_64*
316 %endif
317 %attr(-, @RPMUSER@, @RPMGROUP@)         %{__prefix}/lib/rpm/noarch*
318
319 %lang(cs)       %{__prefix}/*/locale/cs/LC_MESSAGES/rpm.mo
320 %lang(da)       %{__prefix}/*/locale/da/LC_MESSAGES/rpm.mo
321 %lang(de)       %{__prefix}/*/locale/de/LC_MESSAGES/rpm.mo
322 %lang(fi)       %{__prefix}/*/locale/fi/LC_MESSAGES/rpm.mo
323 %lang(fr)       %{__prefix}/*/locale/fr/LC_MESSAGES/rpm.mo
324 %lang(gl)       %{__prefix}/*/locale/gl/LC_MESSAGES/rpm.mo
325 %lang(is)       %{__prefix}/*/locale/is/LC_MESSAGES/rpm.mo
326 %lang(ja)       %{__prefix}/*/locale/ja/LC_MESSAGES/rpm.mo
327 %lang(ko)       %{__prefix}/*/locale/ko/LC_MESSAGES/rpm.mo
328 %lang(no)       %{__prefix}/*/locale/no/LC_MESSAGES/rpm.mo
329 %lang(pl)       %{__prefix}/*/locale/pl/LC_MESSAGES/rpm.mo
330 %lang(pt)       %{__prefix}/*/locale/pt/LC_MESSAGES/rpm.mo
331 %lang(pt_BR)    %{__prefix}/*/locale/pt_BR/LC_MESSAGES/rpm.mo
332 %lang(ro)       %{__prefix}/*/locale/ro/LC_MESSAGES/rpm.mo
333 %lang(ru)       %{__prefix}/*/locale/ru/LC_MESSAGES/rpm.mo
334 %lang(sk)       %{__prefix}/*/locale/sk/LC_MESSAGES/rpm.mo
335 %lang(sl)       %{__prefix}/*/locale/sl/LC_MESSAGES/rpm.mo
336 %lang(sr)       %{__prefix}/*/locale/sr/LC_MESSAGES/rpm.mo
337 %lang(sv)       %{__prefix}/*/locale/sv/LC_MESSAGES/rpm.mo
338 %lang(tr)       %{__prefix}/*/locale/tr/LC_MESSAGES/rpm.mo
339
340 %{__mandir}/man1/gendiff.1*
341 %{__mandir}/man8/rpm.8*
342 %{__mandir}/man8/rpm2cpio.8*
343 %lang(ja)       %{__mandir}/ja/man[18]/*.[18]*
344 %lang(pl)       %{__mandir}/pl/man[18]/*.[18]*
345 %lang(ru)       %{__mandir}/ru/man[18]/*.[18]*
346 %lang(sk)       %{__mandir}/sk/man[18]/*.[18]*
347
348 %files build
349 %defattr(-,root,root)
350 %dir %{__prefix}/src/@RPMCANONVENDOR@
351 %dir %{__prefix}/src/@RPMCANONVENDOR@/BUILD
352 %dir %{__prefix}/src/@RPMCANONVENDOR@/SPECS
353 %dir %{__prefix}/src/@RPMCANONVENDOR@/SOURCES
354 %dir %{__prefix}/src/@RPMCANONVENDOR@/SRPMS
355 %dir %{__prefix}/src/@RPMCANONVENDOR@/RPMS
356 %{__prefix}/src/@RPMCANONVENDOR@/RPMS/*
357 %rpmattr        %{__bindir}/rpmbuild
358 %rpmattr        %{__prefix}/lib/rpm/brp-*
359 %rpmattr        %{__prefix}/lib/rpm/check-files
360 %rpmattr        %{__prefix}/lib/rpm/check-prereqs
361 %rpmattr        %{__prefix}/lib/rpm/config.site
362 %rpmattr        %{__prefix}/lib/rpm/cross-build
363 %rpmattr        %{__prefix}/lib/rpm/debugedit
364 %rpmattr        %{__prefix}/lib/rpm/find-debuginfo.sh
365 %rpmattr        %{__prefix}/lib/rpm/find-lang.sh
366 %rpmattr        %{__prefix}/lib/rpm/find-prov.pl
367 %rpmattr        %{__prefix}/lib/rpm/find-provides
368 %rpmattr        %{__prefix}/lib/rpm/find-provides.perl
369 %rpmattr        %{__prefix}/lib/rpm/find-req.pl
370 %rpmattr        %{__prefix}/lib/rpm/find-requires
371 %rpmattr        %{__prefix}/lib/rpm/find-requires.perl
372 %rpmattr        %{__prefix}/lib/rpm/get_magic.pl
373 %rpmattr        %{__prefix}/lib/rpm/getpo.sh
374 %rpmattr        %{__prefix}/lib/rpm/http.req
375 %rpmattr        %{__prefix}/lib/rpm/javadeps
376 %rpmattr        %{__prefix}/lib/rpm/magic
377 %rpmattr        %{__prefix}/lib/rpm/magic.mgc
378 %rpmattr        %{__prefix}/lib/rpm/magic.mime
379 %rpmattr        %{__prefix}/lib/rpm/magic.mime.mgc
380 %rpmattr        %{__prefix}/lib/rpm/magic.prov
381 %rpmattr        %{__prefix}/lib/rpm/magic.req
382 %rpmattr        %{__prefix}/lib/rpm/perldeps.pl
383 %rpmattr        %{__prefix}/lib/rpm/perl.prov
384 %rpmattr        %{__prefix}/lib/rpm/perl.req
385
386 %rpmattr        %{__prefix}/lib/rpm/rpm[bt]
387 %rpmattr        %{__prefix}/lib/rpm/rpmdeps
388 %rpmattr        %{__prefix}/lib/rpm/trpm
389 %rpmattr        %{__prefix}/lib/rpm/u_pkg.sh
390 %rpmattr        %{__prefix}/lib/rpm/vpkg-provides.sh
391 %rpmattr        %{__prefix}/lib/rpm/vpkg-provides2.sh
392
393 %{__mandir}/man8/rpmbuild.8*
394 %{__mandir}/man8/rpmdeps.8*
395
396 %if %{with_python_subpackage}
397 %files python
398 %defattr(-,root,root)
399 %{__libdir}/python%{with_python_version}/site-packages/rpmmodule.so
400 %{__libdir}/python%{with_python_version}/site-packages/rpmdb
401 %endif
402
403 %files devel
404 %defattr(-,root,root)
405 %if %{with_apidocs}
406 %doc @WITH_APIDOCS_TARGET@
407 %endif
408 %{__includedir}/rpm
409 %{__libdir}/librpm.a
410 %{__libdir}/librpm.la
411 %{__libdir}/librpm.so
412 %{__libdir}/librpmdb.a
413 %{__libdir}/librpmdb.la
414 %{__libdir}/librpmdb.so
415 %{__libdir}/librpmio.a
416 %{__libdir}/librpmio.la
417 %{__libdir}/librpmio.so
418 %{__libdir}/librpmbuild.a
419 %{__libdir}/librpmbuild.la
420 %{__libdir}/librpmbuild.so
421 %{__mandir}/man8/rpmcache.8*
422 %{__mandir}/man8/rpmgraph.8*
423 %rpmattr        %{__prefix}/lib/rpm/rpmcache
424 %rpmattr        %{__prefix}/lib/rpm/rpmdb_deadlock
425 %rpmattr        %{__prefix}/lib/rpm/rpmdb_dump
426 %rpmattr        %{__prefix}/lib/rpm/rpmdb_load
427 %rpmattr        %{__prefix}/lib/rpm/rpmdb_svc
428 %rpmattr        %{__prefix}/lib/rpm/rpmdb_stat
429 %rpmattr        %{__prefix}/lib/rpm/rpmdb_verify
430 %rpmattr        %{__bindir}/rpmgraph
431
432 %files -n popt
433 %defattr(-,root,root)
434 %{__libdir}/libpopt.so.*
435 %{__mandir}/man3/popt.3*
436 %lang(cs)       %{__prefix}/*/locale/cs/LC_MESSAGES/popt.mo
437 %lang(da)       %{__prefix}/*/locale/da/LC_MESSAGES/popt.mo
438 %lang(de)       %{__prefix}/*/locale/de/LC_MESSAGES/popt.mo
439 %lang(es)       %{__prefix}/*/locale/es/LC_MESSAGES/popt.mo
440 %lang(eu_ES)    %{__prefix}/*/locale/eu_ES/LC_MESSAGES/popt.mo
441 %lang(fi)       %{__prefix}/*/locale/fi/LC_MESSAGES/popt.mo
442 %lang(fr)       %{__prefix}/*/locale/fr/LC_MESSAGES/popt.mo
443 %lang(gl)       %{__prefix}/*/locale/gl/LC_MESSAGES/popt.mo
444 %lang(hu)       %{__prefix}/*/locale/hu/LC_MESSAGES/popt.mo
445 %lang(id)       %{__prefix}/*/locale/id/LC_MESSAGES/popt.mo
446 %lang(is)       %{__prefix}/*/locale/is/LC_MESSAGES/popt.mo
447 %lang(it)       %{__prefix}/*/locale/it/LC_MESSAGES/popt.mo
448 %lang(ja)       %{__prefix}/*/locale/ja/LC_MESSAGES/popt.mo
449 %lang(ko)       %{__prefix}/*/locale/ko/LC_MESSAGES/popt.mo
450 %lang(no)       %{__prefix}/*/locale/no/LC_MESSAGES/popt.mo
451 %lang(pl)       %{__prefix}/*/locale/pl/LC_MESSAGES/popt.mo
452 %lang(pt)       %{__prefix}/*/locale/pt/LC_MESSAGES/popt.mo
453 %lang(pt_BR)    %{__prefix}/*/locale/pt_BR/LC_MESSAGES/popt.mo
454 %lang(ro)       %{__prefix}/*/locale/ro/LC_MESSAGES/popt.mo
455 %lang(ru)       %{__prefix}/*/locale/ru/LC_MESSAGES/popt.mo
456 %lang(sk)       %{__prefix}/*/locale/sk/LC_MESSAGES/popt.mo
457 %lang(sl)       %{__prefix}/*/locale/sl/LC_MESSAGES/popt.mo
458 %lang(sr)       %{__prefix}/*/locale/sr/LC_MESSAGES/popt.mo
459 %lang(sv)       %{__prefix}/*/locale/sv/LC_MESSAGES/popt.mo
460 %lang(tr)       %{__prefix}/*/locale/tr/LC_MESSAGES/popt.mo
461 %lang(uk)       %{__prefix}/*/locale/uk/LC_MESSAGES/popt.mo
462 %lang(wa)       %{__prefix}/*/locale/wa/LC_MESSAGES/popt.mo
463 %lang(zh)       %{__prefix}/*/locale/zh/LC_MESSAGES/popt.mo
464 %lang(zh_CN)    %{__prefix}/*/locale/zh_CN.GB2312/LC_MESSAGES/popt.mo
465
466 # XXX These may end up in popt-devel but it hardly seems worth the effort.
467 %{__libdir}/libpopt.a
468 %{__libdir}/libpopt.la
469 %{__libdir}/libpopt.so
470 %{__includedir}/popt.h
471
472 %changelog
473 * Tue Jan 28 2003 Jeff Johnson <jbj@redhat.com> 4.2-0.63
474 - fix: clean relocation path for --prefix=/.
475 - python: permit stdout/stderr to be remapped to install.log.
476
477 * Mon Jan 27 2003 Jeff Johnson <jbj@redhat.com> 4.2-0.62
478 - fix: more debugedit.c problems.
479
480 * Sat Jan 25 2003 Jeff Johnson <jbj@redhat.com> 4.2-0.61
481 - permit anaconda to choose "presentation order".
482
483 * Wed Jan 22 2003 Jeff Johnson <jbj@redhat.com> 4.2-0.60
484 - fix: debugedit.c problem.
485
486 * Fri Jan 17 2003 Jeff Johnson <jbj@redhat.com> 4.2-0.58
487 - duplicate package checks with arch/os checks if colored.
488 - file conflict checks with colors.
489
490 * Mon Jan 13 2003 Jeff Johnson <jbj@redhat.com> 4.2-0.57
491 - teach rpmquery to return "owning" package(s) in spite of alternatives.
492
493 * Sun Jan 12 2003 Jeff Johnson <jbj@redhat.com> 4.2-0.56
494 - file: *really* read elf64 notes correctly.
495 - python: restore thread context on errorCB (#80744).
496
497 * Fri Jan 10 2003 Jeff Johnson <jbj@redhat.com> 4.2-0.55
498 - fix: obscure corner case(s) with rpmvercmp (#50977).
499
500 * Wed Jan  8 2003 Jeff Johnson <jbj@redhat.com> 4.2-0.54
501 - python: put rpmmodule.so where python expects to find.
502 - add brp-strip-static-archive build root policy helper.
503 - add -lelf to rpm LDFLAGS, not LDADD, since there is no libelf.la now.
504
505 * Tue Jan  7 2003 Jeff Johnson <jbj@redhat.com> 4.2-0.53
506 - file: read elf64 notes correctly.
507
508 * Mon Jan  6 2003 Jeff Johnson <jbj@redhat.com> 4.2-0.52
509 - portabilitly: solaris fixes.
510 - for DSO's, provide the file basename if DT_SONAME not found.
511 - add perldeps.pl, start to replace perl.{prov,req}.
512
513 * Sun Jan  5 2003 Jeff Johnson <jbj@redhat.com> 4.2-0.51
514 - file: avoid ogg/vorbis file classification problems.
515
516 * Wed Jan  1 2003 Jeff Johnson <jbj@redhat.com> 4.2-0.49
517 - add rpmts/rpmte/rpmfi/rpmds element colors.
518 - ignore items not in our rainbow (i.e. colors are functional).
519 - fix: dependency helpers now rate limited at 10ms, not 1s.
520 - add per-arch canonical color, only x86_64 enabled for now.
521
522 * Sun Dec 29 2002 Jeff Johnson <jbj@redhat.com> 4.2-0.46
523 - don't segfault with packages produced by rpm-2.93 (#80618).
524 - python: eliminate hash.[ch] and upgrade.[ch], methods too.
525 - fix :armor query extension, tgpg mktmp handling (#80684).
526 - use rpmfiFClass() underneath --fileclass.
527 - use rpmfiFDepends() underneath --fileprovide and --filerequire.
528 - python: add fi.FColor() and fi.FClass() methods.
529 - calculate dependency color and refernces.
530 - python: add ds.Color() and ds.Refs() methods.
531 - fix: typo in assertion.
532
533 * Sat Dec 28 2002 Jeff Johnson <jbj@redhat.com> 4.2-0.45
534 - error if querying with iterator on different sized arrays.
535 - add rpmfi methods to access color, class, and dependencies.
536
537 * Fri Dec 27 2002 Jeff Johnson <jbj@redhat.com> 4.2-0.42
538 - add BETA-GPG-KEY (but not in headers using %%pubkey yet).
539 - disable perl module magic rule.
540 - ignore ENOENT return from db->close (#80514,#79314).
541 - fix builddir relative inclusion, add %%pubkeys to rpm header.
542 - fix: package relocations were broken (#75057).
543
544 * Thu Dec 26 2002 Jeff Johnson <jbj@redhat.com> 4.2-0.39
545 - add Red Hat pubkeys to rpm header.
546 - resurrect automagic perl(foo) dependency generation.
547
548 * Tue Dec 24 2002 Jeff Johnson <jbj@redhat.com> 4.2-0.38
549 - add %%pubkey attribute to read armored pubkey files into header.
550 - permit both relative/absolute paths, display 'P' when verifying.
551
552 * Mon Dec 23 2002 Jeff Johnson <jbj@redhat.com> 4.2-0.36
553 - add matching "config(N) = EVR"  dependencies iff %%config is found.
554
555 * Sun Dec 22 2002 Jeff Johnson <jbj@redhat.com> 4.2-0.35
556 - fix: remove rpmfi scareMem so that headers can be reloaded on ia64.
557 - fix: set DB_PRIVATE, not DB_ENV_PRIVATE, if unshared posix mutexes.
558 - remove useless (and now unnecessary) kernel/glibc dependencies (#79872).
559
560 * Sat Dec 21 2002 Jeff Johnson <jbj@redhat.com> 4.2-0.34
561 - add --enable-posixmutexes when configuring on linux.
562 - add rpmdb_{deadlock,dump,load,svc,stat,verify} utilities.
563 - include srpm pkgid in binary headers (#71460).
564 - add %%check scriptlet to run after %%install (#64137).
565 - simplify specfile query linkage loop.
566 - drill rpmts into parseSpec(), carrying Spec along.
567
568 * Fri Dec 20 2002 Jeff Johnson <jbj@redhat.com> 4.2-0.33
569 - dynamically link /bin/rpm, link against good old -lpthread.
570 - test pthread_{mutex,cond}attr_setpshared(), add DB_ENV_PRIVATE if not.
571 - error on exclusive Packages fcntl lock if DB_ENV_PRIVATE is set.
572 - copy compressFilelist to convertdb1.c, remove internal legacy.h.
573
574 * Thu Dec 19 2002 Jeff Johnson <jbj@redhat.com> 4.2-0.31
575 - statically link against /usr/lib/nptl/libpthread.a, if present.
576 - remove popt aliases for -U et al.
577 - add -I/usr/include/nptl, Conflicts: kernel < 2.4.20.
578
579 * Wed Dec 18 2002 Jeff Johnson <jbj@redhat.com> 4.2-0.29nptl
580 - popt aliases for -U et al to achieve dynamic link with nptl.
581 - add --file{class,provide,require} popt aliases and header extensions.
582
583 * Tue Dec 17 2002 Jeff Johnson <jbj@redhat.com> 4.2-0.28nptl
584 - re-enable CDB locking, removing "private" from %%__dbi_cdb macro.
585
586 * Mon Dec 16 2002 Jeff Johnson <jbj@redhat.com> 4.2-0.27+nptl
587 - rebuild against glibc with fcntl fixed in libpthread.
588
589 * Sun Dec 15 2002 Jeff Johnson <jbj@redhat.com> 4.2-0.26+nptl
590 - disable fcntl(2) lock on Packages until glibc+nptl is fixed.
591 - make cdb locks "private" for pthreads compatibility w/o NPTL.
592 - add --enable-posixmutexes to use NPTL.
593 - make dependency generation "opt-out" everywhere.
594
595 * Sat Dec 14 2002 Jeff Johnson <jbj@redhat.com> 4.2-0.25
596 - rebuild rpm with internal dependency generation enabled.
597 - fix: make sure each library has DT_NEEDED for all unresolved syms.
598 - generate Elf provides even if file is not executable.
599
600 * Fri Dec 13 2002 Jeff Johnson <jbj@redhat.com> 4.2-0.24
601 - debug_packages "works", but non-noarch w/o %setup has empty payload.
602 - make dependency generation "opt-in" in order to build in distro.
603
604 * Thu Dec 12 2002 Jeff Johnson <jbj@redhat.com> 4.2-0.23
605 - fix: add rpmlib(VersionedDependencies) if versioned Provides: found.
606 - fix: add %%ifnarch noarch to debug_package macro.
607
608 * Wed Dec 11 2002 Jeff Johnson <jbj@redhat.com> 4.2-0.22
609 - rebuild against glibc with TLS support.
610
611 * Tue Dec 10 2002 Jeff Johnson <jbj@redhat.com> 4.2-0.21
612 - don't generate dependencies unless execute bit is set.
613 - enable internal automagic dependency generation as default.
614
615 * Sat Dec  7 2002 Jeff Johnson <jbj@redhat.com> 4.2-0.19
616 - resurrect  AutoReq: and AutoProv:.
617
618 * Tue Dec  2 2002 Jeff Johnson <jbj@redhat.com> 4.2-0.18
619 - internal automagic dependency generation (disabled for now).
620
621 * Mon Dec  1 2002 Jeff Johnson <jbj@redhat.com> 4.2-0.17
622 - late rpmts reference causes premature free (#78862).
623
624 * Sun Dec  1 2002 Jeff Johnson <jbj@redhat.com> 4.2-0.16
625 - link rpm libraries together, use shared helpers with external -lelf.
626 - move libfmagic to librpmio.
627 - use libtool-1.4.3, autoconf-2.56.
628 - add explicit -L/lib64 -L/usr/lib64 for libtool mode=relink on x86_64.
629 - use usrlib_LTLIBRARIES to install directly in /usr/lib64 instead.
630
631 * Sat Nov 30 2002 Jeff Johnson <jbj@redhat.com> 4.2-0.14
632 - upgrade to elfutils-0.63.
633
634 * Fri Nov 29 2002 Jeff Johnson <jbj@redhat.com> 4.2-0.13
635 - bundle libfmagic into librpmbuild for now.
636 - apply patches 7 and 8 to db-4.1.24.
637 - upgrade to elfutils-0.59.
638 - add -g to all platforms optflags.
639 - build with external elfutils (preferred), if available.
640
641 * Wed Nov 20 2002 Jeff Johnson <jbj@redhat.com> 4.2-0.12
642 - use rpmdeps rather than find-{requires,provides}.
643
644 * Tue Nov 19 2002 Jeff Johnson <jbj@redhat.com> 4.2-0.11
645 - fix: option conflict error message (#77373).
646 - add AC_SYS_LARGFILE throughout.
647 - statically link rpmdeps against (internal) libfmagic.
648
649 * Fri Nov 15 2002 Jeff Johnson <jbj@redhat.com> 4.2-0.10
650 - update to elfutils-0.56.
651 - have debug sub-subpackage use external, not internal, elfutils.
652 - apply patches 1-6 to db-4.1.24.
653 - resurrect availablePackages one more time.
654
655 * Wed Nov 13 2002 Jeff Johnson <jbj@redhat.com> 4.2-0.8
656 - fix: bash must have functional libtermcap.so.2.
657
658 * Sat Nov  9 2002 Jeff Johnson <jbj@redhat.com> 4.2-0.7
659 - add _javadir/_javadocdir/_javaclasspath macros.
660
661 * Fri Nov  8 2002 Jeff Johnson <jbj@redhat.com> 4.2-0.6
662 - fix: /dev/initctl has not MD5 segfault (#76718).
663 - rpm.8: gpg uses GNUPGHOME, not GPGPATH (#76691).
664 - use %%{_lib} for libraries.
665 - fix: permit build with --disable-nls (#76258).
666 - add error message on glob failure (#76012).
667 - remove dependency on libelf.
668
669 * Thu Oct 24 2002 Jeff Johnson <jbj@redhat.com> 4.2-0.5
670 - add /usr/lib/rpm/rpmdeps.
671 - add /usr/lib/rpm/magic.
672
673 * Wed Oct 23 2002 Jeff Johnson <jbj@redhat.com> 4.2-0.4
674 - resurrect genhdlist "greased lightning" pathway for now.
675 - elfutils: avoid gcc-3.2 ICE on x86_64 for now.
676
677 * Fri Oct 18 2002 Jeff Johnson <jbj@redhat.com> 4.2-0.2
678 - add debug sub-package patch.
679 - re-add elfutils/libdwarf (for dwarf.h), eliminate tools/dwarf2.h.
680
681 * Thu Oct 17 2002 Jeff Johnson <jbj@redhat.com> 4.2-0.1
682 - set cachesize without a dbenv, the default is far too small.
683 - db: don't return EACCES on db->close w/o environment.
684 - unify cachesize configuration, with (or without) a dbenv.
685 - comments regarding unsupported (yet) db-4.1.17 functionality.
686 - requirement on libelf >= 0.8.2 to work around incompatible soname (#72792).
687 - fix: common sanity check on headers, prevent segfault (#72590).
688 - limit number of NOKEY/UNTRUSTED keys that will be warned once.
689 - libadd -lelf to rpmdb (#73024).
690 - update to db-4.1.24 final.
691 - eliminate myftw, use Fts(3) instead.
692 - dump libelf, gulp elfutils, for now.
693 - python: permit headers to be hashed.
694 - use %%{_lib} for libraries.