mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
* add: zlib
* use make instead
(cherry picked from commit 14c23573d5)
Co-authored-by: metcya <134973769+metcya@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
project pkg {
|
||||
rpm {
|
||||
spec = "zlib.spec"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("madler/zlib"));
|
||||
@@ -0,0 +1,45 @@
|
||||
Name: zlib
|
||||
Version: 1.3.1
|
||||
Release: 1%?dist
|
||||
License: Zlib
|
||||
URL: https://zlib.net
|
||||
Source: https://github.com/madler/zlib/archive/v%{version}.tar.gz
|
||||
Summary: A massively spiffy yet delicately unobtrusive compression library
|
||||
Conflicts: zlib-ng
|
||||
|
||||
BuildRequires: gcc
|
||||
|
||||
%description
|
||||
%summary.
|
||||
|
||||
%package devel
|
||||
%pkg_devel_files
|
||||
|
||||
%package static
|
||||
%pkg_static_files
|
||||
|
||||
%prep
|
||||
%autosetup
|
||||
export CFLAGS="%optflags"
|
||||
export LDFLAGS="%build_ldflags"
|
||||
./configure --libdir=%_libdir \
|
||||
--includedir=%_includedir \
|
||||
--sysconfdir=%_sysconfdir \
|
||||
--localstatedir=%_localstatedir \
|
||||
--prefix=%_prefix
|
||||
|
||||
%build
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc README
|
||||
%_mandir/man3/zlib.3.*
|
||||
%_libdir/libz.so.*
|
||||
|
||||
%changelog
|
||||
* Wed Nov 26 2025 metcya <metcya@gmail.com>
|
||||
- package zlib
|
||||
Reference in New Issue
Block a user