Files
perl-File-Pairtree/perl-File-Pairtree.spec

101 lines
3.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-File-Pairtree
#
# Copyright (c) 2011 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-Pairtree
Version: 1.01
Release: 0
Summary: Pt command and routines to manage pairtrees
Source: http://search.cpan.org/CPAN/authors/id/J/JA/JAK/File-Pairtree-%{version}.tar.gz
Url: http://search.cpan.org/dist/File-Pairtree
Group: Development/Libraries/Perl
License: GNU General Public License version 2 or later or Artistic (GPLv2+ or Artistic)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl-macros
BuildRequires: make
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Getopt::Long)
BuildRequires: perl(Pod::Usage)
BuildRequires: perl(File::Glob)
BuildRequires: perl(Carp)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Value) >= 1.01
BuildRequires: perl(File::Namaste) >= 1.00
BuildRequires: perl(File::Path)
BuildRequires: perl(File::OM) >= 0.21
Requires: perl(Getopt::Long)
Requires: perl(Pod::Usage)
Requires: perl(File::Glob)
Requires: perl(Carp)
Requires: perl(File::Find)
Requires: perl(File::Value) >= 1.01
Requires: perl(File::Namaste) >= 1.00
Requires: perl(File::Path)
Requires: perl(File::OM) >= 0.21
%if 0%{?suse_version} >= 1120
BuildArch: noarch
%endif
%description
Perl module to work with pair trees.
%package -n pt
Summary: Pt command and routines to manage pairtrees
Requires: %{name} = %{version}
Group: Productivity/File utilities
%description -n pt
The pt utility introduces commands that can be used to create, delete, modify,
and report on a pairtree. When not made explicit via an argument (see the first
two forms above), the pairtree in question is assumed to reside in a
pairtree_root/ directory descending from the current directory or from a
directory specified with -d.
%prep
%setup -q -n "File-Pairtree-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL
%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?_smp_flags}
%install
%perl_make_install
%perl_process_packlist
%check
%__make test
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%dir %{perl_vendorlib}/File
%{perl_vendorlib}/File/Pairtree.pm
%doc %{perl_man3dir}/File::Pairtree.%{perl_man3ext}%{ext_man}
%files -n pt
%defattr(-,root,root)
%doc README
%{_bindir}/pt
%doc %{_mandir}/man1/pt.1*
%changelog