File pkg-config.spec of Package pkg-config
#
# spec file for package pkg-config (Version 0.23)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: pkg-config
Url: http://pkgconfig.freedesktop.org/
Version: 0.23
Release: 47
License: GPL v2 or later
Group: System/Packages
AutoReqProv: on
# Old name for version <= 0.17 and SuSE Linux <= 10.2 & CODE10
# Mandriva 2009 and Fedora 11 still use old name "pkgconfig"
Provides: pkgconfig = %{version}-%{release}
Obsoletes: pkgconfig < 0.21
Summary: A library management system
Source: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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.
Authors:
--------
James Henstridge <james@daa.com.au>
Tim Janik <timj@gtk.org>
Havoc Pennington <hp@redhat.com>
%prep
%setup -q
%build
%{?suse_update_config:%{suse_update_config -f}}
%{suse_update_config -f glib-*}
autoconf
# GNU_SOURCE needed for strsignal() in gstrfuncs.c
export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE"
%configure\
%if "%{_lib}" == "lib"
--with-pc_path=/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:%{_libdir}/pkgconfig:%{_datadir}/pkgconfig:/opt/kde3/%{_lib}/pkgconfig
%else
--with-pc_path=/usr/local/%{_lib}/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:%{_libdir}/pkgconfig:%{_datadir}/pkgconfig:/opt/kde3/%{_lib}/pkgconfig
%endif
make %{?jobs:-j%jobs}
%install
make DESTDIR=$RPM_BUILD_ROOT install
%if %suse_version <= 930
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pkgconfig
%endif
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README ChangeLog
%{_bindir}/*
%{_datadir}/aclocal/*.m4
%if %suse_version <= 930
%dir %{_datadir}/pkgconfig
%endif
%doc %{_mandir}/man1/*.*
%changelog