perl-Curses/perl-Curses.spec

100 lines
3.4 KiB
RPMSpec

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Curses
Version: 1.41
Release: 1mamba
Summary: Curses - Terminal screen handling and optimization
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/modules/by-module/Curses/Curses-%{version}.tar.gz
License: GPL
Requires: perl >= %perl_major_ver
BuildRequires: perl-devel >= %perl_major_ver
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libncurses-devel
BuildRequires: libperl
BuildRequires: perl-devel
## AUTOBUILDREQ-END
%description
Curses is the interface between Perl and your system's curses(3) library.
For descriptions on the usage of a given function, variable, or constant, consult your system's documentation, as such information invariably varies (:-) between different curses(3) libraries and operating systems. This document describes the interface itself, and assumes that you already know how your system's curses(3) library works.
%prep
%setup -q -n Curses-%{version}
%build
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
%make %{?_smp_mflags}
%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
* Sun Aug 21 2022 Automatic Build System <autodist@mambasoft.it> 1.41-1mamba
- automatic version update by autodist
* Fri Aug 12 2022 Automatic Build System <autodist@mambasoft.it> 1.39-1mamba
- automatic version update by autodist
* Mon Jul 26 2021 Automatic Build System <autodist@mambasoft.it> 1.38-1mamba
- automatic version update by autodist
* Sat Oct 31 2020 Automatic Build System <autodist@mambasoft.it> 1.37-1mamba
- automatic update by autodist
* Thu Dec 07 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 1.36-1mamba
- update to 1.36
* Wed Nov 09 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.32-2mamba
- rebuilt with perl 5.24
* Tue Sep 09 2014 Automatic Build System <autodist@mambasoft.it> 1.32-1mamba
- automatic update by autodist
* Tue May 27 2014 Automatic Build System <autodist@mambasoft.it> 1.31-1mamba
- automatic update by autodist
* Sun Apr 13 2014 Automatic Build System <autodist@mambasoft.it> 1.29-1mamba
- automatic update by autodist
* Mon Nov 12 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.28-2mamba
- perl 5.16 mass rebuild
* Wed Jan 27 2010 Automatic Build System <autodist@mambasoft.it> 1.28-1mamba
- automatic update by autodist
* Mon Mar 02 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.27-1mamba
- automatic update by autodist
* Sat Jan 03 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.26-1mamba
- automatic update by autodist
* Tue Nov 04 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.23-2mamba
- automatic rebuild by autodist
* Wed Jul 02 2008 gil <puntogil@libero.it> 1.23-1mamba
- package created by autospec