forked from pool/python-cfgdiff
Accepting request 824215 from home:mnhauke
Intial package for python-cfgdiff OBS-URL: https://build.opensuse.org/request/show/824215 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cfgdiff?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
16
_service
Normal file
16
_service
Normal file
@@ -0,0 +1,16 @@
|
||||
<services>
|
||||
<service name="tar_scm" mode="disabled">
|
||||
<param name="scm">git</param>
|
||||
<param name="url">https://github.com/evgeni/cfgdiff.git</param>
|
||||
<param name="revision">devel</param>
|
||||
<param name="versionprefix">0.0.0+git</param>
|
||||
<param name="changesgenerate">enable</param>
|
||||
</service>
|
||||
<service name="recompress" mode="disabled">
|
||||
<param name="compression">xz</param>
|
||||
<param name="file">*.tar</param>
|
||||
</service>
|
||||
<service name="set_version" mode="disabled">
|
||||
</service>
|
||||
</services>
|
||||
|
||||
4
_servicedata
Normal file
4
_servicedata
Normal file
@@ -0,0 +1,4 @@
|
||||
<servicedata>
|
||||
<service name="tar_scm">
|
||||
<param name="url">https://github.com/evgeni/cfgdiff.git</param>
|
||||
<param name="changesrevision">dc4e96eee5783a06a44cad2eda3187dbee16d0d1</param></service></servicedata>
|
||||
3
cfgdiff-0.0.0+git.1487961889.dc4e96e.tar.xz
Normal file
3
cfgdiff-0.0.0+git.1487961889.dc4e96e.tar.xz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3f9a81d046408f824eaf61a69e9e8eda02e77542d6de1a3de1a9d1669955307b
|
||||
size 6724
|
||||
11
python-cfgdiff.changes
Normal file
11
python-cfgdiff.changes
Normal file
@@ -0,0 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 03 20:12:37 UTC 2020 - mardnh@gmx.de
|
||||
|
||||
- Update to version 0.0.0+git.1487961889.dc4e96e
|
||||
- Specfile overhaul
|
||||
- Run testsuite
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 21 17:34:42 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- Initial spec for v0.1
|
||||
82
python-cfgdiff.spec
Normal file
82
python-cfgdiff.spec
Normal file
@@ -0,0 +1,82 @@
|
||||
#
|
||||
# spec file for package python-cfgdiff
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LINUX 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/
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-cfgdiff
|
||||
Version: 0.0.0+git.1487961889.dc4e96e
|
||||
Release: 0
|
||||
Summary: Cfgdiff -- diff(1) all your configuration files
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/evgeni/cfgdiff
|
||||
Source: cfgdiff-%{version}.tar.xz
|
||||
BuildRequires: %{python_module setuptools}
|
||||
### SECTION test requirements
|
||||
BuildRequires: %{python_module PyYAML}
|
||||
BuildRequires: %{python_module configobj}
|
||||
BuildRequires: %{python_module dnspython}
|
||||
BuildRequires: %{python_module lxml}
|
||||
## /SECTION
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-PyYAML
|
||||
Requires: python-configobj
|
||||
Requires: python-dnspython
|
||||
Requires: python-lxml
|
||||
Provides: cfgdiff
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
cfgdiff will try to parse your configuration files, fetching all
|
||||
the relevant keys and values from them and then pretty-printing
|
||||
them in the original format.
|
||||
These results are then diffed and the diff is shown to you.
|
||||
|
||||
cfgdiff currently supports the following formats:
|
||||
- INI using Python's ConfigParser library
|
||||
- JSON using Python's JSON library
|
||||
- YAML if the Python YAML library is installed
|
||||
- XML if the Python lxml library is installed
|
||||
|
||||
%prep
|
||||
%setup -q -n cfgdiff-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%python_clone -a %{buildroot}%{_bindir}/cfgdiff
|
||||
|
||||
%post
|
||||
%python_install_alternative cfgdiff
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative cfgdiff
|
||||
|
||||
%check
|
||||
%python_exec -m unittest discover test/ -v
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE README.md
|
||||
%{python_sitelib}/*
|
||||
%python_alternative %{_bindir}/cfgdiff
|
||||
%{_mandir}/man1/cfgdiff.1%{?ext_man}
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user