2011-04-04 11:18:56 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Module-Refresh
|
|
|
|
#
|
2012-02-29 15:26:35 +00:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-04-04 11:19:12 +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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2011-04-04 11:18:56 +00:00
|
|
|
|
|
|
|
|
2011-04-04 11:19:12 +00:00
|
|
|
Name: perl-Module-Refresh
|
2011-11-18 14:47:18 +00:00
|
|
|
Version: 0.17
|
2012-02-29 15:26:35 +00:00
|
|
|
Release: 0
|
2011-11-18 14:47:18 +00:00
|
|
|
%define cpan_name Module-Refresh
|
|
|
|
Summary: Refresh INC files when updated on disk
|
2012-02-29 15:26:35 +00:00
|
|
|
License: GPL-1.0+ or Artistic-1.0
|
2011-11-18 14:47:18 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2012-02-29 15:26:35 +00:00
|
|
|
Url: http://search.cpan.org/dist/Module-Refresh/
|
2011-11-18 14:47:18 +00:00
|
|
|
Source: http://www.cpan.org/authors/id/A/AL/ALEXMV/%{cpan_name}-%{version}.tar.gz
|
2012-02-29 15:26:35 +00:00
|
|
|
%if 0%{?suse_version} < 1120
|
|
|
|
Patch0: old_test_more.patch
|
|
|
|
%endif
|
2011-11-18 14:47:18 +00:00
|
|
|
BuildArch: noarch
|
2011-04-04 11:19:12 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-11-18 14:47:18 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(File::Temp) >= 0.19
|
|
|
|
BuildRequires: perl(Path::Class)
|
|
|
|
#BuildRequires: perl(Foo)
|
|
|
|
#BuildRequires: perl(inc::Module::Install)
|
|
|
|
#BuildRequires: perl(JSON)
|
|
|
|
#BuildRequires: perl(LWP::Simple)
|
|
|
|
#BuildRequires: perl(Module::Build)
|
|
|
|
#BuildRequires: perl(Module::Install::Base)
|
|
|
|
#BuildRequires: perl(Module::Refresh)
|
|
|
|
#BuildRequires: perl(Parse::CPAN::Meta)
|
|
|
|
#BuildRequires: perl(YAML::Tiny)
|
2011-04-04 11:18:56 +00:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
2011-11-18 14:47:18 +00:00
|
|
|
This module is a generalization of the functionality provided by the
|
|
|
|
Apache::StatINC manpage and the Apache::Reload manpage. It's designed to
|
|
|
|
make it easy to do simple iterative development when working in a
|
|
|
|
persistent environment.
|
2011-04-04 11:18:56 +00:00
|
|
|
|
|
|
|
It does not require mod_perl.
|
|
|
|
|
|
|
|
%prep
|
2011-11-18 14:47:18 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2012-02-29 15:26:35 +00:00
|
|
|
%if 0%{?suse_version} < 1120
|
|
|
|
%patch0
|
2012-02-29 15:31:12 +00:00
|
|
|
rm -f t/clear_symtable.t
|
2012-02-29 15:26:35 +00:00
|
|
|
%endif
|
2011-11-18 14:47:18 +00:00
|
|
|
find . -type f -print0 | xargs -0 chmod 644
|
2011-04-04 11:18:56 +00:00
|
|
|
|
|
|
|
%build
|
2011-11-18 14:47:18 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
2011-04-04 11:18:56 +00:00
|
|
|
|
|
|
|
%check
|
2011-11-18 14:47:18 +00:00
|
|
|
%{__make} test
|
2011-04-04 11:18:56 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
2011-11-18 14:47:18 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%doc Changes
|
2011-04-04 11:18:56 +00:00
|
|
|
|
2011-04-04 11:19:12 +00:00
|
|
|
%changelog
|