forked from pool/perl-Config-Simple
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:
committed by
Git OBS Bridge
parent
b808e8a8c5
commit
beb0bca958
@@ -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
|
Mon May 3 12:26:22 UTC 2010 - lars@linux-schulserver.de
|
||||||
|
|
||||||
|
@@ -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
|
# norootforbuild
|
||||||
|
|
||||||
Name: perl-Config-Simple
|
Name: perl-Config-Simple
|
||||||
%define cpan_name %( %{__sed} -e 's,perl-,,' <<< %{name} )
|
%define cpan_name Config-Simple
|
||||||
Summary: Simple configuration file class
|
Summary: Simple configuration file class
|
||||||
Url: http://search.cpan.org/perldoc?Config::Simple
|
|
||||||
Group: Development/Libraries/Perl
|
|
||||||
License: Artistic License
|
|
||||||
Version: 4.59
|
Version: 4.59
|
||||||
Release: 1
|
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
|
Source: %{cpan_name}-%{version}.tar.bz2
|
||||||
BuildRequires: perl-macros
|
BuildArch: noarch
|
||||||
Requires: perl = %{perl_version}
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildRequires: perl
|
||||||
|
%if 0%{?suse_version} < 1120
|
||||||
|
BuildRequires: perl-macros
|
||||||
|
%endif
|
||||||
|
Requires: perl = %{perl_version}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Reading and writing configuration files is one of the most frequent tasks of
|
Reading and writing configuration files is one of the most frequent tasks of
|
||||||
@@ -32,25 +50,35 @@ Author:
|
|||||||
|
|
||||||
|
|
||||||
%prep
|
%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
|
%build
|
||||||
perl Makefile.PL
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||||
make %{?jobs:-j%jobs}
|
%{__make} %{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make test
|
%{__make} test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%perl_make_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
|
%perl_gen_filelist
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
%{__rm} -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
%defattr(-, root, root)
|
%defattr(-,root,root,-)
|
||||||
%doc Changes README MANIFEST
|
%doc Changes README
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user