summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 21:49:44 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 21:49:44 +0000
commita37550bac3d3bc9ea27cafef2de0e6d1756e9be0 (patch)
treea8fff44b5678dce2bf26c30424b18976a68aa44f
parent8ade10a8798550b28d1a26de7ced6d0b8e578112 (diff)
automatic import of python-iniparse
-rw-r--r--.gitignore1
-rw-r--r--python-iniparse.spec91
-rw-r--r--sources1
3 files changed, 93 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..9572e9d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/iniparse-0.5.tar.gz
diff --git a/python-iniparse.spec b/python-iniparse.spec
new file mode 100644
index 0000000..6344382
--- /dev/null
+++ b/python-iniparse.spec
@@ -0,0 +1,91 @@
+%global _empty_manifest_terminate_build 0
+Name: python-iniparse
+Version: 0.5
+Release: 1
+Summary: Accessing and Modifying INI files
+License: MIT
+URL: https://github.com/candlepin/python-iniparse
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/4c/9a/02beaf11fc9ea7829d3a9041536934cd03990e09c359724f99ee6bd2b41b/iniparse-0.5.tar.gz
+BuildArch: noarch
+
+Requires: python3-six
+
+%description
+iniparse is an INI parser for Python which is API compatible
+with the standard library's ConfigParser, preserves structure of INI
+files (order of sections & options, indentation, comments, and blank
+lines are preserved when data is updated), and is more convenient to
+use.
+
+
+
+%package -n python3-iniparse
+Summary: Accessing and Modifying INI files
+Provides: python-iniparse
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-iniparse
+iniparse is an INI parser for Python which is API compatible
+with the standard library's ConfigParser, preserves structure of INI
+files (order of sections & options, indentation, comments, and blank
+lines are preserved when data is updated), and is more convenient to
+use.
+
+
+
+%package help
+Summary: Development documents and examples for iniparse
+Provides: python3-iniparse-doc
+%description help
+iniparse is an INI parser for Python which is API compatible
+with the standard library's ConfigParser, preserves structure of INI
+files (order of sections & options, indentation, comments, and blank
+lines are preserved when data is updated), and is more convenient to
+use.
+
+
+
+%prep
+%autosetup -n iniparse-0.5
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-iniparse -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.5-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..c015219
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+2054bab923df21107652d009f2373789 iniparse-0.5.tar.gz