99 lines
3.0 KiB
RPMSpec
99 lines
3.0 KiB
RPMSpec
#
|
|
# spec file for package perl-File-Value
|
|
#
|
|
# 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-Value
|
|
Version: 1.02
|
|
Release: 0
|
|
Summary: Snag command and routines supporting files as values
|
|
Source: http://search.cpan.org/CPAN/authors/id/J/JA/JAK/File-Value-%{version}.tar.gz
|
|
Source100: README.md
|
|
Url: http://search.cpan.org/dist/File-Value
|
|
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(File::Copy)
|
|
BuildRequires: perl(Pod::Usage)
|
|
BuildRequires: perl(File::Glob)
|
|
BuildRequires: perl(File::Spec)
|
|
BuildRequires: perl(Fcntl)
|
|
Requires: perl(Getopt::Long)
|
|
Requires: perl(File::Copy)
|
|
Requires: perl(Pod::Usage)
|
|
Requires: perl(File::Glob)
|
|
Requires: perl(File::Spec)
|
|
Requires: perl(Fcntl)
|
|
%if 0%{?suse_version} >= 1120
|
|
BuildArch: noarch
|
|
%endif
|
|
|
|
%description
|
|
These are general purpose routines that support the treatment of a file's
|
|
contents or a file's name as a single data value.
|
|
|
|
%package -n snag
|
|
Summary: Command to reserve a previously unused file or directory version
|
|
Requires: %{name} = %{version}
|
|
Group: Productivity/File utilities
|
|
|
|
%description -n snag
|
|
The snag command provides a robust way to "capture without clobbering" a
|
|
specified filesystem node name or a version of that name.
|
|
|
|
Unlike the touch command, snag is guaranteed to fail if the node exists already
|
|
(exit status 1). Because it attempts to create the node first and tests for
|
|
existence afterwards, it is not susceptible to the race condition that arises
|
|
when these steps are reversed.
|
|
|
|
%prep
|
|
%setup -q -n "File-Value-%{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)
|
|
%doc Changes README
|
|
%dir %{perl_vendorlib}/File
|
|
%{perl_vendorlib}/File/Value.pm
|
|
%doc %{perl_man3dir}/File::Value.%{perl_man3ext}%{ext_man}
|
|
|
|
%files -n snag
|
|
%defattr(-,root,root)
|
|
%{_bindir}/snag
|
|
%doc %{_mandir}/man1/snag.1*
|
|
|
|
%changelog
|