LFS-RPM/SPECS/procps-ng.spec

57 lines
2.1 KiB
RPMSpec
Raw Normal View History

2019-05-24 08:27:40 -04:00
#TARBALL: http://sourceforge.net/projects/procps-ng/files/Production/procps-ng-3.3.15.tar.xz
#MD5SUM: 2b0717a7cb474b3d6dfdeedfbad2eccc;SOURCES/procps-ng-3.3.15.tar.xz
#-----------------------------------------------------------------------------
Summary: The Procps-ng package contains programs for monitoring processes.
Name: procps-ng
Version: 3.3.15
Release: 1
License: GPLv2
URL: Any
Group: LFS/Base
Vendor: Elizabeth
Source0: %{name}-%{version}.tar.xz
Requires: filesystem
%description
The Procps-ng package contains programs for monitoring processes.
#-----------------------------------------------------------------------------
%prep
%setup -q -n %{NAME}-%{VERSION}
%build
./configure \
--prefix=%{_prefix} \
--exec-prefix= \
--libdir=%{_libdir} \
--docdir=%{_docdir}/%{NAME}-%{VERSION} \
--disable-static \
--disable-kill
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
install -vdm 755 %{buildroot}/lib
mv -v %{buildroot}%{_libdir}/libprocps.so.* %{buildroot}/lib
ln -sfv ../../lib/$(readlink %{buildroot}%{_libdir}/libprocps.so) %{buildroot}%{_libdir}/libprocps.so
#-----------------------------------------------------------------------------
# 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)
2019-05-25 21:36:26 -04:00
%{_mandir}/man1/*
%{_mandir}/man3/*
%{_mandir}/man5/*
%{_mandir}/man8/*
2019-05-24 08:27:40 -04:00
#-----------------------------------------------------------------------------
%changelog
* Sat Apr 06 2019 baho-utot <baho-utot@columbus.rr.com> 3.3.15-1
- LFS-8.4
* Tue Jan 09 2018 baho-utot <baho-utot@columbus.rr.com> 3.3.12-1
- Initial build. First version