summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-03-23 01:59:22 +0000
committerCoprDistGit <infra@openeuler.org>2023-03-23 01:59:22 +0000
commitba8ae1c6bd3a50d5ae4835adb82d2ff9bb9f5097 (patch)
tree4bd74120f27999c9a1684855a5e69a0a8d82efbc
parent5fa098ae27f7ef70f0c67ccaaa4de1e9b29fb98b (diff)
automatic import of crudiniopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--crudini-py3.patch9
-rw-r--r--crudini.spec47
-rw-r--r--sources1
4 files changed, 58 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..af33d9b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/crudini-0.9.4.tar.gz
diff --git a/crudini-py3.patch b/crudini-py3.patch
new file mode 100644
index 0000000..3f94387
--- /dev/null
+++ b/crudini-py3.patch
@@ -0,0 +1,9 @@
+diff -Naur crudini-0.9.3/crudini.py crudini-0.9.3.new/crudini.py
+--- crudini-0.9.3/crudini.py 2016-12-13 20:14:56.000000000 +0000
++++ crudini-0.9.3.new/crudini.py 2019-02-20 08:16:34.470569740 +0000
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python3
+ # -*- coding: utf-8 -*-
+ # vim:fileencoding=utf8
+ #
diff --git a/crudini.spec b/crudini.spec
new file mode 100644
index 0000000..a07a2a0
--- /dev/null
+++ b/crudini.spec
@@ -0,0 +1,47 @@
+Name: crudini
+Version: 0.9.4
+Release: 1
+Summary: A utility for manipulating ini files
+
+License: GPLv2
+URL: https://github.com/pixelb/%{name}
+Source0: https://github.com/pixelb/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
+
+BuildArch: noarch
+BuildRequires: diffutils
+BuildRequires: grep
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-iniparse >= 0.3.2
+Requires: python3-iniparse >= 0.3.2
+
+Patch0: crudini-py3.patch
+
+%description
+A utility for easily handling ini files from the command line and shell
+scripts.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+
+%install
+install -p -D -m 0755 %{name}.py %{buildroot}%{_bindir}/%{name}
+install -p -D -m 0644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
+
+%check
+pushd tests
+LC_ALL=en_US.utf8 ./test.sh
+popd
+
+%files
+%doc README.md COPYING TODO NEWS example.ini
+%{_bindir}/%{name}
+%{_mandir}/man1/*
+
+
+%changelog
+* Thu Mar 23 2023 lichaoran <pkwarcraft@hotmail.com> - 0.9.4-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..207778b
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+bade0d61e5a92566be5e6a9da4745d66 crudini-0.9.4.tar.gz