From 01201321ddd95214efdf0ad44dc6e481f911f626 Mon Sep 17 00:00:00 2001 From: Davide Madrisan Date: Sat, 6 Jan 2024 11:27:41 +0100 Subject: [PATCH] package created using the webbuild interface [release 0.7.1-1mamba;Fri Sep 25 2015] --- README.md | 4 ++++ python-mistune.spec | 51 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 python-mistune.spec diff --git a/README.md b/README.md index 56952dd..87c5f9b 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # python-mistune +A fast markdown parser in pure Python with renderer feature, inspired by marked and misaka. + +A fast markdown parser in pure Python. + diff --git a/python-mistune.spec b/python-mistune.spec new file mode 100644 index 0000000..66ff3e6 --- /dev/null +++ b/python-mistune.spec @@ -0,0 +1,51 @@ +Name: python-mistune +Version: 0.7.1 +Release: 1mamba +Summary: A fast markdown parser in pure Python +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Davide Madrisan +URL: https://github.com/lepture/mistune +Source: https://github.com/lepture/mistune/archive/v%{version}.tar.gz +License: BSD +## AUTOBUILDREQ-BEGIN +## note: run 'autospec -u -a6 python-mistune' to get the list of build requirements. +## AUTOBUILDREQ-END +BuildRequires: libpython-devel +BuildRequires: Cython +BuildRequires: python-nose +BuildRequires: python-setuptools +Requires: python >= %python_version +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +A fast markdown parser in pure Python with renderer feature, inspired by marked and misaka. + +%description +%{summary}. + +%prep +%setup -q -n mistune-%{version} + +%build +CFLAGS="%{optflags}" %{__python} setup.py build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__python} setup.py install \ + -O1 --skip-build \ + --root="%{buildroot}" \ + --install-headers=%{_includedir}/python \ + --install-lib=%{python_sitearch} \ + --record=%{name}.filelist + +sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist + +%files -f %{name}.filelist +%defattr(-,root,root) +%doc LICENSE README.rst + +%changelog +* Fri Sep 25 2015 Davide Madrisan 0.7.1-1mamba +- package created using the webbuild interface