64 lines
1.8 KiB
RPMSpec
64 lines
1.8 KiB
RPMSpec
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
Name: perl-TheSchwartz
|
|
Version: 1.17
|
|
Release: 1mamba
|
|
Summary: TheSchwartz - reliable job queue
|
|
Group: System/Libraries/Perl
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: https://www.cpan.org/
|
|
Source: https://cpan.metacpan.org/authors/id/A/AK/AKIYM/TheSchwartz-%{version}.tar.gz
|
|
License: GPL, Artistic
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: libperl
|
|
BuildRequires: perl-Class-Accessor
|
|
BuildRequires: perl-DBI
|
|
BuildRequires: perl-Data-ObjectDriver
|
|
BuildRequires: perl-Scalar-List-Utils
|
|
BuildRequires: perl-devel
|
|
## AUTOBUILDREQ-END
|
|
Requires: perl >= %perl_major_ver
|
|
|
|
%description
|
|
TheSchwartz - reliable job queue.
|
|
|
|
%prep
|
|
%setup -q -n TheSchwartz-%{version}
|
|
|
|
%build
|
|
%{__perl} Build.PL installdirs=vendor
|
|
./Build
|
|
#./Build test
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
./Build install --destdir=%{buildroot}
|
|
|
|
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
|
|
* Mon Jan 10 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.17-1mamba
|
|
- update to 1.17
|
|
|
|
* Thu Nov 15 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.10-1mamba
|
|
- package created by silvan using the webbuild interface
|