2011-01-21 19:32:49 +00:00
#
2014-03-18 07:56:08 +00:00
# spec file for package perl-Devel-CheckOS
2011-01-21 19:32:49 +00:00
#
2020-10-06 09:09:55 +00:00
# Copyright (c) 2020 SUSE LLC
2011-01-21 19:32:49 +00: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.
2020-02-17 16:55:01 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2011-01-21 19:32:49 +00:00
#
2014-03-18 07:56:08 +00:00
2011-01-21 19:32:49 +00:00
Name : perl-Devel-CheckOS
2020-10-06 09:09:55 +00:00
Version : 1.84
2014-03-18 07:56:08 +00:00
Release : 0
2015-04-15 16:45:18 +00:00
#Upstream: This software is free-as-in-speech software, and may be used, distributed, and modified under the terms of either the GNU General Public Licence version 2 or the Artistic Licence. It's up to you which one you use. The full text of the licences can be found in the files GPL2.txt and ARTISTIC.txt, respectively.
2011-01-21 19:32:49 +00:00
%define cpan_name Devel-CheckOS
2020-02-17 16:55:01 +00:00
Summary : Check what OS we're running on
License : GPL-2.0-only OR Artistic-1.0
2011-01-21 19:32:49 +00:00
Group : Development/Libraries/Perl
2020-10-06 09:09:55 +00:00
URL : https://metacpan.org/release/%{cpan_name}
2017-05-25 15:01:06 +00:00
Source0 : https://cpan.metacpan.org/authors/id/D/DC/DCANTRELL/%{cpan_name} -%{version} .tar.gz
2015-04-15 16:45:18 +00:00
Source1 : cpanspec.yml
2011-04-27 19:01:48 +00:00
BuildArch : noarch
BuildRoot : %{_tmppath} /%{name} -%{version} -build
BuildRequires : perl
BuildRequires : perl-macros
2011-01-21 19:32:49 +00:00
BuildRequires : perl(File::Find::Rule) >= 0.28
BuildRequires : perl(File::Temp) >= 0.19
2015-04-15 16:45:18 +00:00
BuildRequires : perl(Test::More) >= 0.88
2011-01-21 19:32:49 +00:00
Requires : perl(File::Find::Rule) >= 0.28
Requires : perl(File::Temp) >= 0.19
2015-04-15 16:45:18 +00:00
Requires : perl(Test::More) >= 0.88
2011-01-21 19:32:49 +00:00
%{perl_requires}
%description
A learned sage once wrote on IRC:
$^O is stupid and ugly, it wears its pants as a hat
Devel::CheckOS provides a more friendly interface to $^O, and also lets you
check for various OS " f a m i l i e s " such as " U n i x " , which includes things like
Linux, Solaris, AIX etc.
It spares perl the embarrassment of wearing its pants on its head by
covering them with a splendid Fedora.
%prep
%setup -q -n %{cpan_name} -%{version}
2020-02-17 16:55:01 +00:00
find . -type f ! -path " * / t / * " ! -name " * . p l " ! -path " * / b i n / * " ! -path " * / s c r i p t / * " ! -name " c o n f i g u r e " -print0 | xargs -0 chmod 644
2011-01-21 19:32:49 +00:00
%build
2020-02-17 16:55:01 +00:00
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
2011-01-21 19:32:49 +00:00
%check
2020-02-17 16:55:01 +00:00
make test
2011-01-21 19:32:49 +00:00
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
2011-04-27 19:01:48 +00:00
%defattr (-,root,root,755)
2017-05-25 15:01:06 +00:00
%doc CHANGELOG GPL2.txt README TODO
%license ARTISTIC.txt
2011-01-21 19:32:49 +00:00
%changelog