LFS-RPM/SPECS/libelf.spec

47 lines
1.9 KiB
Plaintext
Raw Normal View History

2020-06-01 16:11:06 -04:00
#TARBALL: https://sourceware.org/ftp/elfutils/0.178/elfutils-0.178.tar.bz2
#MD5SUM: 5480d0b7174446aba13a6adde107287f;SOURCES/elfutils-0.178.tar.bz2
2019-05-24 08:27:40 -04:00
#-----------------------------------------------------------------------------
Summary: The elfutils package contains a set of utilities and libraries for handling ELF files
Name: libelf
2020-06-01 16:11:06 -04:00
Version: 0.178
2019-05-24 08:27:40 -04:00
Release: 1
License: GPLv3
URL: https://sourceware.org/ftp/elfutils
Group: LFS/BASE
2020-06-01 16:11:06 -04:00
Source0: https://sourceware.org/ftp/elfutils/%{version}/elfutils-%{version}.tar.bz2
2019-05-24 08:27:40 -04:00
Requires: filesystem
%description
The elfutils package contains a set of utilities and libraries for handling ELF
(Executable and Linkable Format) files.
#-----------------------------------------------------------------------------
%prep
%setup -q -n elfutils-%{version}
%build
./configure \
--prefix=%{_prefix}
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} -C libelf install
2020-06-01 16:11:06 -04:00
install -vDm644 config/libelf.pc %{buildroot}/%{_libdir}/pkgconfig/libelf.pc
rm %{buildroot}/%{_libdir}/libelf.a
2019-05-24 08:27:40 -04:00
#-----------------------------------------------------------------------------
# Copy license/copying file
install -D -m644 COPYING %{buildroot}/usr/share/licenses/%{name}/LICENSE
#-----------------------------------------------------------------------------
# Create file list
find %{buildroot} -name '*.la' -delete
2020-06-01 16:11:06 -04:00
find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.list
sed -i "s|^${RPM_BUILD_ROOT}||" filelist.list
sed -i '/man\/man/d' filelist.list
sed -i '/\/usr\/share\/info/d' filelist.list
2019-05-24 08:27:40 -04:00
#-----------------------------------------------------------------------------
2020-06-01 16:11:06 -04:00
%files -f filelist.list
%defattr(-,root,root)
2019-05-24 08:27:40 -04:00
#-----------------------------------------------------------------------------
%changelog
2020-06-01 16:11:06 -04:00
* Sun May 31 2020 Chris Cromer <chris@cromer.cl> 0.178-1
2019-05-24 08:27:40 -04:00
* Fri Apr 05 2019 baho-utot <baho-utot@columbus.rr.com> 0.176-1
- Update for LFS-8.4
* Mon Jan 01 2018 baho-utot <baho-utot@columbus.rr.com> 0.170-1
- LFS-8.1