LFS-RPM/SPECS/wget.spec

60 lines
2.1 KiB
Plaintext
Raw Normal View History

2020-06-01 16:11:06 -04:00
#TARBALL: https://ftp.gnu.org/gnu/wget/wget-1.20.3.tar.gz
#MD5SUM: db4e6dc7977cbddcd543b240079a4899;SOURCES/wget-1.20.3.tar.gz
2019-05-24 08:27:40 -04:00
#-----------------------------------------------------------------------------
Summary: The Wget package contains a utility useful for non-interactive downloading of files from the Web.
Name: wget
2020-06-01 16:11:06 -04:00
Version: 1.20.3
2019-05-24 08:27:40 -04:00
Release: 1
License: Any
URL: Any
Group: LFS/Base
2020-06-01 16:11:06 -04:00
Source0: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
2019-05-24 08:27:40 -04:00
Requires: filesystem
%description
The Wget package contains a utility useful for non-interactive downloading of files from the Web.
#-----------------------------------------------------------------------------
%prep
%setup -q -n %{NAME}-%{VERSION}
%build
./configure \
--prefix=%{_prefix} \
2020-06-01 16:11:06 -04:00
--sysconfdir=%{_sysconfdir} \
2019-05-24 08:27:40 -04:00
--with-ssl=openssl \
--disable-rpath
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
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
2019-05-24 08:27:40 -04:00
%defattr(-,root,root)
2019-05-25 21:36:26 -04:00
%{_infodir}/*
%{_mandir}/man1/*
2019-05-24 08:27:40 -04:00
%post
pushd /usr/share/info
rm -v dir
for f in *; do install-info $f dir 2>/dev/null; done
popd
%postun
pushd /usr/share/info
rm -v dir
for f in *; do install-info $f dir 2>/dev/null; done
popd
#-----------------------------------------------------------------------------
%changelog
2020-06-01 16:11:06 -04:00
* Mon Jun 01 2020 Chris Cromer <chris@cromer.cl> 1.20.3-1
2019-05-24 08:27:40 -04:00
* Sun Apr 07 2019 baho-utot <baho-utot@columbus.rr.com> 1.20.1-1
- BLFS-8.4
* Tue Jan 09 2018 baho-utot <baho-utot@columbus.rr.com> 1.19.1-1
- Initial build. First version