2010-05-03 12:26:51 +00:00
|
|
|
#
|
2010-07-02 13:58:05 +00:00
|
|
|
# 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/
|
2010-05-03 12:26:51 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2010-07-02 13:58:05 +00:00
|
|
|
Name: perl-Config-Simple
|
2010-07-31 08:04:57 +00:00
|
|
|
%define cpan_name %( %{__sed} -e 's,perl-,,' <<< %{name} )
|
2010-07-02 13:58:05 +00:00
|
|
|
Summary: Simple configuration file class
|
2010-07-31 08:04:57 +00:00
|
|
|
Url: http://search.cpan.org/perldoc?Config::Simple
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
License: Artistic License
|
2010-07-02 13:58:05 +00:00
|
|
|
Version: 4.59
|
|
|
|
Release: 1
|
|
|
|
Source: %{cpan_name}-%{version}.tar.bz2
|
|
|
|
BuildArch: noarch
|
2010-07-31 08:04:57 +00:00
|
|
|
Requires: perl = %{perl_version}
|
|
|
|
Requires: perl(AutoLoader)
|
2010-07-02 13:58:05 +00:00
|
|
|
BuildRequires: perl
|
2010-07-31 08:04:57 +00:00
|
|
|
BuildRequires: perl-macros
|
2010-07-02 13:58:05 +00:00
|
|
|
%if 0%{?suse_version} < 1120
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
%endif
|
2010-07-31 08:04:57 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-05-03 12:26:51 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Reading and writing configuration files is one of the most frequent tasks of
|
|
|
|
any software design. Config::Simple is the library that helps you with it.
|
|
|
|
|
|
|
|
Config::Simple is a class representing configuration file object. It supports
|
|
|
|
several configuration file syntax and tries to identify the file syntax
|
|
|
|
automatically. Library supports parsing, updating and creating configuration
|
|
|
|
files.
|
|
|
|
|
|
|
|
Author:
|
|
|
|
-------
|
|
|
|
Sherzod B. Ruzmetov
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2010-07-02 13:58:05 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
# rpmlint: executable-docs, script-without-shebang
|
|
|
|
chmod 644 Changes README Simple.pm
|
2010-05-03 12:26:51 +00:00
|
|
|
|
|
|
|
%build
|
2010-07-02 13:58:05 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
2010-05-03 12:26:51 +00:00
|
|
|
|
|
|
|
%check
|
2010-07-02 13:58:05 +00:00
|
|
|
%{__make} test
|
2010-05-03 12:26:51 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
2010-07-02 13:58:05 +00:00
|
|
|
# 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
|
2010-05-03 12:26:51 +00:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%clean
|
2010-07-02 13:58:05 +00:00
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
2010-05-03 12:26:51 +00:00
|
|
|
|
2010-07-02 13:58:05 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc Changes README
|
2010-05-03 12:26:51 +00:00
|
|
|
|
2010-07-02 13:58:05 +00:00
|
|
|
%changelog
|