%if "%{stage1}" == "1" # Don't depend on pkg-config to resolve circular build dependency %define GLIB_STAGE1_FLAGS "GLIB_CFLAGS=-I%{_includedir}/glib-2.0 -I%{_libdir}/glib-2.0/include" GLIB_LIBS="-L%{_libdir} -lglib-2.0" %endif Name: pkg-config Version: 0.29.2 Release: 1mamba Summary: Pkg-config helps make building packages easier Group: Development/Tools Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://pkgconfig.freedesktop.org/wiki/ # bugfixes: http://ftp.acc.umu.se/pub/GNOME/sources/%{pkgname} Source: http://pkgconfig.freedesktop.org/releases/pkg-config-%{version}.tar.gz License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel ## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/%{name}-%{version}-root Provides: pkgconfig Obsoletes: pkgconfig Provides: pkgconfig(pkg-config) %description Pkg-config is a program which helps you gather information to make life easier when you are compiling a program for those programs which support it. In fact, it's required to build certain packages. %package -n cross-%{_target_platform}-%{name} Summary: Cross Platform Binutils for %{_target_platform} Group: Development/Tools AutoReqProv: no %description -n cross-%{_target_platform}-%{name} Pkg-config is a program which helps you gather information to make life easier when you are compiling a program for those programs which support it. In fact, it's required to build certain packages. Use this package if you need cross platform builds for %{_target_platform} target. %prep %setup -q %build %configure \ %{GLIB_STAGE1_FLAGS} \ %if "%{_target_platform}" != "%{_host}" --with-pc-path=%{_prefix}/%{_target_platform}/%{_lib}/pkgconfig \ --program-prefix=%{_target_platform}- %endif %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall \ %if "%{_target_platform}" != "%{_host}" LN="/bin/true" %endif %if "%{_target_platform}" != "%{_host}" rm -rf %{buildroot}%{_datadir}/aclocal rm -rf %{buildroot}%{_docdir}/pkg-config %endif %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %if "%{_target_platform}" == "%{_host}" %files %defattr(-,root,root) %{_bindir}/pkg-config %{_bindir}/%{_target_platform}-pkg-config %{_datadir}/aclocal/pkg.m4 %{_docdir}/pkg-config/pkg-config-guide.html %{_mandir}/man1/pkg-config.* %doc AUTHORS COPYING #%doc ChangeLog NEWS README %else %files -n cross-%{_target_platform}-%{name} %defattr(-,root,root) %{_bindir}/%{_target_platform}-pkg-config %{_mandir}/man1/%{_target_platform}-pkg-config.* %doc AUTHORS COPYING %endif %changelog * Tue Aug 08 2017 Automatic Build System 0.29.2-1mamba - automatic version update by autodist * Mon Aug 01 2016 Silvan Calarco 0.29.1-2mamba - rebuilt with x86_64 cross packages * Fri Mar 18 2016 Automatic Build System 0.29.1-1mamba - automatic version update by autodist * Sun Oct 04 2015 Automatic Build System 0.29-1mamba - automatic update by autodist * Sun Jan 27 2013 Automatic Build System 0.28-1mamba - automatic version update by autodist * Mon Sep 17 2012 Automatic Build System 0.27.1-1mamba - automatic version update by autodist * Fri Aug 10 2012 Automatic Build System 0.27-1mamba - automatic version update by autodist * Sun Feb 12 2012 Silvan Calarco 0.26-1mamba - update to 0.26 - rename package from pkgconfig to pkg-config * Tue Jun 29 2010 Silvan Calarco 0.25-2mamba - added pkgconfig(pkg-config) provide * Tue Jun 22 2010 Automatic Build System 0.25-1mamba - automatic update by autodist * Mon Nov 10 2008 gil 0.23-1mamba - update to 0.23 * Fri Oct 19 2007 Silvan Calarco 0.22-3mamba - added parse_conflicts patch to fix a segmentation fault con Conflicts: fields * Fri Oct 19 2007 Silvan Calarco 0.22-2mamba - build against installed glib * Wed Sep 26 2007 Silvan Calarco 0.22-1mamba - update to 0.22 * Wed Jan 03 2007 Davide Madrisan 0.21-1qilnx - update to version 0.21 by autospec * Tue Jun 06 2006 Silvan Calarco 0.20-1qilnx - update to version 0.20 by autospec * Mon Aug 29 2005 Davide Madrisan 0.19-1qilnx - update to version 0.19 by autospec * Fri Oct 01 2004 Silvan Calarco 0.15.0-3qilnx - fixed a SRPM/RPM version mismatch error dicovered by distromatic * Thu Apr 17 2003 Mirko Cortillaro - added vendor, packager and url * Wed Apr 16 2003 Mirko Cortillaro - write a spec file for pkgconfig