perl-Inline/perl-Inline.spec

103 lines
3.2 KiB
RPMSpec
Raw Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Inline
Version: 0.86
Release: 2mamba
Summary: Inline - Write Perl subroutines in other programming languages
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.cpan.org/
Source: http://www.cpan.org/modules/by-module/Inline/Inline-%{version}.tar.gz
License: Artistic
## AUTOBUILDREQ-BEGIN
BuildRequires: libperl
BuildRequires: perl-Encode
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: perl >= 2:5.36.0
BuildRequires: perl-devel >= %perl_major_ver
BuildRequires: perl-Inline-Files
BuildArch: noarch
Requires: perl >= %perl_major_ver
%description
Inline lets you write Perl subroutines in other programming languages like C, C++, Java, Python, Tcl and even Assembly.
You don't need to compile anything.
All the details are handled transparently so you can just run your Perl script like normal.
%prep
%setup -q -n Inline-%{version}
%build
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor << EOF
EOF
%make
#% make test
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall_perl
packlist=`find %{buildroot} -name .packlist`
[ -z "$packlist" ] && exit 1 || cat $packlist | \
sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \
sort -u > .packlist && rm $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}"
rm -f .packlist
%files -f .packlist
%defattr(-,root,root)
%changelog
* Mon Apr 17 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.86-2mamba
- rebuilt with perl 5.36.0
* Sun Jun 07 2020 Automatic Build System <autodist@mambasoft.it> 0.86-1mamba
- automatic update by autodist
* Tue Jul 30 2019 Automatic Build System <autodist@mambasoft.it> 0.83-1mamba
- automatic update by autodist
* Tue Mar 17 2015 Automatic Build System <autodist@mambasoft.it> 0.80-1mamba
- automatic update by autodist
* Fri Dec 12 2014 Automatic Build System <autodist@mambasoft.it> 0.78-1mamba
- automatic update by autodist
* Sat Sep 20 2014 Automatic Build System <autodist@mambasoft.it> 0.77-1mamba
- automatic update by autodist
* Sat Aug 09 2014 Automatic Build System <autodist@mambasoft.it> 0.67-1mamba
- automatic update by autodist
* Fri Jul 11 2014 Automatic Build System <autodist@mambasoft.it> 0.58-1mamba
- automatic update by autodist
* Mon May 26 2014 Automatic Build System <autodist@mambasoft.it> 0.55-1mamba
- automatic update by autodist
* Fri Apr 04 2014 Automatic Build System <autodist@mambasoft.it> 0.54-1mamba
- automatic update by autodist
* Thu May 09 2013 Automatic Build System <autodist@mambasoft.it> 0.53-1mamba
- automatic version update by autodist
* Fri Feb 06 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 0.45-1mamba
- automatic update by autodist
* Wed Nov 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.44-2mamba
- automatic rebuild by autodist
* Fri Nov 23 2007 Aleph0 <aleph0@openmamba.org> 0.44-1mamba
- package created by autospec