forked from pool/perl-Config-GitLike
- updated to 1.08
* Fix loading of user_file, broken in dcdd01f, due to unexpanded ~ (alexmv, clkao@clkao.org) OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Config-GitLike?expand=0&rev=9
This commit is contained in:
committed by
Git OBS Bridge
parent
75ac8cfb95
commit
46e31da30e
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:42a6cc215e49ea9a8fcc10721e33721c7bb5fca9e56c6bc8f456466e8abb168f
|
|
||||||
size 45112
|
|
3
Config-GitLike-1.08.tar.gz
Normal file
3
Config-GitLike-1.08.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:68c2b342350ca0dce39b0685e4a4c89d080e19d9370ebc44931c481f42bf9b52
|
||||||
|
size 45201
|
@@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Feb 27 08:47:27 UTC 2012 - coolo@suse.com
|
||||||
|
|
||||||
|
- updated to 1.08
|
||||||
|
* Fix loading of user_file, broken in dcdd01f, due to unexpanded ~
|
||||||
|
(alexmv, clkao@clkao.org)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Dec 21 11:34:50 UTC 2011 - coolo@suse.com
|
Wed Dec 21 11:34:50 UTC 2011 - coolo@suse.com
|
||||||
|
|
||||||
|
@@ -1,8 +1,7 @@
|
|||||||
# vim: set sw=4 ts=4 et nu:
|
|
||||||
#
|
#
|
||||||
# spec file for package perl-Config-GitLike
|
# spec file for package perl-Config-GitLike
|
||||||
#
|
#
|
||||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -15,60 +14,88 @@
|
|||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: perl-Config-GitLike
|
Name: perl-Config-GitLike
|
||||||
Version: 1.07
|
Version: 1.08
|
||||||
Release: 0
|
Release: 0
|
||||||
|
%define cpan_name Config-GitLike
|
||||||
Summary: Git-compatible config file parsing
|
Summary: Git-compatible config file parsing
|
||||||
License: Artistic-1.0 or GPL-1.0+
|
License: Artistic-1.0 or GPL-1.0+
|
||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
Source: http://search.cpan.org/CPAN/authors/id/A/AL/ALEXMV/Config-GitLike-%{version}.tar.gz
|
Url: http://search.cpan.org/dist/Config-GitLike/
|
||||||
Url: http://search.cpan.org/dist/Config-GitLike
|
Source: http://www.cpan.org/authors/id/A/AL/ALEXMV/%{cpan_name}-%{version}.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%{perl_requires}
|
|
||||||
BuildRequires: make
|
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
BuildRequires: perl(Any::Moose)
|
BuildRequires: perl(Any::Moose)
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
|
|
||||||
BuildRequires: perl(File::Spec)
|
|
||||||
BuildRequires: perl(File::Temp)
|
|
||||||
BuildRequires: perl(Test::Exception)
|
BuildRequires: perl(Test::Exception)
|
||||||
BuildRequires: perl(Test::More)
|
#BuildRequires: perl(Config::GitLike)
|
||||||
|
#BuildRequires: perl(inc::Module::Install)
|
||||||
|
#BuildRequires: perl(JSON)
|
||||||
|
#BuildRequires: perl(LWP::Simple)
|
||||||
|
#BuildRequires: perl(Module::Build)
|
||||||
|
#BuildRequires: perl(Module::Install::Base)
|
||||||
|
#BuildRequires: perl(Parse::CPAN::Meta)
|
||||||
|
#BuildRequires: perl(TestConfig)
|
||||||
|
#BuildRequires: perl(YAML::Tiny)
|
||||||
Requires: perl(Any::Moose)
|
Requires: perl(Any::Moose)
|
||||||
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This module handles interaction with configuration files of the style used
|
This module handles interaction with configuration files of the style used
|
||||||
by the version control system Git. It can both parse and modify these
|
by the version control system Git. It can both parse and modify these
|
||||||
files, as well as create entirely new ones.
|
files, as well as create entirely new ones.
|
||||||
|
|
||||||
|
You only need to know a few things about the configuration format in order
|
||||||
|
to use this module. First, a configuration file is made up of key/value
|
||||||
|
pairs. Every key must be contained in a section. Sections can have
|
||||||
|
subsections, but they don't have to. For the purposes of setting and
|
||||||
|
getting configuration variables, we join the section name, subsection name,
|
||||||
|
and variable name together with dots to get a key name that looks like
|
||||||
|
"section.subsection.variable". These are the strings that you'll be passing
|
||||||
|
in to 'key' arguments.
|
||||||
|
|
||||||
|
Configuration files inherit from each other. By default, 'Config::GitLike'
|
||||||
|
loads data from a system-wide configuration file, a per-user configuration
|
||||||
|
file, and a per-directory configuration file, but by subclassing and
|
||||||
|
overriding methods you can obtain any combination of configuration files.
|
||||||
|
By default, configuration files that don't exist are just skipped.
|
||||||
|
|
||||||
|
See the
|
||||||
|
http://www.kernel.org/pub/software/scm/git/docs/git-config.html#_configurat
|
||||||
|
ion_file manpage for details on the syntax of git configuration files. We
|
||||||
|
won't waste pixels on the nitty gritty here.
|
||||||
|
|
||||||
|
While the behavior of a couple of this module's methods differ slightly
|
||||||
|
from the 'git config' equivalents, this module can read any config file
|
||||||
|
written by git. The converse is usually true, but only if you don't take
|
||||||
|
advantage of this module's increased permissiveness when it comes to key
|
||||||
|
names. (See the DIFFERENCES FROM GIT-CONFIG manpage for details.)
|
||||||
|
|
||||||
|
This is an object-oriented module using Any::Moose. All subroutines are
|
||||||
|
object method calls.
|
||||||
|
|
||||||
|
A few methods have parameters that are always used for the same purpose:
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n "Config-GitLike-%{version}"
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
%__sed -i '/^auto_install/d' Makefile.PL
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%__perl Makefile.PL PREFIX="%{_prefix}"
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||||
%__make %{?jobs:-j%{jobs}}
|
%{__make} %{?_smp_mflags}
|
||||||
|
|
||||||
|
%check
|
||||||
|
%{__make} test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%perl_make_install
|
%perl_make_install
|
||||||
%perl_process_packlist
|
%perl_process_packlist
|
||||||
|
%perl_gen_filelist
|
||||||
|
|
||||||
%check
|
%files -f %{name}.files
|
||||||
%__make test
|
%defattr(-,root,root,755)
|
||||||
|
|
||||||
%clean
|
|
||||||
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc Changes
|
%doc Changes
|
||||||
%dir %{perl_vendorlib}/Config
|
|
||||||
%{perl_vendorlib}/Config/GitLike.pm
|
|
||||||
%{perl_vendorlib}/Config/GitLike
|
|
||||||
%dir %{perl_vendorarch}/auto/Config
|
|
||||||
%{perl_vendorarch}/auto/Config/GitLike
|
|
||||||
%doc %{perl_man3dir}/Config::GitLike.%{perl_man3ext}%{ext_man}
|
|
||||||
%doc %{perl_man3dir}/Config::GitLike::*.%{perl_man3ext}%{ext_man}
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user