Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:lafenghu
perl-File-Remove
perl-File-Remove.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-File-Remove.spec of Package perl-File-Remove
# # spec file for package perl-File-Remove # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: perl-File-Remove Version: 1.51 Release: 0 %define cpan_name File-Remove Summary: Remove files and directories License: GPL-1.0+ or Artistic-1.0 Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/File-Remove/ Source: http://www.cpan.org/authors/id/A/AD/ADAMK/File-Remove-%{version}.tar.gz BuildRequires: perl(Cwd) >= 3.27.01 BuildRequires: perl(File::Spec) >= 3.27.01 %if 0%{?suse_version} <= 1110 BuildRequires: perl-PathTools Requires: perl-PathTools %endif BuildRequires: perl BuildRequires: perl-macros Requires: perl(Cwd) >= 3.27.01 Requires: perl(File::Spec) >= 3.27.01 BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %{perl_requires} %description *File::Remove::remove* removes files and directories. It acts like */bin/rm*, for the most part. Although 'unlink' can be given a list of files, it will not remove directories; this module remedies that. It also accepts wildcards, * and ?, as arguments for filenames. *File::Remove::trash* accepts the same arguments as *remove*, with the addition of an optional, infrequently used "other platforms" hashref. %prep %setup -q -n %{cpan_name}-%{version} %if 0%{?suse_version} <= 1110 for i in `find lib t -type f` ; do sed -i -e "s@^\s*use\s\s*File::Spec@use lib '%{perl_vendorlib}';\nuse File::Spec@" $i sed -i -e "s@^\s*use\s\s*Test::More@use lib '%{perl_vendorlib}';\nuse Test::More@" $i done %endif %build %{__perl} Makefile.PL INSTALLDIRS=vendor %{__make} %{?_smp_mflags} %check %{__make} test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %clean %{__rm} -rf %{buildroot} %files -f %{name}.files %defattr(644,root,root,755) %doc Changes LICENSE README %changelog
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