84 lines
2.7 KiB
RPMSpec
84 lines
2.7 KiB
RPMSpec
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
Name: perl-Curses
|
|
Version: 1.31
|
|
Release: 1mamba
|
|
Summary: Curses - Terminal screen handling and optimization
|
|
Group: System/Libraries/Perl
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Automatic Build System <autodist@mambasoft.it>
|
|
URL: http://www.cpan.org
|
|
Source: http://search.cpan.org/CPAN/authors/id/G/GI/GIRAFFED/Curses-%{version}.tgz
|
|
License: GPL
|
|
Requires: perl >= %perl_major_ver
|
|
BuildRequires: perl-devel >= %perl_major_ver
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libncurses-devel
|
|
BuildRequires: perl-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%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
|
|
* 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
|