8
0

Accepting request 42416 from home:computersalat:devel:perl

Copy from home:computersalat:devel:perl/perl-Config-Simple via accept of submit request 42416 revision 3.
Request was accepted with message:
self accept

OBS-URL: https://build.opensuse.org/request/show/42416
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Config-Simple?expand=0&rev=2
This commit is contained in:
Christian Wittmer
2010-07-02 13:58:05 +00:00
committed by Git OBS Bridge
parent b808e8a8c5
commit beb0bca958
2 changed files with 58 additions and 23 deletions

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Jun 22 14:56:47 UTC 2010 - chris@computersalat.de
- fix build for <= 1120
o no auto dir include
- rework spec with cpanspec
-------------------------------------------------------------------
Mon May 3 12:26:22 UTC 2010 - lars@linux-schulserver.de

View File

@@ -1,21 +1,39 @@
#
# spec file for package perl-Config-Simple
# spec file for package perl-Config-Simple (Version 4.59)
#
# Copyright (c) 2010 SUSE LINUX Products 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/
#
# norootforbuild
Name: perl-Config-Simple
%define cpan_name %( %{__sed} -e 's,perl-,,' <<< %{name} )
Summary: Simple configuration file class
Url: http://search.cpan.org/perldoc?Config::Simple
Group: Development/Libraries/Perl
License: Artistic License
Version: 4.59
Release: 1
Source: %{cpan_name}-%{version}.tar.bz2
BuildRequires: perl-macros
Requires: perl = %{perl_version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Name: perl-Config-Simple
%define cpan_name Config-Simple
Summary: Simple configuration file class
Version: 4.59
Release: 1
License: GPL+, Artistic License
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Config-Simple/
#Source: http://www.cpan.org/modules/by-module/Config/Config-Simple-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.bz2
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
%if 0%{?suse_version} < 1120
BuildRequires: perl-macros
%endif
Requires: perl = %{perl_version}
%description
Reading and writing configuration files is one of the most frequent tasks of
@@ -32,25 +50,35 @@ Author:
%prep
%setup -n %{cpan_name}-%{version}
%setup -q -n %{cpan_name}-%{version}
# rpmlint: executable-docs, script-without-shebang
chmod 644 Changes README Simple.pm
%build
perl Makefile.PL
make %{?jobs:-j%jobs}
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
make test
%{__make} test
%install
%perl_make_install
%perl_process_packlist
# do not perl_process_packlist (noarch)
# remove .packlist file
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
# remove perllocal.pod file
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
%if 0%{?suse_version} <= 1120
# remove auto dir
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorlib/auto
%endif
%perl_gen_filelist
%clean
rm -rf %{buildroot}
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
%defattr(-, root, root)
%doc Changes README MANIFEST
%files -f %{name}.files
%defattr(-,root,root,-)
%doc Changes README
%changelog
%changelog