Upgrade to 1.2.0

Enable pkgconf-pkg-config and pkgconf-m4 for F26+
This commit is contained in:
Neal Gompa 2017-01-21 18:10:36 -05:00
parent 79ebdfd98e
commit 87447579c8

View File

@ -1,13 +1,20 @@
# pkgconf can optionally act as pkgconfig as well # pkgconf can acts as pkgconfig for F26+
%if 0%{?fedora} >= 26
%bcond_without pkgconfig_compat
%else
%bcond_with pkgconfig_compat %bcond_with pkgconfig_compat
%endif
%if %{with pkgconfig_compat} %if %{with pkgconfig_compat}
%global pkgconfig_ver 0.29.1 %global pkgconfig_ver 0.29.1
# For obsoleting pkgconfig
%global pkgconfig_verrel %{pkgconfig_ver}-2
%global pkgconfig_evr 1:%{pkgconfig_verrel}
%endif %endif
Name: pkgconf Name: pkgconf
Version: 1.1.1 Version: 1.2.0
Release: 3%{?dist} Release: 1%{?dist}
Summary: Package compiler and linker metadata toolkit Summary: Package compiler and linker metadata toolkit
License: ISC License: ISC
@ -57,7 +64,9 @@ Summary: m4 macros for pkgconf
License: GPLv2+ with exceptions License: GPLv2+ with exceptions
BuildArch: noarch BuildArch: noarch
# FIXME: Somehow get rid of the file conflict between pkgconfig and pkgconf-m4 # FIXME: Somehow get rid of the file conflict between pkgconfig and pkgconf-m4
Conflicts: pkgconfig < 1:%{pkgconfig_ver}.1 Conflicts: pkgconfig < %{pkgconfig_evr}
# Ensure that it Obsoletes pkgconfig since it contains content formerly from it
Obsoletes: pkgconfig < %{pkgconfig_evr}
%description m4 %description m4
This package includes m4 macros used to support PKG_CHECK_MODULES This package includes m4 macros used to support PKG_CHECK_MODULES
@ -66,24 +75,23 @@ when using pkgconf with autotools.
%package pkg-config %package pkg-config
Summary: %{name} shim to provide /usr/bin/pkg-config Summary: %{name} shim to provide /usr/bin/pkg-config
# Ensure that it Conflicts with pkgconfig and is considered "better" # Ensure that it Conflicts with pkgconfig and is considered "better"
Conflicts: pkgconfig < 1:%{pkgconfig_ver}.1 Conflicts: pkgconfig < %{pkgconfig_evr}
Provides: pkgconfig = 1:%{pkgconfig_ver}.1 Obsoletes: pkgconfig < %{pkgconfig_evr}
Provides: pkgconfig%{?_isa} = 1:%{pkgconfig_ver}.1 Provides: pkgconfig = %{pkgconfig_evr}
Provides: pkgconfig%{?_isa} = %{pkgconfig_evr}
# This is in the original pkgconfig package, set to match output from pkgconf # This is in the original pkgconfig package, set to match output from pkgconf
Provides: pkgconfig(pkg-config) = %{version} Provides: pkgconfig(pkg-config) = %{version}
# Generic pkg-config Provides for those who might use alternate package name # Generic pkg-config Provides for those who might use alternate package name
Provides: pkg-config = %{pkgconfig_ver}.1 Provides: pkg-config = %{pkgconfig_verrel}
Provides: pkg-config%{?_isa} = %{pkgconfig_ver}.1 Provides: pkg-config%{?_isa} = %{pkgconfig_verrel}
Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: %{name}-m4 = %{version}-%{release} Requires: %{name}-m4 = %{version}-%{release}
%description pkg-config %description pkg-config
This package provides the shim links for pkgconf to be automatically This package provides the shim links for pkgconf to be automatically
used in place of pkgconfig. used in place of pkgconfig. This ensures that pkgconf is used as
the system provider of pkg-config.
This is useful when bootstrapping new architectures where you wish
to avoid the circular dependency with glib2 and pkgconfig when
building from source.
%endif %endif
@ -158,6 +166,10 @@ rm -rf %{buildroot}%{_datadir}/aclocal
%endif %endif
%changelog %changelog
* Sat Jan 21 2017 Neal Gompa <ngompa13@gmail.com> - 1.2.0-1
- Upgrade to 1.2.0
- Enable pkgconf-pkg-config and pkgconf-m4 for F26+
* Sat Jan 14 2017 Neal Gompa <ngompa13@gmail.com> - 1.1.1-3 * Sat Jan 14 2017 Neal Gompa <ngompa13@gmail.com> - 1.1.1-3
- Add missing pkgconfig() Provides for virtual .pc files defined in pkgconf - Add missing pkgconfig() Provides for virtual .pc files defined in pkgconf