LFS-RPM/SPECS/pkg-config.spec

47 lines
1.8 KiB
RPMSpec
Raw Normal View History

2019-05-24 08:27:40 -04:00
#TARBALL: https://pkg-config.freedesktop.org/releases/pkg-config-0.29.2.tar.gz
#MD5SUM: f6e931e319531b736fadc017f470e68a;SOURCES/pkg-config-0.29.2.tar.gz
#-----------------------------------------------------------------------------
Summary: pkg-config package contains a tool for passing the include and library paths
Name: pkg-config
Version: 0.29.2
Release: 1
License: GPLv2
URL: Any
Group: LFS/Base
Vendor: Elizabeth
Source0: https://pkg-config.freedesktop.org/releases/%{name}-%{version}.tar.gz
Requires: filesystem
%description
The pkg-config package contains a tool for passing the include path and/or
library paths to build tools during the configure and make file execution.
#-----------------------------------------------------------------------------
%prep
%setup -q -n %{NAME}-%{VERSION}
./configure \
--prefix=%{_prefix} \
--with-internal-glib \
--disable-host-tool \
--docdir=%{_docdir}/%{NAME}-%{VERSION}
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
#-----------------------------------------------------------------------------
# Copy license/copying file
install -D -m644 COPYING %{buildroot}/usr/share/licenses/%{name}/LICENSE
#-----------------------------------------------------------------------------
# Create file list
# rm %{buildroot}%{_infodir}/dir
find %{buildroot} -name '*.la' -delete
find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.rpm
sed -i "s|^${RPM_BUILD_ROOT}||" filelist.rpm
sed -i '/man\/man/d' filelist.rpm
sed -i '/\/usr\/share\/info/d' filelist.rpm
#-----------------------------------------------------------------------------
%files -f filelist.rpm
%defattr(-,root,root)
%{_mandir}/man1/*.gz
#-----------------------------------------------------------------------------
%changelog
* Tue Jan 09 2018 baho-utot <baho-utot@columbus.rr.com> 0.29.2-1
- Initial build. First version