Accepting request 35006 from devel:languages:perl

checked in (request 35006)

OBS-URL: https://build.opensuse.org/request/show/35006
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Class-Accessor?expand=0&rev=11
This commit is contained in:
OBS User autobuild 2010-03-17 13:26:02 +00:00 committed by Git OBS Bridge
parent 2373b39ea3
commit f4e1803378
2 changed files with 5 additions and 16 deletions

View File

@ -1,11 +1,3 @@
-------------------------------------------------------------------
Mon Mar 8 22:35:22 UTC 2010 - chris@computersalat.de
- cleanup spec
o dep for perl-macros
o Provides
o Makefile.PL
-------------------------------------------------------------------
Wed Jan 13 16:40:29 CET 2010 - anicka@suse.cz

View File

@ -17,6 +17,7 @@
# norootforbuild
Name: perl-Class-Accessor
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
Summary: Automated accessor generation
@ -28,25 +29,21 @@ Url: http://search.cpan.org/dists/Class-Accessor
Source: %{cpan_name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
%if 0%{?suse_version} < 1120
BuildRequires: perl-macros
%endif
BuildRequires: perl(Sub::Name)
Requires: perl = %{perl_version}
Requires: perl(Carp)
Requires: perl(Sub::Name)
Provides: %{cpan_name}
Requires: perl = %{perl_version}
Requires: perl(Carp)
Requires: perl(Sub::Name)
%description
This module automatically generates accessor/mutators for your class.
Authors: Michael G Schwern <schwern@pobox.com>
%prep
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
%{__make} %{?_smp_mflags}
%check