62 lines
1.6 KiB
RPMSpec
62 lines
1.6 KiB
RPMSpec
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
%define srcname markdown
|
|
|
|
Name: python-markdown
|
|
Version: 1.7
|
|
Release: 3%{?dist}
|
|
Summary: Markdown implementation in Python
|
|
Group: Development/Languages
|
|
License: GPLv2 or BSD
|
|
URL: http://www.freewisdom.org/projects/python-markdown/
|
|
Source0: http://downloads.sourceforge.net/%{name}/%{srcname}-%{version}.tar.gz
|
|
Source1: markdown
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
BuildArch: noarch
|
|
BuildRequires: python-devel
|
|
|
|
|
|
%description
|
|
This is a Python implementation of John Gruber's Markdown. It is
|
|
almost completely compliant with the reference implementation, though
|
|
there are a few known issues.
|
|
|
|
|
|
%prep
|
|
%setup -q -n %{srcname}-%{version}
|
|
|
|
# remove shebang
|
|
%{__sed} -i -e '/#! *\/usr\/bin\/.*python.*/{1D}' markdown.py
|
|
|
|
|
|
%build
|
|
%{__python} setup.py build
|
|
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
|
%{__install} -p -m 0755 -D %{SOURCE1} %{buildroot}%{_bindir}/markdown
|
|
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc CHANGE_LOG.txt README.txt README.html
|
|
%{python_sitelib}/*
|
|
%{_bindir}/markdown
|
|
|
|
|
|
%changelog
|
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.7-2
|
|
- Rebuild for Python 2.6
|
|
|
|
* Mon Aug 4 2008 Thomas Moschny <thomas.moschny@gmx.de> - 1.7-1
|
|
- New package.
|