Package: popt Version: 1.10.4 Revision: 1 BuildDependsOnly: True Maintainer: None #Source: ftp://jbj.org/pub/rpm-4.4.x/%n-%v.tar.gz Source: mirror:master:%n-%v.tar.gz Source-MD5: 63b943522a6788ae8f756ca123d83c00 Depends: %N-shlibs (= %v-%r) BuildDepends: libgettext3-dev, gettext-bin (>= 0.14.5-1), gettext-tools (>= 0.14.5-1), libiconv-dev, automake1.9, autoconf (>= 2.60-1), libtool14 SetLDFLAGS: -no-undefined -lintl PatchScript: << #!/bin/sh -e autoreconf -i -f # 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 Depends: libgettext3-shlibs, libiconv 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 << 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