Group :: Development/Other
RPM: pkg-config
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define ver_major 0.19
%def_with sys_glib
Name: pkg-config
Version: %ver_major
Release: alt0.M30.1
Summary: Pkgconfig helps make building packages easier
License: GPL
Group: Development/Other
Url: http://www.freedesktop.org/software/pkgconfig
Source: http://%name.freedesktop.org/releases/%name-%version.tar.bz2
Patch0: pkgconfig-0.17.0-alt-use_system_libs.patch
Patch1: %name-0.19-alt-popt.patch
Patch2: %name-0.19-alt-automake1.9.patch
%if_with sys_glib
BuildPreReq: glib2-devel
%endif
Provides: pkgconfig = %version-%release
Obsoletes: pkgconfig
# Automatically added by buildreq on Wed Dec 17 2003
BuildRequires: libpopt-devel
%description
The pkg-config program is used to retrieve information about installed
libraries in the system. It is typically used to compile and link
against one or more libraries.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
# remove old popt stuff
%__rm -f findme* popt*
%__rm -f COPYING
%__ln_s %_licensedir/GPL-2 COPYING
%build
autoreconf -isfv
%if_without sys_glib
pushd glib-1.2.8
./configure
%make_build
popd
%endif
%configure --disable-dependency-tracking \
%if_with sys_glib
--with-sys-glib
%endif
%make_build
%install
%makeinstall
%__install -d -m755 %buildroot%_libdir/pkgconfig
%__install -d -m755 %buildroot%_datadir/pkgconfig
%files
%_bindir/pkg-config
%dir %_libdir/pkgconfig
%dir %_datadir/pkgconfig
%_datadir/aclocal/*
%_man1dir/*
%doc AUTHORS ChangeLog README NEWS
%doc --no-dereference COPYING
%changelog
…
Full changelog you can see here
%def_with sys_glib
Name: pkg-config
Version: %ver_major
Release: alt0.M30.1
Summary: Pkgconfig helps make building packages easier
License: GPL
Group: Development/Other
Url: http://www.freedesktop.org/software/pkgconfig
Source: http://%name.freedesktop.org/releases/%name-%version.tar.bz2
Patch0: pkgconfig-0.17.0-alt-use_system_libs.patch
Patch1: %name-0.19-alt-popt.patch
Patch2: %name-0.19-alt-automake1.9.patch
%if_with sys_glib
BuildPreReq: glib2-devel
%endif
Provides: pkgconfig = %version-%release
Obsoletes: pkgconfig
# Automatically added by buildreq on Wed Dec 17 2003
BuildRequires: libpopt-devel
%description
The pkg-config program is used to retrieve information about installed
libraries in the system. It is typically used to compile and link
against one or more libraries.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
# remove old popt stuff
%__rm -f findme* popt*
%__rm -f COPYING
%__ln_s %_licensedir/GPL-2 COPYING
%build
autoreconf -isfv
%if_without sys_glib
pushd glib-1.2.8
./configure
%make_build
popd
%endif
%configure --disable-dependency-tracking \
%if_with sys_glib
--with-sys-glib
%endif
%make_build
%install
%makeinstall
%__install -d -m755 %buildroot%_libdir/pkgconfig
%__install -d -m755 %buildroot%_datadir/pkgconfig
%files
%_bindir/pkg-config
%dir %_libdir/pkgconfig
%dir %_datadir/pkgconfig
%_datadir/aclocal/*
%_man1dir/*
%doc AUTHORS ChangeLog README NEWS
%doc --no-dereference COPYING
%changelog
…
Full changelog you can see here