48 lines
1.9 KiB
RPMSpec
48 lines
1.9 KiB
RPMSpec
#TARBALL: http://zlib.net/zlib-1.2.11.tar.xz
|
|
#MD5SUM: 85adef240c5f370b308da8c938951a68;SOURCES/zlib-1.2.11.tar.xz
|
|
#-----------------------------------------------------------------------------
|
|
Summary: The Zlib package contains compression and decompression routines used by some programs.
|
|
Name: zlib
|
|
Version: 1.2.11
|
|
Release: 1
|
|
License: Other
|
|
URL: http://zlib.net
|
|
Group: LFS/Base
|
|
Vendor: Elizabeth
|
|
Source0: http://zlib.net/%{name}-%{version}.tar.xz
|
|
Provides: pkgconfig(zlib)
|
|
Requires: filesystem
|
|
%description
|
|
The Zlib package contains compression and decompression routines used by some programs.
|
|
#-----------------------------------------------------------------------------
|
|
%prep
|
|
%setup -q -n %{NAME}-%{VERSION}
|
|
%build
|
|
./configure --prefix=%{_prefix}
|
|
make %{?_smp_mflags}
|
|
%install
|
|
make DESTDIR=%{buildroot} install
|
|
install -vdm 755 %{buildroot}/lib
|
|
install -vdm 755 %{buildroot}/usr/lib
|
|
mv -v %{buildroot}/usr/lib/libz.so.* %{buildroot}/lib
|
|
ln -sfv ../../lib/$(readlink %{buildroot}/usr/lib/libz.so) %{buildroot}/usr/lib/libz.so
|
|
#-----------------------------------------------------------------------------
|
|
# Copy license/copying file
|
|
install -vDm644 README %{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/man3/zlib.3.gz
|
|
#-----------------------------------------------------------------------------
|
|
%changelog
|
|
* Tue Jan 09 2018 baho-utot <baho-utot@columbus.rr.com> 1.2.11-1
|
|
- Initial build. First version
|