Package init
This commit is contained in:
commit
8e99918bd7
BIN
pkgconf-1.6.3.tar.xz
Normal file
BIN
pkgconf-1.6.3.tar.xz
Normal file
Binary file not shown.
107
pkgconf.spec
Normal file
107
pkgconf.spec
Normal file
@ -0,0 +1,107 @@
|
||||
%global pkgconf_libdirs %{_libdir}/pkgconfig:%{_datadir}/pkgconfig
|
||||
|
||||
Name: pkgconf
|
||||
Version: 1.6.3
|
||||
Release: 2
|
||||
Summary: Package compiler and linker metadata toolkit
|
||||
|
||||
License: ISC
|
||||
URL: http://pkgconf.org/
|
||||
Source0: https://distfiles.dereferenced.org/%{name}/%{name}-%{version}.tar.xz
|
||||
|
||||
Source1: platform-pkg-config.in
|
||||
|
||||
BuildRequires: gcc, make, autoconf, automake, libtool
|
||||
#tests
|
||||
BuildRequires: kyua, atf-tests
|
||||
|
||||
#compat fedora
|
||||
Provides: pkgconfig(pkgconf) = %{version}
|
||||
Conflicts: pkgconfig < %{version}
|
||||
Obsoletes: pkgconfig < %{version}
|
||||
Provides: pkgconfig = %{version}
|
||||
Provides: pkgconfig%{?_isa} = %{version}
|
||||
Provides: pkgconfig(pkg-config) = %{version}
|
||||
Provides: pkg-config = %{version}
|
||||
Provides: pkgconfig-pkg-config = %{version}
|
||||
Obsoletes: pkgconfig-pkg-config < %{version}
|
||||
Provides: pkgconfig-m4 = %{version}
|
||||
Obsoletes: pkgconfig-m4 < %{version}
|
||||
|
||||
%description
|
||||
pkgconf is a program which helps to configure compiler and linker flags for development frameworks.
|
||||
It is similar to pkg-config from freedesktop.org, providing additional functionality while also
|
||||
maintaining compatibility.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for lib%{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Provides: libpkgconf-devel
|
||||
Obsoletes: libpkgconf-devel
|
||||
|
||||
%description devel
|
||||
Development headers and auxiliary files for developing apps for %{name}.
|
||||
|
||||
%package_help
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
autoreconf -fiv
|
||||
%configure --with-pkg-config-dir=%{pkgconf_libdirs} \
|
||||
--with-system-includedir=%{_includedir} \
|
||||
--with-system-libdir=%{_libdir}
|
||||
|
||||
%make_build V=1
|
||||
|
||||
|
||||
%check
|
||||
make check
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
%delete_la_and_a
|
||||
|
||||
install -pm 0755 %{SOURCE1} %{buildroot}%{_bindir}/%{_target_platform}-pkg-config
|
||||
|
||||
sed -e "s|@TARGET_PLATFORM@|%{_target_platform}|" \
|
||||
-e "s|@PKGCONF_LIBDIRS@|%{pkgconf_libdirs}|" \
|
||||
-e "s|@PKGCONF_SYSLIBDIR@|%{_libdir}|" \
|
||||
-e "s|@PKGCONF_SYSINCDIR@|%{_includedir}|" \
|
||||
-i %{buildroot}%{_bindir}/%{_target_platform}-pkg-config
|
||||
|
||||
ln -sf pkgconf %{buildroot}%{_bindir}/pkg-config
|
||||
|
||||
mkdir -p %{buildroot}%{_libdir}/pkgconfig
|
||||
mkdir -p %{buildroot}%{_datadir}/pkgconfig
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%doc README.md AUTHORS NEWS
|
||||
%license COPYING
|
||||
%{_bindir}/%{name}
|
||||
%{_libdir}/lib%{name}*.so.*
|
||||
%{_datadir}/aclocal/pkg.m4
|
||||
%{_bindir}/pkg-config
|
||||
%{_bindir}/%{_target_platform}-pkg-config
|
||||
%dir %{_libdir}/pkgconfig
|
||||
%dir %{_datadir}/pkgconfig
|
||||
|
||||
%files devel
|
||||
%{_libdir}/lib%{name}*.so
|
||||
%{_includedir}/%{name}/
|
||||
%{_libdir}/pkgconfig/lib%{name}.pc
|
||||
|
||||
%files help
|
||||
%{_mandir}/*/*
|
||||
|
||||
%changelog
|
||||
* Wed Sep 11 2019 hexiaowen <hexiaowen@huawei.com> - 1.6.3-2
|
||||
- Rebuild
|
||||
|
||||
* Tue Jul 31 2018 hexiaowen <hexiaowen@huawei.com> - 1.6.3-1
|
||||
- Package init
|
||||
10
platform-pkg-config.in
Normal file
10
platform-pkg-config.in
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Simple wrapper to tell pkgconf to behave as a platform-specific version of pkg-config
|
||||
# Platform: @TARGET_PLATFORM@
|
||||
|
||||
export PKG_CONFIG_LIBDIR="${PKG_CONFIG_LIBDIR:-@PKGCONF_LIBDIRS@}"
|
||||
export PKG_CONFIG_SYSTEM_LIBRARY_PATH="${PKG_CONFIG_SYSTEM_LIBRARY_PATH:-@PKGCONF_SYSLIBDIR@}"
|
||||
export PKG_CONFIG_SYSTEM_INCLUDE_PATH="${PKG_CONFIG_SYSTEM_INCLUDE_PATH:-@PKGCONF_SYSINCDIR@}"
|
||||
|
||||
exec pkgconf "$@"
|
||||
Loading…
x
Reference in New Issue
Block a user