2024-01-06 09:49:16 +01:00
|
|
|
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
|
|
|
|
Name: perl-TheSchwartz
|
2024-01-06 09:49:17 +01:00
|
|
|
Version: 1.17
|
2024-01-06 09:49:16 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: TheSchwartz - reliable job queue
|
|
|
|
Group: System/Libraries/Perl
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 09:49:17 +01:00
|
|
|
URL: https://www.cpan.org/
|
|
|
|
Source: https://cpan.metacpan.org/authors/id/A/AK/AKIYM/TheSchwartz-%{version}.tar.gz
|
2024-01-06 09:49:16 +01:00
|
|
|
License: GPL, Artistic
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
2024-01-06 09:49:17 +01:00
|
|
|
BuildRequires: libperl
|
2024-01-06 09:49:16 +01:00
|
|
|
BuildRequires: perl-Class-Accessor
|
|
|
|
BuildRequires: perl-DBI
|
2024-01-06 09:49:17 +01:00
|
|
|
BuildRequires: perl-Data-ObjectDriver
|
|
|
|
BuildRequires: perl-Scalar-List-Utils
|
2024-01-06 09:49:16 +01:00
|
|
|
BuildRequires: perl-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
Requires: perl >= %perl_major_ver
|
|
|
|
|
|
|
|
%description
|
|
|
|
TheSchwartz - reliable job queue.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n TheSchwartz-%{version}
|
|
|
|
|
|
|
|
%build
|
2024-01-06 09:49:17 +01:00
|
|
|
%{__perl} Build.PL installdirs=vendor
|
|
|
|
./Build
|
|
|
|
#./Build test
|
2024-01-06 09:49:16 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-06 09:49:17 +01:00
|
|
|
./Build install --destdir=%{buildroot}
|
2024-01-06 09:49:16 +01:00
|
|
|
|
|
|
|
packlist=`find %{buildroot} -name .packlist`
|
|
|
|
[ -z "$packlist" ] && exit 1 || cat $packlist | \
|
|
|
|
sed "s,%{buildroot},,g;s,.*/man/.*,&.gz,g" | \
|
|
|
|
sort -u > .packlist && rm -f $packlist
|
|
|
|
|
|
|
|
strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'`
|
|
|
|
for dir in `find %{buildroot} -type d | grep $strid`; do
|
|
|
|
echo "%dir ${dir#%buildroot}" >> .packlist
|
|
|
|
done
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files -f .packlist
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
|
|
|
## note: eventually add the remaining documents (if any)
|
|
|
|
# %doc CHANGES
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 09:49:17 +01:00
|
|
|
* Mon Jan 10 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.17-1mamba
|
|
|
|
- update to 1.17
|
|
|
|
|
2024-01-06 09:49:16 +01:00
|
|
|
* Thu Nov 15 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.10-1mamba
|
|
|
|
- package created by silvan using the webbuild interface
|