Sophie

Sophie

distrib > Mageia > 9 > armv7hl > by-pkgid > fcf5e205207fcd1de21795a315298323 > files > 2

perl-Config-Versioned-1.10.0-7.mga9.src.rpm

%define upstream_name    Config-Versioned
%define upstream_version 1.01

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    %mkrel 7

Summary:    Simple, versioned access to configuration data
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://metacpan.org/release/%{upstream_name}
Source0:    https://cpan.metacpan.org/modules/by-module/Config/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Config::Std)
BuildRequires: perl(DateTime)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Git::PurePerl)
BuildRequires: perl(inc::Module::Install)
BuildRequires: perl(Moose)
BuildRequires: perl(Path::Class)
BuildRequires: perl(Test::More)
BuildArch: noarch

%description
Config::Versioned allows an application to access configuration parameters
not only by parameter name, but also by version number. This allows for the
configuration subsystem to store previous versions of the configuration
parameters. When requesting the value for a specific attribute, the
programmer specifies whether to fetch the most recent value or a previous
value.

This is useful for long-running tasks such as in a workflow-based
application where task-specific values (e.g.: profiles) are static over the
life of a workflow, while global values (e.g.: name of an LDAP server to be
queried) should always be the most recent.

Config::Versioned handles the versions by storing the configuration data in
an internal Git repository. Each import of configuration files into the
repository is documented with a commit. When a value is fetched, it is this
commit that is referenced directly when specifying the version.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make_build

%check
%make_build test

%install
%make_install

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%perl_vendorlib/*
%{_bindir}/cfgver




%changelog
* Sun Mar 20 2022 umeabot <umeabot> 1.10.0-7.mga9
+ Revision: 1808574
- Mageia 9 Mass Rebuild

* Wed Feb 12 2020 umeabot <umeabot> 1.10.0-6.mga8
+ Revision: 1503594
- Mageia 8 Mass Rebuild
+ wally <wally>
- replace deprecated %%makeinstall_std

* Thu Sep 20 2018 umeabot <umeabot> 1.10.0-5.mga7
+ Revision: 1282439
- Mageia 7 Mass Rebuild

* Mon Oct 02 2017 tv <tv> 1.10.0-4.mga7
+ Revision: 1163511
- rebuild with fixed rpm for missing autodeps

* Sun Sep 24 2017 tv <tv> 1.10.0-3.mga7
+ Revision: 1158749
- add BR on perl(inc::Module::Install)

* Sat Jun 18 2016 pterjan <pterjan> 1.10.0-2.mga6
+ Revision: 1024318
- Rebuild for perl 5.22.2

* Sat Jan 16 2016 buchan <buchan> 1.10.0-1.mga6
+ Revision: 924677
- imported package perl-Config-Versioned


* Sun May 10 2015 buchan 1.01-1mga
- initial mageia release, generated with cpan2dist