2023-04-18 08:01:24 +08:00
|
|
|
Name: pkgconfig
|
|
|
|
Version: 0.29.2
|
2023-04-18 22:17:18 +08:00
|
|
|
Release: %{?repo}0.rc4%{?dist}
|
2023-04-18 08:01:24 +08:00
|
|
|
Summary: Developer helper tool
|
2023-04-07 01:56:31 +08:00
|
|
|
|
2023-04-18 08:01:24 +08:00
|
|
|
Group: Development/Utilities
|
|
|
|
License: GPLv2
|
|
|
|
URL: https://www.freedesktop.org/wiki/Software/pkg-config/
|
|
|
|
Source0: https://pkg-config.freedesktop.org/releases/pkg-config-%{version}.tar.gz
|
2023-04-07 01:56:31 +08:00
|
|
|
|
2023-04-18 22:17:18 +08:00
|
|
|
#BuildRequires: glib2-devel >= 2.0
|
2023-04-07 01:56:31 +08:00
|
|
|
#Requires:
|
|
|
|
|
|
|
|
%description
|
2023-04-18 08:01:24 +08:00
|
|
|
pkg-config is a helper tool used when compiling applications and
|
|
|
|
libraries. It helps you insert the correct compiler options on the
|
|
|
|
command line so an application can use:
|
2023-04-07 01:56:31 +08:00
|
|
|
gcc -o test test.c `pkg-config --libs --cflags glib-2.0`
|
2023-04-18 08:01:24 +08:00
|
|
|
for instance, rather than hard-coding values on where to find glib (or
|
|
|
|
other libraries). It is language-agnostic, so it can be used for defining
|
|
|
|
the location of documentation tools, for instance.
|
2023-04-07 01:56:31 +08:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -n pkg-config-%{version}
|
|
|
|
|
|
|
|
%build
|
2023-04-18 22:17:18 +08:00
|
|
|
%configure --disable-host-tool --with-internal-glib
|
2023-04-07 01:56:31 +08:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
2023-04-18 08:01:24 +08:00
|
|
|
%check
|
2023-04-18 22:17:18 +08:00
|
|
|
make check > %{name}-make.check.log 2>&1
|
2023-04-07 01:56:31 +08:00
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
install -d %{buildroot}%{_libdir}/pkgconfig
|
|
|
|
install -d %{buildroot}%{_datadir}/pkgconfig
|
|
|
|
rm -rf %{buildroot}%{_datadir}/doc/pkg-config
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%attr(0755,root,root) %{_bindir}/pkg-config
|
|
|
|
%dir %attr(0755,root,root) %{_libdir}/pkgconfig
|
|
|
|
%dir %attr(0755,root,root) %{_datadir}/pkgconfig
|
|
|
|
%attr(0644,root,root) %{_datadir}/aclocal/pkg.m4
|
|
|
|
%attr(0644,root,root) %{_mandir}/man1/pkg-config.1*
|
|
|
|
%license COPYING
|
2023-04-18 08:01:24 +08:00
|
|
|
%doc %{name}-make.check.log
|
2023-04-07 01:56:31 +08:00
|
|
|
%doc AUTHORS ChangeLog COPYING NEWS README pkg-config-guide.html
|
|
|
|
|
|
|
|
%changelog
|
2023-04-18 22:17:18 +08:00
|
|
|
* Tue Apr 18 2023 Michael A. Peters <anymouseprophet@gmail.com> - 0.29.2-0.rc4
|
|
|
|
- use internal glib (1 test failure when built against external)
|
|
|
|
|
2023-04-18 08:01:24 +08:00
|
|
|
* Mon Apr 17 2023 Michael A. Peters <anymouseprophet@gmail.com> - 0.29.2-0.rc3
|
|
|
|
- Run make check
|
|
|
|
|
2023-04-07 01:56:31 +08:00
|
|
|
* Sun Mar 19 2023 Michael A. Peters <anymouseprophet@gmail.com> - 0.29.2-0.rc2
|
|
|
|
- own the pkgconfig directories
|
|
|
|
|
|
|
|
* Wed Mar 15 2023 Michael A. Peters <anymouseprophet@gmail.com> - 0.29.2-0.rc1
|
|
|
|
- Initial spec file for YJL (RPM bootstrapping LFS/BLFS 11.3)
|