2007-05-22 04:40:01 +02:00
|
|
|
#
|
2011-11-11 12:17:51 +01:00
|
|
|
# spec file for package perl-File-HomeDir
|
2007-05-22 04:40:01 +02:00
|
|
|
#
|
2017-09-23 17:10:50 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-05-22 04:40:01 +02:00
|
|
|
#
|
2009-01-21 17:55:26 +01:00
|
|
|
# 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.
|
|
|
|
|
2007-05-22 04:40:01 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-11-11 12:17:51 +01:00
|
|
|
|
2007-05-22 04:40:01 +02:00
|
|
|
Name: perl-File-HomeDir
|
2017-09-23 17:10:50 +02:00
|
|
|
Version: 1.002
|
2011-12-19 16:37:02 +01:00
|
|
|
Release: 0
|
2011-03-31 13:48:46 +02:00
|
|
|
%define cpan_name File-HomeDir
|
|
|
|
Summary: Find your home and other directories on any platform
|
2012-02-21 10:08:15 +01:00
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
2011-03-31 13:48:46 +02:00
|
|
|
Group: Development/Libraries/Perl
|
2011-12-19 16:37:02 +01:00
|
|
|
Url: http://search.cpan.org/dist/File-HomeDir/
|
2017-09-23 17:10:50 +02:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/R/RE/REHSACK/%{cpan_name}-%{version}.tar.gz
|
|
|
|
Source1: cpanspec.yml
|
2010-07-23 21:48:20 +02:00
|
|
|
BuildArch: noarch
|
2007-05-22 04:40:01 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-07-23 21:48:20 +02:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2017-09-23 17:10:50 +02:00
|
|
|
BuildRequires: perl(File::Path) >= 2.010000
|
2011-03-31 13:48:46 +02:00
|
|
|
BuildRequires: perl(File::Temp) >= 0.19
|
|
|
|
BuildRequires: perl(File::Which) >= 0.05
|
2017-09-23 17:10:50 +02:00
|
|
|
BuildRequires: perl(Test::More) >= 0.9
|
|
|
|
Requires: perl(File::Path) >= 2.010000
|
2011-03-31 13:48:46 +02:00
|
|
|
Requires: perl(File::Temp) >= 0.19
|
|
|
|
Requires: perl(File::Which) >= 0.05
|
|
|
|
%{perl_requires}
|
2007-05-22 04:40:01 +02:00
|
|
|
|
|
|
|
%description
|
2011-03-31 13:48:46 +02:00
|
|
|
*File::HomeDir* is a module for locating the directories that are "owned"
|
|
|
|
by a user (typicaly your user) and to solve the various issues that arise
|
|
|
|
trying to find them consistently across a wide variety of platforms.
|
|
|
|
|
|
|
|
The end result is a single API that can find your resources on any
|
|
|
|
platform, making it relatively trivial to create Perl software that works
|
|
|
|
elegantly and correctly no matter where you run it.
|
2007-05-22 04:40:01 +02:00
|
|
|
|
2011-03-31 13:48:46 +02:00
|
|
|
This module provides two main interfaces.
|
2007-05-22 04:40:01 +02:00
|
|
|
|
2017-09-23 17:10:50 +02:00
|
|
|
The first is a modern File::Spec-style interface with a consistent OO API
|
|
|
|
and different implementation modules to support various platforms. You are
|
|
|
|
*strongly* recommended to use this interface.
|
2011-03-31 13:48:46 +02:00
|
|
|
|
|
|
|
The second interface is for legacy support of the original 0.07 interface
|
|
|
|
that exported a 'home()' function by default and tied the '%~' variable.
|
|
|
|
|
|
|
|
It is generally not recommended that you use this interface, but due to
|
|
|
|
back-compatibility reasons they will remain supported until at least 2010.
|
|
|
|
|
|
|
|
The '%~' interface has been deprecated. Documentation was removed in 2009,
|
2013-06-04 13:32:32 +02:00
|
|
|
Unit test were removed in 2011, usage will issue warnings from 2012, and
|
2011-03-31 13:48:46 +02:00
|
|
|
the interface will be removed entirely in 2015 (in line with the general
|
|
|
|
Perl toolchain convention of a 10 year support period for legacy APIs that
|
|
|
|
are potentially or actually in common use).
|
|
|
|
|
2007-05-22 04:40:01 +02:00
|
|
|
%prep
|
2010-07-23 21:48:20 +02:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2007-05-22 04:40:01 +02:00
|
|
|
|
|
|
|
%build
|
2010-07-23 21:48:20 +02:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
2007-10-19 04:41:16 +02:00
|
|
|
|
|
|
|
%check
|
2010-07-23 21:48:20 +02:00
|
|
|
%{__make} test
|
2007-05-22 04:40:01 +02:00
|
|
|
|
|
|
|
%install
|
2007-10-19 04:41:16 +02:00
|
|
|
%perl_make_install
|
2011-03-31 13:48:46 +02:00
|
|
|
%perl_process_packlist
|
2010-07-23 21:48:20 +02:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2012-02-21 10:08:15 +01:00
|
|
|
%defattr(-,root,root,755)
|
2017-09-23 17:10:50 +02:00
|
|
|
%doc Changes README.md
|
|
|
|
%license LICENSE
|
2009-01-21 17:55:26 +01:00
|
|
|
|
2007-05-22 04:40:01 +02:00
|
|
|
%changelog
|