2024-11-14 06:17:54 +01:00
|
|
|
%global debug_package %{nil}
|
2024-11-13 20:52:01 +01:00
|
|
|
%define name s6-portable-utils
|
2024-11-14 05:06:15 +01:00
|
|
|
%define version 2.3.0.4
|
2024-11-13 20:52:01 +01:00
|
|
|
%define release 1
|
|
|
|
Summary: This is what s6-portable-utils does.
|
|
|
|
Name: %{name}
|
|
|
|
Version: %{version}
|
|
|
|
Release: %{release}%{?dist}
|
|
|
|
Source: %{name}-%{version}.tar.gz
|
|
|
|
License: GNU GPL version 2
|
|
|
|
Group: SMEserver/addon
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-buildroot
|
|
|
|
Prefix: %{_prefix}
|
|
|
|
BuildRequires: e-smith-devtools
|
2024-11-14 06:17:54 +01:00
|
|
|
BuildRequires: skalibs-devel
|
2024-11-13 20:52:01 +01:00
|
|
|
Requires: e-smith-release >= 10.0
|
|
|
|
AutoReqProv: no
|
|
|
|
|
|
|
|
%description
|
|
|
|
local build of https://github.com/skarnet/s6-portable-utils mainly for seekablepipe
|
|
|
|
|
|
|
|
%changelog
|
2024-11-14 05:06:15 +01:00
|
|
|
* Wed Nov 13 2024 Jean-Philippe Pialasse <jpp@koozali.org> 2.3.0.4-1.sme
|
|
|
|
- Initial code - create RPM
|
2024-11-13 20:52:01 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2024-11-14 06:17:54 +01:00
|
|
|
sed -e 's/(cat \$sysdeps\/target)/target/' -i configure
|
|
|
|
./configure --with-sysdeps=/usr/lib64/skalibs/sysdeps --target=x86_64-redhat-linux
|
|
|
|
#x86_64-generic-linux-gnu
|
2024-11-14 05:06:15 +01:00
|
|
|
make
|
2024-11-13 20:52:01 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2024-11-14 06:17:54 +01:00
|
|
|
make install DESTDIR="$RPM_BUILD_ROOT"
|
2024-11-13 20:52:01 +01:00
|
|
|
rm -f %{name}-%{version}-filelist
|
|
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
|
|
|
|
> %{name}-%{version}-filelist
|
|
|
|
|
|
|
|
%clean
|
|
|
|
cd ..
|
|
|
|
rm -rf %{name}-%{version}
|
|
|
|
|
|
|
|
%pre
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
|
|
|
%postun
|
|
|
|
#uninstall
|
|
|
|
%files -f %{name}-%{version}-filelist
|
|
|
|
%defattr(-,root,root)
|