crudini/crudini.spec

54 lines
1.5 KiB
RPMSpec
Raw Normal View History

#
# spec file for package crudini
#
Accepting request 360187 from home:aplanas:branches:Cloud:OpenStack:Factory - update to 0.7: Bug fixes * Separate locking files are no longer used which avoids deadlock in cases where the system is stopped in the small window where these files exist. * Files are now synced after writing for better Durability. * crudini no longer removes a blank line from the start of a file which has no sections, or options outside a section. [bug introduced in version 0.5] Bug fixes * Lock files are cleaned up robustly. Previously there was a race condition resulting in blocked subsequent edits, due to a lingering lock file. * --del will ignore requests to delete a parameter in a non-existing section (unless --existing is used). Previously it failed citing the missing section. New features * The --existing option takes parameters to give more control over what needs to pre-exist. So you can specify for example that a file needs to exist, but any items within it are created as needed. * A new --verbose option was added to indicate on stderr wether the request resulted in a config change or not. This can be used to determine whether to restart programs etc. Changes in behavior * Files are created by default if missing, unless --existing is specified. Improvements * Protections against creating unparseable ini files were added. * stdin can be parsed just as with normal files. OBS-URL: https://build.opensuse.org/request/show/360187 OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/crudini?expand=0&rev=9
2016-02-19 10:41:33 +01:00
# Copyright (c) 2016 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/
#
Name: crudini
Version: 0.8
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
# PATCH-FIX-UPSTREAM 3c52bd938975f7c5b32d7009f109ccbd2328c16d.patch -- https://github.com/pixelb/crudini/commit/3c52bd938975f7c5b32d7009f109ccbd2328c16d
Patch1: 3c52bd938975f7c5b32d7009f109ccbd2328c16d.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: python-iniparse
%description
A utility for manipulating ini files.
%prep
%setup -q
%patch1 -p1
%build
%install
install -m 0755 -D crudini %{buildroot}/%{_bindir}/crudini
%post
%postun
%files
%defattr(-,root,root)
%doc README COPYING
%{_bindir}/crudini
%changelog