Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:jpetermp
perl-Lingua-EN-Inflect
perl-Lingua-EN-Inflect.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-Lingua-EN-Inflect.spec of Package perl-Lingua-EN-Inflect
%define pkgname Lingua-EN-Inflect %define filelist %{pkgname}-%{version}-filelist %define NVR %{pkgname}-%{version}-%{release} %define maketest 1 Name: perl-Lingua-EN-Inflect Summary: Lingua-EN-Inflect - Perl module Version: 1.89 Release: 0.3 License: GPL+ or Artistic Group: Applications/CPAN Url: http://search.cpan.org/dist/%{pkgname}/ Buildroot: %{_tmppath}/%{name}-%{version}-build Buildarch: noarch Requires: perl-base = %{perl_version} Source: http://search.cpan.org//CPAN/authors/id/D/DC/DCONWAY/Lingua-EN-Inflect-1.89.tar.gz %description The exportable subroutines of Lingua::EN::Inflect provide plural inflections and "a"/"an" selection for English words. %prep %setup -q -n %{pkgname}-%{version} chmod -R u+w %{_builddir}/%{pkgname}-%{version} chmod a-x %{_builddir}/%{pkgname}-%{version}/* chmod a+X %{_builddir}/%{pkgname}-%{version}/* %build grep -rsl '^#!.*perl' . | grep -v '.bak$' |xargs --no-run-if-empty \ %__perl -MExtUtils::MakeMaker -e 'MY->fixin(@ARGV)' CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL %{__make} %if %{?maketest:1}%{!?maketest:0} %check %{__make} test %endif %install %{__make} install_vendor `%{__perl} -MExtUtils::MakeMaker -e ' print \$ExtUtils::MakeMaker::VERSION <= 6.05 ? qq|PREFIX=%{buildroot}%{_prefix}| : qq|DESTDIR=%{buildroot}| '` cmd=/usr/share/spec-helper/compress_files [ -x $cmd ] || cmd=/usr/lib/rpm/brp-compress [ -x $cmd ] && $cmd # SuSE Linux if [ -e /etc/SuSE-release -o -e /etc/UnitedLinux-release ] then %{__mkdir_p} %{buildroot}/var/adm/perl-modules %{__cat} `find %{buildroot} -name "perllocal.pod"` \ | %{__sed} -e s+%{buildroot}++g \ > %{buildroot}/var/adm/perl-modules/%{name} fi # remove special files find %{buildroot} -name "perllocal.pod" \ -o -name ".packlist" \ -o -name "*.bs" \ |xargs -i rm -f {} # no empty directories find %{buildroot}%{_prefix} \ -type d -depth \ -exec rmdir {} \; 2>/dev/null %{__perl} -MFile::Find -le ' find({ wanted => \&wanted, no_chdir => 1}, "%{buildroot}"); print "%doc Changes README"; for my $x (sort @dirs, @files) { push @ret, $x unless indirs($x); } print join "\n", sort @ret; sub wanted { return if /auto$/; return if /var$/; return if /adm$/; return if /perl-modules$/; local $_ = $File::Find::name; my $f = $_; s|^\Q%{buildroot}\E||; return unless length; return $files[@files] = $_ if -f $f; $d = $_; /\Q$d\E/ && return for reverse sort @INC; $d =~ /\Q$_\E/ && return for qw|/etc %_prefix/man %_prefix/bin %_prefix/share|; $dirs[@dirs] = $_; } sub indirs { my $x = shift; $x =~ /^\Q$_\E\// && $x ne $_ && return 1 for @dirs; } ' > %filelist [ -z %filelist ] && { echo "ERROR: empty %files listing" exit -1 } %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %files -f %filelist %defattr(-,root,root) %changelog * Sat Sep 26 2009 Peter Pettersson <peterpet@algonet.se> - 1.89 - Initial build.
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor