Package: popt Version: 1.7 Revision: 5 BuildDependsOnly: True Maintainer: Tony Arnold Source: ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.1.x/%n-%v.tar.gz Source-MD5: 5988e7aeb0ae4dac8d83561265984cc9 Depends: %N-shlibs (= %v-%r) BuildDepends: gettext-dev, gettext-bin, gettext-tools, libiconv-dev SetLDFLAGS: -no-undefined -lintl PatchScript: << #!/bin/sh # Remove meaningless const's perl -pi -e 's;const char \*const poptStrerror\(const int error\);const char \*poptStrerror\(const int error\);g' popt.c popt.h # Change popt => popt1 perl -pi -e 's,popt.pot,popt1.pot,g' Makefile* perl -pi -e 's,PACKAGE=popt,PACKAGE=popt1,g' configure perl -pi -e 's,Project-Id-Version: popt,Project-Id-Version: popt1,g' po/*.po perl -pi -e 's,\"popt\",\"popt1\",g' poptint.h mv %b/po/popt.pot %b/po/popt1.pot # put the fix against TOC-out-of-date in again perl -pi -e 's,\-all\-static,,g' Makefile.in << ConfigureParams: --mandir=%p/share/man --with-libintl-prefix=%p --with-libiconv-prefix=%p InstallScript: make install DESTDIR=%d SplitOff: << Package: %N-shlibs Replaces: %N (<= 1.6.2-1) Files: << lib/libpopt.*.dylib share/locale << Shlibs: << %p/lib/libpopt.0.dylib 1.0.0 %n (>= 1.6.4-1) << DocFiles: README COPYING CHANGES Depends: libiconv, gettext << DocFiles: README COPYING CHANGES Description: Library for parsing command line options DescPackaging: << 2005-02-09: Locale files have been versioned (%p/share/local/*/LC_MESSAGES/popt1.mo) and moved into the popt-shlibs package to allow for installation of future major versions of popt. 2005-02-22: Fixed compile errors (popt.h:444: warning: type qualifiers ignored on function return type), based upon patches from NetBSD << License: BSD