perl-Quota/perl-Quota.spec

86 lines
2.8 KiB
RPMSpec
Raw Permalink Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Quota
Version: 1.7.2
Release: 1mamba
Summary: Quota :: Perl interface to file system quotas
Group: Development/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
Source: http://www.cpan.org/authors/id/T/TO/TOMZO/Quota-%{version}.tar.gz
URL: http://www.cpan.org
License: GPL
BuildRequires: perl-devel >= %perl_major_ver
Requires: perl >= %perl_major_ver
BuildRoot: %{_tmppath}/perl-root
%description
The Quota module provides access to file system quotas.
The quotactl system call or ioctl is used to query or set quotas on the local host, or queries are submitted via RPC to a remote host.
Mount tables can be parsed with getmntent and paths can be translated to device files (or whatever the actual quotactl implementations needs as argument) of the according file system.
%prep
%setup -q -n Quota-%{version}
%build
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
%make
#tests disabled because it needs a filesystem with quotas on
#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
* Sat May 30 2015 Automatic Build System <autodist@mambasoft.it> 1.7.2-1mamba
- automatic update by autodist
* Wed Oct 09 2013 Automatic Build System <autodist@mambasoft.it> 1.7.1-1mamba
- automatic update by autodist
* Mon Aug 19 2013 Automatic Build System <autodist@mambasoft.it> 1.7.0-1mamba
- automatic update by autodist
* Wed Apr 25 2012 Automatic Build System <autodist@mambasoft.it> 1.6.7-1mamba
- automatic version update by autodist
* Sat Jun 18 2011 Automatic Build System <autodist@mambasoft.it> 1.6.6-1mamba
- automatic update by autodist
* Wed Jan 05 2011 Automatic Build System <autodist@mambasoft.it> 1.6.5-1mamba
- automatic update by autodist
* Sun Jan 17 2010 Automatic Build System <autodist@mambasoft.it> 1.6.4-1mamba
- automatic update by autodist
* Fri Feb 06 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.3-1mamba
- automatic update by autodist
* Wed Nov 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5.1-2mamba
- automatic rebuild by autodist
* Tue Sep 18 2007 Aleph0 <aleph0@openmamba.org> 1.5.1-1mamba
- update to 1.5.1
* Thu May 06 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.10-1qilnx
- first build