e02857d
# pkgconf acts as pkgconfig for Fedora and EL8+
e02857d
%if (0%{?rhel} && 0%{?rhel} <= 7)
fea1ae6
%bcond_with pkgconfig_compat
a88375c
%else
a88375c
%bcond_without pkgconfig_compat
8744757
%endif
fea1ae6
fea1ae6
%if %{with pkgconfig_compat}
fea1ae6
%global pkgconfig_ver 0.29.1
8744757
# For obsoleting pkgconfig
17a5505
%global pkgconfig_verrel %{pkgconfig_ver}-3
8744757
%global pkgconfig_evr 1:%{pkgconfig_verrel}
fea1ae6
%endif
fea1ae6
cf41f50
# Search path for pc files for pkgconf
cf41f50
%global pkgconf_libdirs %{_libdir}/pkgconfig:%{_datadir}/pkgconfig
cf41f50
fea1ae6
Name:           pkgconf
154f36d
Version:        1.5.4
0674fe8
Release:        2%{?dist}
fea1ae6
Summary:        Package compiler and linker metadata toolkit
fea1ae6
fea1ae6
License:        ISC
fea1ae6
URL:            http://pkgconf.org/
fea1ae6
Source0:        https://distfiles.dereferenced.org/%{name}/%{name}-%{version}.tar.xz
fea1ae6
cf41f50
# Simple wrapper script to offer platform versions of pkgconfig
cf41f50
Source1:        platform-pkg-config.in
cf41f50
aefc561
BuildRequires:  gcc
aefc561
BuildRequires:  make
fea1ae6
fea1ae6
# For regenerating autotools scripts
fea1ae6
BuildRequires:  autoconf
fea1ae6
BuildRequires:  automake
fea1ae6
BuildRequires:  libtool
fea1ae6
fea1ae6
# For unit tests
5e84d79
BuildRequires:  kyua
fea1ae6
BuildRequires:  atf-tests
fea1ae6
fea1ae6
# pkgconf uses libpkgconf internally
fea1ae6
Requires:       lib%{name}%{?_isa} = %{version}-%{release}
fea1ae6
79ebdfd
# This is defined within pkgconf code as a virtual pc (just like in pkgconfig)
79ebdfd
Provides:       pkgconfig(pkgconf) = %{version}
79ebdfd
fea1ae6
%description
fea1ae6
pkgconf is a program which helps to configure compiler and linker flags
fea1ae6
for development frameworks. It is similar to pkg-config from freedesktop.org
fea1ae6
and handles .pc files in a similar manner as pkg-config.
fea1ae6
fea1ae6
%package -n lib%{name}
fea1ae6
Summary:        Backend library for %{name}
fea1ae6
fea1ae6
%description -n lib%{name}
fea1ae6
This package provides libraries for applications to use the functionality
fea1ae6
of %{name}.
fea1ae6
fea1ae6
%package -n lib%{name}-devel
fea1ae6
Summary:        Development files for lib%{name}
fea1ae6
Requires:       lib%{name}%{?_isa} = %{version}-%{release}
fea1ae6
fea1ae6
%description -n lib%{name}-devel
fea1ae6
This package provides files necessary for developing applications
fea1ae6
to use functionality provided by %{name}.
fea1ae6
fea1ae6
%if %{with pkgconfig_compat}
fea1ae6
%package m4
fea1ae6
Summary:        m4 macros for pkgconf
fea1ae6
License:        GPLv2+ with exceptions
fea1ae6
BuildArch:      noarch
271aa92
# Ensure that it Conflicts and Obsoletes pkgconfig since it contains content formerly from it
17a5505
Conflicts:      pkgconfig < %{pkgconfig_evr}
17a5505
Obsoletes:      pkgconfig < %{pkgconfig_evr}
fea1ae6
fea1ae6
%description m4
fea1ae6
This package includes m4 macros used to support PKG_CHECK_MODULES
fea1ae6
when using pkgconf with autotools.
fea1ae6
fea1ae6
%package pkg-config
fea1ae6
Summary:        %{name} shim to provide /usr/bin/pkg-config
54dfb75
# Ensure that it Conflicts with pkgconfig and is considered "better"
17a5505
Conflicts:      pkgconfig < %{pkgconfig_evr}
17a5505
Obsoletes:      pkgconfig < %{pkgconfig_evr}
8744757
Provides:       pkgconfig = %{pkgconfig_evr}
8744757
Provides:       pkgconfig%{?_isa} = %{pkgconfig_evr}
79ebdfd
# This is in the original pkgconfig package, set to match output from pkgconf
79ebdfd
Provides:       pkgconfig(pkg-config) = %{version}
54dfb75
# Generic pkg-config Provides for those who might use alternate package name
8744757
Provides:       pkg-config = %{pkgconfig_verrel}
8744757
Provides:       pkg-config%{?_isa} = %{pkgconfig_verrel}
fea1ae6
Requires:       %{name}%{?_isa} = %{version}-%{release}
fea1ae6
Requires:       %{name}-m4 = %{version}-%{release}
fea1ae6
fea1ae6
%description pkg-config
fea1ae6
This package provides the shim links for pkgconf to be automatically
8744757
used in place of pkgconfig. This ensures that pkgconf is used as
8744757
the system provider of pkg-config.
fea1ae6
fea1ae6
%endif
fea1ae6
fea1ae6
fea1ae6
%prep
09c38d8
%autosetup -p1
fea1ae6
fea1ae6
%build
fea1ae6
autoreconf -fiv
fea1ae6
%configure --disable-static \
cf41f50
           --with-pkg-config-dir=%{pkgconf_libdirs} \
fea1ae6
           --with-system-includedir=%{_includedir} \
fea1ae6
           --with-system-libdir=%{_libdir}
fea1ae6
fea1ae6
%make_build V=1
fea1ae6
fea1ae6
fea1ae6
%check
fea1ae6
make check
fea1ae6
fea1ae6
fea1ae6
%install
fea1ae6
%make_install
fea1ae6
fea1ae6
find %{buildroot} -name '*.la' -print -delete
fea1ae6
fea1ae6
%if %{with pkgconfig_compat}
cf41f50
install -pm 0755 %{SOURCE1} %{buildroot}%{_bindir}/%{_target_platform}-pkg-config
cf41f50
cf41f50
sed -e "s|@TARGET_PLATFORM@|%{_target_platform}|" \
cf41f50
    -e "s|@PKGCONF_LIBDIRS@|%{pkgconf_libdirs}|" \
cf41f50
    -e "s|@PKGCONF_SYSLIBDIR@|%{_libdir}|" \
cf41f50
    -e "s|@PKGCONF_SYSINCDIR@|%{_includedir}|" \
cf41f50
    -i %{buildroot}%{_bindir}/%{_target_platform}-pkg-config
cf41f50
fea1ae6
ln -sf pkgconf %{buildroot}%{_bindir}/pkg-config
54dfb75
54dfb75
# I don't have a better way to deal with this...
54dfb75
cp -a %{buildroot}%{_mandir}/man1/pkgconf.1 %{buildroot}%{_mandir}/man1/pkg-config.1
54dfb75
68f2eeb
mkdir -p %{buildroot}%{_libdir}/pkgconfig
68f2eeb
mkdir -p %{buildroot}%{_datadir}/pkgconfig
fea1ae6
%endif
fea1ae6
fea1ae6
# If we're not providing pkgconfig override & compat
fea1ae6
# we should not provide the pkgconfig m4 macros
fea1ae6
%if ! %{with pkgconfig_compat}
fea1ae6
rm -rf %{buildroot}%{_datadir}/aclocal
fea1ae6
%endif
fea1ae6
558e0ed
%ldconfig_scriptlets -n lib%{name}
fea1ae6
fea1ae6
%files
fea1ae6
%license COPYING
fea1ae6
%doc README.md AUTHORS NEWS
fea1ae6
%{_bindir}/%{name}
Igor Gnatenko 2304ba1
%{_mandir}/man1/%{name}.1*
98259cf
%{_mandir}/man5/pc.5*
5e84d79
%{_mandir}/man5/%{name}-personality.5*
fea1ae6
fea1ae6
%files -n lib%{name}
fea1ae6
%license COPYING
fea1ae6
%{_libdir}/lib%{name}*.so.*
fea1ae6
fea1ae6
%files -n lib%{name}-devel
fea1ae6
%{_libdir}/lib%{name}*.so
Igor Gnatenko 2304ba1
%{_includedir}/%{name}/
fea1ae6
%{_libdir}/pkgconfig/lib%{name}.pc
fea1ae6
fea1ae6
%if %{with pkgconfig_compat}
fea1ae6
%files m4
fea1ae6
%{_datadir}/aclocal/pkg.m4
d51479a
%{_mandir}/man7/pkg.m4.7*
fea1ae6
fea1ae6
%files pkg-config
fea1ae6
%{_bindir}/pkg-config
fea1ae6
%{_bindir}/%{_target_platform}-pkg-config
Igor Gnatenko 2304ba1
%{_mandir}/man1/pkg-config.1*
68f2eeb
%dir %{_libdir}/pkgconfig
68f2eeb
%dir %{_datadir}/pkgconfig
fea1ae6
%endif
fea1ae6
fea1ae6
%changelog
0674fe8
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.4-2
0674fe8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
0674fe8
154f36d
* Tue Nov 27 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.5.4-1
154f36d
- Update to 1.5.4
154f36d
7f3791a
* Tue Jul 31 2018 Florian Weimer <fweimer@redhat.com> - 1.5.3-2
7f3791a
- Rebuild with fixed binutils
7f3791a
5e84d79
* Sun Jul 29 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.5.3-1
5e84d79
- Update to 1.5.3
5e84d79
3cc928c
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-3
3cc928c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
3cc928c
dfb5062
* Fri Jun 29 2018 Neal Gompa <ngompa13@gmail.com> - 1.5.1-2
dfb5062
- Add patch to fix system path override issue
dfb5062
5a255d5
* Wed Jun 27 2018 Neal Gompa <ngompa13@gmail.com> - 1.5.1-1
5a255d5
- Upgrade to 1.5.1
5a255d5
e02857d
* Sat Mar 31 2018 Neal Gompa <ngompa13@gmail.com> - 1.4.2-1
e02857d
- Update to 1.4.2
e02857d
- Drop conditionals for old Fedora releases
e02857d
074d0d8
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-3
074d0d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
074d0d8
558e0ed
* Wed Jan 31 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.4.1-2
558e0ed
- Switch to %%ldconfig_scriptlets
558e0ed
b5eff1e
* Tue Jan 23 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.4.1-1
b5eff1e
- Update to 1.4.1
b5eff1e
98259cf
* Sun Jan 07 2018 Neal Gompa <ngompa13@gmail.com> - 1.4.0-2
98259cf
- Move pc(5) manpage to main pkgconf package
98259cf
d3efe32
* Fri Jan 05 2018 Neal Gompa <ngompa13@gmail.com> - 1.4.0-1
d3efe32
- Update to 1.4.0
d3efe32
cf41f50
* Fri Jan 05 2018 Neal Gompa <ngompa13@gmail.com> - 1.3.90-2
cf41f50
- Add simple wrapper to support platform-specific pkg-config paths (#1513810)
cf41f50
3c97473
* Tue Dec 19 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.3.90-1
3c97473
- Update to 1.3.90
3c97473
10d94dd
* Sun Dec 10 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.3.12-1
10d94dd
- Update to 1.3.12
10d94dd
280a189
* Wed Nov 01 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.3.10-1
280a189
- Update to 1.3.10
280a189
55b2bc7
* Wed Sep 20 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.3.9-1
55b2bc7
- Update to 1.3.9
55b2bc7
cf02017
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.8-3
cf02017
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
cf02017
183973e
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.8-2
183973e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
183973e
67459a5
* Mon Jul 17 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.3.8-1
67459a5
- Update to 1.3.8
67459a5
f76a2b4
* Sun May 28 2017 Neal Gompa <ngompa13@gmail.com> - 1.3.7-1
f76a2b4
- Update to 1.3.7
f76a2b4
11de9e4
* Wed May 10 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.3.6-1
11de9e4
- Update to 1.3.6
11de9e4
26f983d
* Tue Apr 04 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.3.5-1
26f983d
- Update to 1.3.5
26f983d
7883fb7
* Thu Mar 30 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.3.4-1
7883fb7
- Update to 1.3.4
7883fb7
11d4f2f
* Mon Mar 27 2017 Neal Gompa <ngompa13@gmail.com> - 1.3.3-1
11d4f2f
- Update to 1.3.3
11d4f2f
11d4f2f
* Fri Mar 24 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.3.2-1
aefc561
- Update to 1.3.2
aefc561
46cdaf8
* Sat Feb 25 2017 Neal Gompa <ngompa13@gmail.com> - 1.3.0-1
46cdaf8
- Update to 1.3.0
46cdaf8
09c38d8
* Tue Feb 07 2017 Neal Gompa <ngompa13@gmail.com> - 1.2.2-2
09c38d8
- Backport patch from upstream to remove extraneous whitespace (#1419685)
09c38d8
50da918
* Fri Feb 03 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.2.2-1
50da918
- Update to 1.2.2
50da918
17a5505
* Thu Feb 02 2017 Neal Gompa <ngompa13@gmail.com> - 1.2.1-3
17a5505
- Fix Obsoletes and Conflicts to prevent self-conflicts
17a5505
271aa92
* Thu Feb 02 2017 Neal Gompa <ngompa13@gmail.com> - 1.2.1-2
271aa92
- Adjust Obsoletes and Conflicts to use inclusive range
271aa92
Igor Gnatenko 8e240c9
* Tue Jan 24 2017 Igor Gnatenko <ignatenko@redhat.com> - 1.2.1-1
Igor Gnatenko 8e240c9
- Update to 1.2.1
Igor Gnatenko 8e240c9
8744757
* Sat Jan 21 2017 Neal Gompa <ngompa13@gmail.com> - 1.2.0-1
8744757
- Upgrade to 1.2.0
8744757
- Enable pkgconf-pkg-config and pkgconf-m4 for F26+
8744757
79ebdfd
* Sat Jan 14 2017 Neal Gompa <ngompa13@gmail.com> - 1.1.1-3
79ebdfd
- Add missing pkgconfig() Provides for virtual .pc files defined in pkgconf
79ebdfd
54dfb75
* Fri Jan 13 2017 Neal Gompa <ngompa13@gmail.com> - 1.1.1-2
54dfb75
- Add missing Epoch to pkgconfig Provides/Conflicts for pkgconf-pkg-config
54dfb75
- Add copy of pkgconf.1 as pkg-config.1 in pkgconf-pkg-config
54dfb75
68f2eeb
* Sat Jan 07 2017 Neal Gompa <ngompa13@gmail.com> - 1.1.1-1
68f2eeb
- Upgrade to 1.1.1
68f2eeb
- Add missing directories to pkgconf-pkg-config
68f2eeb
fea1ae6
* Sun Jan 01 2017 Neal Gompa <ngompa13@gmail.com> - 1.1.0-3
fea1ae6
- Fix up spec per package review (#1409332)
fea1ae6
fea1ae6
* Sat Dec 31 2016 Neal Gompa <ngompa13@gmail.com> - 1.1.0-2
fea1ae6
- Rework package to not generate conflict with pkgconfig
fea1ae6
- Disable pkgconf-m4 and pkgconf-pkg-config by default
fea1ae6
fea1ae6
* Sat Dec 31 2016 Neal Gompa <ngompa13@gmail.com> - 1.1.0-1
fea1ae6
- Upgrade to 1.1.0
fea1ae6
- Enable libpkgconf libraries now that they are ABI+API stable
fea1ae6
fea1ae6
* Tue Oct 25 2016 Neal Gompa <ngompa13@gmail.com> - 1.0.2-1
fea1ae6
- Upgrade to 1.0.2
fea1ae6
fea1ae6
* Fri Aug 26 2016 Neal Gompa <ngompa13@gmail.com> - 1.0.1-2
fea1ae6
- Add subpackage for providing pkg-config shim
fea1ae6
- Enable tests
fea1ae6
fea1ae6
* Thu Aug 25 2016 Neal Gompa <ngompa13@gmail.com> - 1.0.1-1
fea1ae6
- Upgrade to 1.0.1
fea1ae6
fea1ae6
* Wed Aug 24 2016 Neal Gompa <ngompa13@gmail.com> - 1-1
fea1ae6
- Initial packaging