Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 493c1da9b36cded72aae23f9db6c3d9a > files > 2

ccp-0.4.1-8.mga3.src.rpm

Name:           ccp
Summary:        Program that reads configuration files and upgrades them
Version:        0.4.1
Release:        %mkrel 8
Source0:        http://download.savannah.nongnu.org/releases/%{name}/%{name}-%{version}.tar.bz2
URL:            http://random.zerodogg.org/ccp
Group:          System/Configuration
License:        GPLv2+
BuildArch:      noarch

%description
CCP is a program that reads configuration files and upgrades them.

It takes a oldfile (typically the old configuration file currently in
use) and a newfile (typically the default new configuration  file)  and
optionally a template (a file which tells ccp how the generated
configuration file should look like. It is generated on-the-fly if a template
isn't supplied, so it is usually not needed). CCP first reads all the
configuration options and values in the new file, then in the old file,
then it either generates the template or reads the supplied template
file, finally it merges the files into one - creating a new 
configuration file that has the changes that was made to the old file
but also the new options that is included in the new file.

CCP is completely independent of the program that created the 
configuration  file, and can be used for many different purposes. For
instance it can be used to merge changes between an old  user-edited 
configuration file and a .rpmnew file generated by rpm when a
rpm was upgraded.

CCP currently supports:
key = value configs (--type keyvalue)
and ini configs (--type ini)


%prep
%setup -q
# We want the tests to succeed. A release shouldn't have failing tests
# but better safe than sorry
if ! ./testsuite/ccp-testsuite ; then exit 1;fi

%install
mkdir -vp %{buildroot}%{_bindir}/ %{buildroot}%{_mandir}/man1/ %{buildroot}%{_datadir}/ccp/
install -v -m755 ccp  %{buildroot}%{_bindir}/
install -v -m644 ccp.1 %{buildroot}%{_mandir}/man1/
cp -vr conftypes %{buildroot}%{_datadir}/ccp/

%files 
%doc TODO version AUTHORS COPYING
%{_bindir}/%{name}
%{_mandir}/*/*
%{_datadir}/%{name}


%changelog

* Wed Jan 23 2013 fwang <fwang> 0.4.1-8.mga3
+ Revision: 391399
- update rpm group

* Fri Jan 11 2013 umeabot <umeabot> 0.4.1-7.mga3
+ Revision: 347489
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Sun Jan 22 2012 kamil <kamil> 0.4.1-6.mga2
+ Revision: 199822
- update URL
- update SOURCE0
- clean .spec

  + anssi <anssi>
    - fix license tag

* Tue Jan 11 2011 blino <blino> 0.4.1-5.mga1
+ Revision: 5755
- imported package ccp