Summary: A tool for determining compilation options. Name: pkgconfig Version: 0.15.0 Release: 1 License: GPL Group: Development/Tools URL: http://www.freedesktop.org/software/pkgconfig Source: http://www.freedesktop.org/software/pkgconfig/releases/%{name}-%{version}.tar.bz2 Patch0: pkgconfig-0.15.0-aix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-root Prefix: %{_prefix} %description The pkgconfig tool determines compilation options. For each required library, it reads the configuration file and outputs the necessary compiler and linker flags. %define DEFCC cc %prep %setup -q if test x$PATCH = x ; then PATCH=patch ; fi $PATCH -p2 -s < %{_sourcedir}/pkgconfig-0.15.0-aix.patch %build # Use the default compiler for this platform - gcc otherwise if [[ -z "$CC" ]] then if test "X`type %{DEFCC} 2>/dev/null`" != 'X'; then export CC=%{DEFCC} else export CC=gcc fi fi if test "X$CC" != "Xgcc" then export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's:-fsigned-char::'` export CFLAGS="$RPM_OPT_FLAGS" fi ./configure --prefix=%{_prefix} make %install if test "%{buildroot}" != "/"; then rm -rf %{buildroot} fi mkdir -p %{buildroot} make DESTDIR=%{buildroot} install ( cd $RPM_BUILD_ROOT /usr/bin/strip .%{prefix}/bin/* || : mkdir -p usr/bin cd usr/bin ln -sf ../..%{prefix}/bin/* . ) %files %defattr(-,root,system) %doc AUTHORS COPYING NEWS README %{_mandir}/*/* %{_bindir}/* %{_datadir}/aclocal/* /usr/bin/* %changelog * Tue Jul 29 2003 David Clissold - Add %doc. Strip binary. Add link in /usr/bin. Add URL. * Tue Jul 02 2003 Dan McNichol - Initial build for AIX Toolbox.