File pkg-config.spec of Package pkg-config

#
# spec file for package pkg-config (Version 0.23)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           pkg-config
Url:            http://pkgconfig.freedesktop.org/
Version:        0.23
Release:        1
License:        GPL v2 or later
Group:          System/Packages
AutoReqProv:    on
# Old name for version <= 0.17 and SuSE Linux <= 10.2 & CODE10
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
* Thu Jan 31 2008 rodrigo@suse.de
- Update to version 0.23:
  * Add support for setting sysroot through PKG_CONFIG_SYSROOT_DIR
  in the environment
  * Update included glib to 1.2.10
  * Other minor fixes, including a segfault
* Thu Feb 08 2007 sbrabec@suse.cz
- Updated to version 0.21:
  * Cosmetic fixes of from pkg.m4.
  * Documentation fixes.
  * Always add the Cflags from dependent packages.
  * Added internal pkg-config package.
- Fixed Obsoletes (#243508).
- Use --with-pc_path instead of environment variables.
* Mon Jan 29 2007 sbrabec@suse.cz
- Removed references to /opt/gnome.
- Simplified PKG_CONFIG_PATH (#235310).
- Added support for /usr/local/lib64.
* Wed Jan 17 2007 sbrabec@suse.cz
- Use macros after its definition (#235134).
* Tue Dec 19 2006 sbrabec@suse.cz
- Disabled indirect deps.
* Fri Sep 01 2006 sbrabec@suse.cz
- Package renamed to pkg-config.
- Spec file cleanup.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Jan 18 2006 sbrabec@suse.cz
- Updated to version 0.20.
* Mon Aug 01 2005 gekker@suse.de
- Add gnome and kde paths to /etc/profile.d/pkgconfig.*sh
* Thu Jul 28 2005 jpr@suse.de
- update to version 0.19
* Thu Jul 21 2005 gekker@suse.de
- Update to version 0.18.1
* Wed Jun 08 2005 sbrabec@suse.cz
- Added /usr/share/pkgconfig to filelist for released products.
* Tue May 24 2005 sbrabec@suse.cz
- Fixed buffer overflow in popthelp.c (#85433).
* Wed May 18 2005 sbrabec@suse.cz
- Enabled indirect dependencies.
* Tue May 17 2005 sbrabec@suse.cz
- Updated to version 0.17.2.
- Platform independent package support in PKG_CONFIG_PATH (#83201).
* Sat Dec 11 2004 schwab@suse.de
- Fix buffer underflow.
* Mon Aug 09 2004 ro@suse.de
- fixed profile.d snippets
* Wed Apr 21 2004 ro@suse.de
- added missing function declaration to pkg.h
* Mon Mar 22 2004 sbrabec@suse.cz
- Added /usr/local to PKG_CONFIG_PATH to simplify self compilation.
* Fri Jan 16 2004 pth@suse.de
- Quote PKG_CHECK_MODULES.
* Sat Jan 10 2004 adrian@suse.de
- add %%defattr
* Wed Jan 29 2003 hhetter@suse.de
- pkgconfig tool updated to version 0.15.0, from changes:
  * add PKG_CONFIG_LIBDIR for cross-compiling
  * add --libs-only-other/--cflags-only-other
  * apply man page fixes
  * C portability fix
  * fix to win32 build
* Thu Oct 24 2002 sbrabec@suse.cz
- Update to version 0.14.0.
* Mon Apr 15 2002 hhetter@suse.de
- updated to version 0.12.0 as of GNOME desktop beta3
* Thu Feb 07 2002 hhetter@suse.de
- updated to version 0.10.0
* Wed Feb 06 2002 coolo@suse.de
- use DESTDIR correctly
* Fri Feb 01 2002 coolo@suse.de
- use the %%suse_ macros to update for config.* and libtool,
  use %%_libdir
* Thu Sep 27 2001 hhetter@suse.de
- updated to version 0.8.0
  * documentation, man-page updates
  * portability fixes
* Wed Jul 04 2001 egger@suse.de
- Initial SuSE build.
openSUSE Build Service is sponsored by