ef6f077a3b
- update to 0.4: * add --format=lines to support line by line processing * doc: tweak readme to mention --format=lines * Declare encoding to avoid fatal error * fix duplicate DEFAULT section header being output * ensure edited ini file contents are always complete * split out --options from synopsis * send --help to stdout * provide alternative --rewrite file editing option * provide --output option to allow redirecting output * use only the base 'crudini' name in --help * ensure writes to the edited ini are never lost * add a new --list option to update a list of values * honor case when merging new parameters OBS-URL: https://build.opensuse.org/request/show/255014 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/crudini?expand=0&rev=3
51 lines
1.3 KiB
RPMSpec
51 lines
1.3 KiB
RPMSpec
#
|
|
# spec file for package crudini
|
|
#
|
|
# Copyright (c) 2014 SUSE LINUX Products 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/
|
|
#
|
|
|
|
|
|
Name: crudini
|
|
Version: 0.4
|
|
Release: 0
|
|
Summary: CRUD for .ini files
|
|
License: GPL-2.0
|
|
Group: System/Base
|
|
Url: https://github.com/pixelb/crudini/releases
|
|
Source: %{name}-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Requires: python-iniparse
|
|
|
|
%description
|
|
A utility for manipulating ini files.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
|
|
%install
|
|
install -m 0755 -D crudini %{buildroot}/%{_bindir}/crudini
|
|
|
|
%post
|
|
|
|
%postun
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc README COPYING
|
|
%{_bindir}/crudini
|
|
|
|
%changelog
|