Files
perl-Apache-Test/perl-Apache-Test.spec
Dirk Stoecker c28c8e004f Accepting request 354825 from home:bmwiedemann:branches:devel:languages:perl
- add cpanspec yaml
- fix license

- update to 1.39

- Require netcfg to make tests pass

this drops some old requires that are part of perl-base or perl

OBS-URL: https://build.opensuse.org/request/show/354825
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Apache-Test?expand=0&rev=5
2016-01-21 11:07:07 +00:00

66 lines
1.8 KiB
RPMSpec

#
# spec file for package perl-Apache-Test
#
# Copyright (c) 2016 SUSE LINUX 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-Apache-Test
Version: 1.39
Release: 0
#Upstream: CHECK(GPL-1.0+ or Artistic-1.0)
%define cpan_name Apache-Test
Summary: Test.pm wrapper with helpers for testing Apache
License: Apache-2.0
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Apache-Test/
Source0: http://www.cpan.org/authors/id/S/SH/SHAY/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
Patch0: fix-provides.diff
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
%{perl_requires}
# MANUAL BEGIN
BuildRequires: netcfg
Requires: netcfg
# MANUAL END
%description
*Apache::Test* is a wrapper around the standard 'Test.pm' with helpers for
testing an Apache server.
%prep
%setup -q -n %{cpan_name}-%{version}
%patch0 -p1
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes CONTRIBUTORS LICENSE README SUPPORT ToDo
%changelog