package init
This commit is contained in:
parent
45d90580e1
commit
f0f762abae
BIN
Config-General-2.63.tar.gz
Normal file
BIN
Config-General-2.63.tar.gz
Normal file
Binary file not shown.
14
perl-Config-General-2.50-system-ixhash.patch
Normal file
14
perl-Config-General-2.50-system-ixhash.patch
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
diff -ur Config-General-2.61.org/t/run.t Config-General-2.61/t/run.t
|
||||||
|
--- Config-General-2.61.org/t/run.t 2016-04-18 06:57:15.000000000 -0600
|
||||||
|
+++ Config-General-2.61/t/run.t 2016-04-19 09:54:33.644572959 -0600
|
||||||
|
@@ -14,7 +14,9 @@
|
||||||
|
# ahem, we deliver the test code with a local copy of
|
||||||
|
# the Tie::IxHash module so we can do tests on sorted
|
||||||
|
# hashes without dependency to Tie::IxHash.
|
||||||
|
-use lib qw(t);
|
||||||
|
+#
|
||||||
|
+# ahem, in this rpm we don't (we want to test with the system installed one)
|
||||||
|
+#use lib qw(t);
|
||||||
|
use Tie::IxHash;
|
||||||
|
my @WARNINGS_FOUND;
|
||||||
|
BEGIN {
|
||||||
64
perl-Config-General.spec
Normal file
64
perl-Config-General.spec
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
Name: perl-Config-General
|
||||||
|
Version: 2.63
|
||||||
|
Release: 1
|
||||||
|
Summary: Generic configuration module for Perl
|
||||||
|
License: GPL+ or Artistic
|
||||||
|
URL: https://metacpan.org/release/Config-General
|
||||||
|
Source0: https://cpan.metacpan.org/authors/id/T/TL/TLINDEN/Config-General-%{version}.tar.gz
|
||||||
|
|
||||||
|
Patch0001: %{name}-2.50-system-ixhash.patch
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: coreutils glibc-common findutils make perl-interpreter perl-generators perl(ExtUtils::MakeMaker)
|
||||||
|
BuildRequires: perl(base) perl(Carp) perl(Carp::Heavy) perl(constant) perl(English) perl(Exporter) perl(File::Glob)
|
||||||
|
BuildRequires: perl(File::Spec::Functions) perl(FileHandle) perl(IO::File) perl(strict) perl(vars) perl(warnings)
|
||||||
|
BuildRequires: perl(Data::Dumper) perl(Test::More) perl(Tie::IxHash)
|
||||||
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||||
|
|
||||||
|
%description
|
||||||
|
This module opens a config file and parses its contents for
|
||||||
|
you. After parsing the module returns a hash structure which contains
|
||||||
|
the representation of the config file.
|
||||||
|
The format of config files supported by Config::General is inspired by
|
||||||
|
the well known Apache config format, in fact, this module is 100%
|
||||||
|
read-compatible with Apache config files, but you can also just use simple
|
||||||
|
name/value pairs in your config files.
|
||||||
|
In addition to the capabilities of an Apache config file it supports
|
||||||
|
some enhancements such as here-documents, C-style comments or
|
||||||
|
multiline options. It is also possible to save the config back to
|
||||||
|
disk, which makes the module a perfect backend for configuration
|
||||||
|
interfaces.
|
||||||
|
It is possible to use variables in config files and there exists also
|
||||||
|
support for object oriented access to the configuration.
|
||||||
|
|
||||||
|
%package_help
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n Config-General-%{version} -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
%check
|
||||||
|
make test
|
||||||
|
|
||||||
|
%install
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
||||||
|
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
|
||||||
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{perl_vendorlib}/Config/
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc Changelog README example.cfg
|
||||||
|
%{_mandir}/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Feb 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.63-1
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user