python-mistune/python-mistune.spec

52 lines
1.5 KiB
RPMSpec

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 <davide.madrisan@gmail.com>
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 <davide.madrisan@gmail.com> 0.7.1-1mamba
- package created using the webbuild interface