- switch to perl_requires macro

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Class-Inspector?expand=0&rev=20
This commit is contained in:
Stephan Kulow 2011-03-15 08:54:27 +00:00 committed by Git OBS Bridge
parent ee6d718d31
commit 40bdf9b88c
4 changed files with 33 additions and 28 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d93c0234ced28ab8f896b52aea23b70a2cafa3825508a70b9db6b19aff1b2cd3
size 30761

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7917c2c5966b51130d3addb8dbeb6f501ea6df30ad169acccc5f15039a13d18d
size 38462

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Mar 15 08:46:46 UTC 2011 - coolo@novell.com
- update to 0.25:
- Updating to Module::Install::DSL 1.00
- Updating copyright year
- regenerate spec file
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Dec 1 06:55:33 UTC 2010 - coolo@novell.com Wed Dec 1 06:55:33 UTC 2010 - coolo@novell.com

View File

@ -1,5 +1,5 @@
# #
# spec file for package perl-Class-Inspector (Version 1.24) # spec file for package perl-Class-Inspector (Version 1.25)
# #
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
@ -15,39 +15,36 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
Name: perl-Class-Inspector Name: perl-Class-Inspector
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' ) Version: 1.25
Summary: Get Information About a Loaded Class Release: 1
Version: 1.24 License: GPL+ or Artistic
Release: 8 %define cpan_name Class-Inspector
License: Artistic ; GPLv2+ Summary: Get information about a class and its structure
Url: http://search.cpan.org/dist/Class-Inspector/
Group: Development/Libraries/Perl Group: Development/Libraries/Perl
Url: http://search.cpan.org/~adamk/Class-Inspector #Source: http://www.cpan.org/authors/id/A/AD/ADAMK/Class-Inspector-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.bz2 Source: %{cpan_name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl(File::Spec) >= 0.80
%{perl_requires}
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(File::Spec) >= 0.80 Requires: perl(File::Spec) >= 0.80
BuildRequires: perl(Test::More) >= 0.47 BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl(Pod::Escapes) BuildArch: noarch
BuildRequires: perl(Test::Pod) %{perl_requires}
%description %description
Class::Inspector allows you to get information about a loaded class. Class::Inspector allows you to get information about a loaded class. Most
Most or all of this information can be found in other ways, but they or all of this information can be found in other ways, but they aren't
are not always very conveniet, and usually involve a relatively high always very friendly, and usually involve a relatively high level of Perl
level of Perl wizardry, or strange and unusual looking code. wizardry, or strange and unusual looking code. Class::Inspector attempts to
Class-Inspector attempts to provide an easier, more friendly interface provide an easier, more friendly interface to this information.
to this information.
%prep %prep
%setup -n %{cpan_name}-%{version} %setup -q -n %{cpan_name}-%{version}
%build %build
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" %{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags} %{__make} %{?_smp_mflags}
%check %check
@ -62,7 +59,7 @@ perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
%{__rm} -rf %{buildroot} %{__rm} -rf %{buildroot}
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root) %defattr(644,root,root,755)
%doc Changes LICENSE README %doc Changes LICENSE README
%changelog %changelog