summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-08-22 07:29:05 +0000
committerCoprDistGit <infra@openeuler.org>2023-08-22 07:29:05 +0000
commit1e001bf6b8415cf64e6557f68c76e4083e342899 (patch)
tree7a39020fbe10f90b523f365011fefd3fe202aa66
parentedeb061f01cc199032d7d4ccd8cc3c22f3eeebc1 (diff)
automatic import of python-panfluteopeneuler23.03
-rw-r--r--.gitignore1
-rw-r--r--python-panflute.spec69
-rw-r--r--sources1
3 files changed, 71 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..fe73814 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/panflute-2.3.0.tar.gz
diff --git a/python-panflute.spec b/python-panflute.spec
new file mode 100644
index 0000000..04c47a9
--- /dev/null
+++ b/python-panflute.spec
@@ -0,0 +1,69 @@
+# Created by pyp2rpm-3.2.2
+%global pypi_name panflute
+
+Name: python-%{pypi_name}
+Version: 2.3.0
+Release: 1
+Summary: Pythonic Pandoc filters
+
+License: BSD3
+URL: https://github.com/sergiocorreia/panflute
+Source0: https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+BuildArch: noarch
+
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+
+%description
+panflute is a Python package that makes creating Pandoc filters fun.
+
+For a detailed user guide, documentation, and installation instructions, see http://scorreia.com/software/panflute/.
+For examples that you can use as starting points, check the examples repo, the sample template, or this github search.
+
+%package -n python3-%{pypi_name}
+Summary: %{summary}
+%{?python_provide:%python_provide python3-%{pypi_name}}
+
+Requires: python3-click < 9
+Requires: python3-click >= 6
+Requires: python3-pyyaml >= 3
+Requires: python3-pyyaml < 7
+Requires: python3-setuptools
+%description -n python3-%{pypi_name}
+panflute is a Python package that makes creating Pandoc filters fun.
+
+For a detailed user guide, documentation, and installation instructions, see http://scorreia.com/software/panflute/.
+For examples that you can use as starting points, check the examples repo, the sample template, or this github search.
+
+
+%prep
+%autosetup -n %{pypi_name}-%{version}
+# Remove bundled egg-info
+rm -rf %{pypi_name}.egg-info
+
+%build
+%py3_build
+
+%install
+%py3_install
+cp %{buildroot}/%{_bindir}/panfl %{buildroot}/%{_bindir}/panfl-%{python3_version}
+ln -s %{_bindir}/panfl-%{python3_version} %{buildroot}/%{_bindir}/panfl-3
+cp %{buildroot}/%{_bindir}/panflute %{buildroot}/%{_bindir}/panflute-%{python3_version}
+ln -s %{_bindir}/panflute-%{python3_version} %{buildroot}/%{_bindir}/panflute-3
+
+
+%files -n python3-%{pypi_name}
+%license LICENSE
+%doc README.md
+%{_bindir}/panfl
+%{_bindir}/panfl-3
+%{_bindir}/panfl-%{python3_version}
+%{_bindir}/panflute
+%{_bindir}/panflute-3
+%{_bindir}/panflute-%{python3_version}
+%{python3_sitelib}/%{pypi_name}
+%{python3_sitelib}/%{pypi_name}-*.egg-info
+
+%changelog
+* Thu Aug 17 2023 ysliu <ysliuci@isoftstone.com> - 2.3.0-1
+- Initial package.
diff --git a/sources b/sources
new file mode 100644
index 0000000..f41ec8c
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+09afa82ef6c8f50786e32ca0af205626 panflute-2.3.0.tar.gz