|
|
@ -12,36 +12,20 @@
|
|
|
|
%global pkgconfig_evr 1:%{pkgconfig_verrel}
|
|
|
|
%global pkgconfig_evr 1:%{pkgconfig_verrel}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
# Tests are disabled on RHEL 9 because of the extensive dependencies
|
|
|
|
|
|
|
|
%if 0%{?rhel} >= 9
|
|
|
|
|
|
|
|
%bcond_with tests
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%bcond_without tests
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Search path for pc files for pkgconf
|
|
|
|
# Search path for pc files for pkgconf
|
|
|
|
%global pkgconf_libdirs %{_libdir}/pkgconfig:%{_datadir}/pkgconfig
|
|
|
|
%global pkgconf_libdirs %{_libdir}/pkgconfig:%{_datadir}/pkgconfig
|
|
|
|
|
|
|
|
|
|
|
|
Name: pkgconf
|
|
|
|
Name: pkgconf
|
|
|
|
Version: 1.7.3
|
|
|
|
Version: 1.4.2
|
|
|
|
Release: 10%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Package compiler and linker metadata toolkit
|
|
|
|
Summary: Package compiler and linker metadata toolkit
|
|
|
|
|
|
|
|
|
|
|
|
License: ISC
|
|
|
|
License: ISC
|
|
|
|
URL: http://pkgconf.org/
|
|
|
|
URL: http://pkgconf.org/
|
|
|
|
# Mirror at https://releases.pagure.org/pkgconf/pkgconf/
|
|
|
|
|
|
|
|
Source0: https://distfiles.dereferenced.org/%{name}/%{name}-%{version}.tar.xz
|
|
|
|
Source0: https://distfiles.dereferenced.org/%{name}/%{name}-%{version}.tar.xz
|
|
|
|
|
|
|
|
|
|
|
|
# Simple wrapper scripts to offer platform versions of pkgconfig
|
|
|
|
# Simple wrapper script to offer platform versions of pkgconfig
|
|
|
|
Source1: platform-pkg-config.in
|
|
|
|
Source1: platform-pkg-config.in
|
|
|
|
Source2: pkg-config.in
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Don't prepend sysroot_dir if pkg-config file lies outside of sysroot_dir
|
|
|
|
|
|
|
|
# See https://github.com/pkgconf/pkgconf/issues/213
|
|
|
|
|
|
|
|
# See https://bugzilla.redhat.com/show_bug.cgi?id=1974883
|
|
|
|
|
|
|
|
# See https://bugzilla.redhat.com/1975416
|
|
|
|
|
|
|
|
# Cherry picked from https://github.com/pkgconf/pkgconf/commit/ed86f2dda3bc99e34775f0fae54e314718037516
|
|
|
|
|
|
|
|
Patch1: 0001-Don-t-prepend-sysroot_dir-if-pkg-config-file-lies-ou.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: make
|
|
|
@ -51,11 +35,9 @@ BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: libtool
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
|
|
|
# For unit tests
|
|
|
|
# For unit tests
|
|
|
|
BuildRequires: kyua
|
|
|
|
BuildRequires: %{_bindir}/kyua
|
|
|
|
BuildRequires: atf-tests
|
|
|
|
BuildRequires: atf-tests
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# pkgconf uses libpkgconf internally
|
|
|
|
# pkgconf uses libpkgconf internally
|
|
|
|
Requires: lib%{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: lib%{name}%{?_isa} = %{version}-%{release}
|
|
|
@ -133,9 +115,7 @@ autoreconf -fiv
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
%if %{with tests}
|
|
|
|
|
|
|
|
make check
|
|
|
|
make check
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
@ -143,35 +123,19 @@ make check
|
|
|
|
|
|
|
|
|
|
|
|
find %{buildroot} -name '*.la' -print -delete
|
|
|
|
find %{buildroot} -name '*.la' -print -delete
|
|
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/pkgconfig/personality.d
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/pkgconfig/personality.d
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# pkgconf rpm macros
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_rpmmacrodir}/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cat > %{buildroot}%{_rpmmacrodir}/macros.pkgconf <<EOM
|
|
|
|
|
|
|
|
%%pkgconfig_personalitydir %{_datadir}/pkgconfig/personality.d
|
|
|
|
|
|
|
|
EOM
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with pkgconfig_compat}
|
|
|
|
%if %{with pkgconfig_compat}
|
|
|
|
install -pm 0755 %{SOURCE1} %{buildroot}%{_bindir}/%{_target_platform}-pkg-config
|
|
|
|
install -pm 0755 %{SOURCE1} %{buildroot}%{_bindir}/%{_target_platform}-pkg-config
|
|
|
|
|
|
|
|
|
|
|
|
sed -e "s|@TARGET_PLATFORM@|%{_target_platform}|" \
|
|
|
|
sed -e "s|@TARGET_PLATFORM@|%{_target_platform}|" \
|
|
|
|
-e "s|@PKGCONF_LIBDIRS_LOCAL@|/usr/local/%{_lib}/pkgconfig:/usr/local/share/pkgconfig:%{pkgconf_libdirs}|" \
|
|
|
|
|
|
|
|
-e "s|@PKGCONF_SYSLIBDIR_LOCAL@|/usr/local/%{_lib}:%{_libdir}|" \
|
|
|
|
|
|
|
|
-e "s|@PKGCONF_SYSINCDIR_LOCAL@|/usr/local/include:%{_includedir}|" \
|
|
|
|
|
|
|
|
-e "s|@PKGCONF_LIBDIRS@|%{pkgconf_libdirs}|" \
|
|
|
|
-e "s|@PKGCONF_LIBDIRS@|%{pkgconf_libdirs}|" \
|
|
|
|
-e "s|@PKGCONF_SYSLIBDIR@|%{_libdir}|" \
|
|
|
|
-e "s|@PKGCONF_SYSLIBDIR@|%{_libdir}|" \
|
|
|
|
-e "s|@PKGCONF_SYSINCDIR@|%{_includedir}|" \
|
|
|
|
-e "s|@PKGCONF_SYSINCDIR@|%{_includedir}|" \
|
|
|
|
-i %{buildroot}%{_bindir}/%{_target_platform}-pkg-config
|
|
|
|
-i %{buildroot}%{_bindir}/%{_target_platform}-pkg-config
|
|
|
|
|
|
|
|
|
|
|
|
install -pm 0755 %{SOURCE2} %{buildroot}%{_bindir}/pkg-config
|
|
|
|
ln -sf pkgconf %{buildroot}%{_bindir}/pkg-config
|
|
|
|
|
|
|
|
|
|
|
|
sed -e "s|@PKGCONF_BINDIR@|%{_bindir}|" \
|
|
|
|
# I don't have a better way to deal with this...
|
|
|
|
-i %{buildroot}%{_bindir}/pkg-config
|
|
|
|
cp -a %{buildroot}%{_mandir}/man1/pkgconf.1 %{buildroot}%{_mandir}/man1/pkg-config.1
|
|
|
|
|
|
|
|
|
|
|
|
# Link pkg-config(1) to pkgconf(1)
|
|
|
|
|
|
|
|
echo ".so man1/pkgconf.1" > %{buildroot}%{_mandir}/man1/pkg-config.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_libdir}/pkgconfig
|
|
|
|
mkdir -p %{buildroot}%{_libdir}/pkgconfig
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/pkgconfig
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/pkgconfig
|
|
|
@ -191,11 +155,6 @@ rm -rf %{buildroot}%{_datadir}/aclocal
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_mandir}/man1/%{name}.1*
|
|
|
|
%{_mandir}/man1/%{name}.1*
|
|
|
|
%{_mandir}/man5/pc.5*
|
|
|
|
%{_mandir}/man5/pc.5*
|
|
|
|
%{_mandir}/man5/%{name}-personality.5*
|
|
|
|
|
|
|
|
%{_rpmmacrodir}/macros.pkgconf
|
|
|
|
|
|
|
|
%dir %{_sysconfdir}/pkgconfig
|
|
|
|
|
|
|
|
%dir %{_sysconfdir}/pkgconfig/personality.d
|
|
|
|
|
|
|
|
%dir %{_datadir}/pkgconfig/personality.d
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n lib%{name}
|
|
|
|
%files -n lib%{name}
|
|
|
|
%license COPYING
|
|
|
|
%license COPYING
|
|
|
@ -220,89 +179,6 @@ rm -rf %{buildroot}%{_datadir}/aclocal
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Thu Oct 07 2021 Richard W.M. Jones <rjones@redhat.com> - 1.7.3-10
|
|
|
|
|
|
|
|
- Don't prepend sysroot_dir if pkg-config file lies outside of sysroot_dir
|
|
|
|
|
|
|
|
resolves: rhbz#1975416
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.7.3-9
|
|
|
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.7.3-8
|
|
|
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Feb 22 2021 Tomas Popela <tpopela@redhat.com> - 1.7.3-7
|
|
|
|
|
|
|
|
- Conditionalize the unit tests, disable them on RHEL 9
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.3-6
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Oct 19 2020 Neal Gompa <ngompa13@gmail.com> - 1.7.3-5
|
|
|
|
|
|
|
|
- Use internal target platform definition for pkg-config wrapper
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Oct 15 2020 Neal Gompa <ngompa13@gmail.com> - 1.7.3-4
|
|
|
|
|
|
|
|
- Fix pkg-config wrapper for armv7hl
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Oct 15 2020 Neal Gompa <ngompa13@gmail.com> - 1.7.3-3
|
|
|
|
|
|
|
|
- Make /usr/bin/pkg-config multilib safe
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 10 2020 Neal Gompa <ngompa13@gmail.com> - 1.7.3-2
|
|
|
|
|
|
|
|
- Add /usr/local paths to pkg-config(1) search path for non RPM builds
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 03 2020 Neal Gompa <ngompa13@gmail.com> - 1.7.3-1
|
|
|
|
|
|
|
|
- Update to 1.7.3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-3
|
|
|
|
|
|
|
|
- Second attempt - Rebuilt for
|
|
|
|
|
|
|
|
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon May 25 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 1.7.0-1
|
|
|
|
|
|
|
|
- Update to 1.7.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.3-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.3-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Jul 14 13:23:30 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.6.3-1
|
|
|
|
|
|
|
|
- Update to 1.6.3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 12 09:36:57 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.6.2-1
|
|
|
|
|
|
|
|
- Update to 1.6.2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Mar 25 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.6.1-1
|
|
|
|
|
|
|
|
- Update to 1.6.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Feb 09 2019 Neal Gompa <ngompa13@gmail.com> - 1.6.0-1
|
|
|
|
|
|
|
|
- Update to 1.6.0
|
|
|
|
|
|
|
|
- Add personality.d directories for cross-targets
|
|
|
|
|
|
|
|
- Add pkgconf rpm macros for pkgconf directories
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.4-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Nov 27 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.5.4-1
|
|
|
|
|
|
|
|
- Update to 1.5.4
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 31 2018 Florian Weimer <fweimer@redhat.com> - 1.5.3-2
|
|
|
|
|
|
|
|
- Rebuild with fixed binutils
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Jul 29 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.5.3-1
|
|
|
|
|
|
|
|
- Update to 1.5.3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jun 29 2018 Neal Gompa <ngompa13@gmail.com> - 1.5.1-2
|
|
|
|
|
|
|
|
- Add patch to fix system path override issue
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jun 27 2018 Neal Gompa <ngompa13@gmail.com> - 1.5.1-1
|
|
|
|
|
|
|
|
- Upgrade to 1.5.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Mar 31 2018 Neal Gompa <ngompa13@gmail.com> - 1.4.2-1
|
|
|
|
* Sat Mar 31 2018 Neal Gompa <ngompa13@gmail.com> - 1.4.2-1
|
|
|
|
- Update to 1.4.2
|
|
|
|
- Update to 1.4.2
|
|
|
|
- Drop conditionals for old Fedora releases
|
|
|
|
- Drop conditionals for old Fedora releases
|
|
|
|