Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:csbuild:Perl
perl-Path-Tiny
perl-Path-Tiny.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-Path-Tiny.spec of Package perl-Path-Tiny
# %define real_name Path-Tiny %define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib) %define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch) %define maketest 0 Name: perl-%{real_name} Summary: File path utility Version: 0.088 Release: 1 Group: Development/Libraries License: ASL 2.0 URL: http://search.cpan.org/dist/Path-Tiny/ Source0: http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/%{real_name}-%{version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: perl %if 0%{?suse_version} %if 0%{?suse_version} < 1300 BuildRequires: perl(ExtUtils::MakeMaker) %endif %else BuildRequires: perl(ExtUtils::MakeMaker) %endif # Module Runtime BuildRequires: perl(Carp) BuildRequires: perl(Config) BuildRequires: perl(Digest) %if 0%{?fedora_version} BuildRequires: perl-devel %endif %description This module attempts to provide a small, fast utility for working with file paths. It is friendlier to use than File::Spec and provides easy access to functions from several other core file handling modules. It doesn't attempt to be as full-featured as IO::All or Path::Class, nor does it try to work for anything except Unix-like and Win32 platforms. Even then, it might break if you try something particularly obscure or tortuous. All paths are forced to have Unix-style forward slashes. Stringifying the object gives you back the path (after some clean up). File input/output methods flock handles before reading or writing, as appropriate. The *_utf8 methods (slurp_utf8, lines_utf8, etc.) operate in raw mode without CRLF translation. %prep %setup -q -n %{real_name}-%{version} %build export CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL `%{__perl} -MExtUtils::MakeMaker -e ' print qq|PREFIX=%{buildroot}%{_prefix}| if \$ExtUtils::MakeMaker::VERSION =~ /5\.9[1-6]|6\.0[0-5]/ '` make %{?_smp_mflags} %install %if 0%{?suse_version} %perl_make_install %perl_process_packlist %else %{__make} DESTDIR=$RPM_BUILD_ROOT install_vendor find $RPM_BUILD_ROOT/usr -type f -name perllocal.pod |xargs -i rm -f {} find $RPM_BUILD_ROOT/usr -type d -depth -exec rmdir {} \; 2>/dev/null %endif find %{buildroot} -name "perllocal.pod" -o -name ".packlist" -o -name "*.bs" |xargs -i rm -f {} rm -f %{buildroot}/var/adm/perl-modules/%{name} # # %{__make} pure_install DESTDIR=%{buildroot} %check %if %maketest %{__make} test %endif %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %files %defattr(-, root, root) %doc Changes CONTRIBUTING.mkdn README LICENSE %{perl_vendorlib}/Path/ %{_mandir}/man3/Path::Tiny.3* %changelog * Thu Apr 21 2016 Holger Manthey <holger.manthey@bertelsmann.de> - Initial package.
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