From ba8ae1c6bd3a50d5ae4835adb82d2ff9bb9f5097 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 23 Mar 2023 01:59:22 +0000 Subject: automatic import of crudini --- crudini.spec | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 crudini.spec (limited to 'crudini.spec') 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 - 0.9.4-1 +- Initial package -- cgit v1.2.3