rpms/python-markdown2/devel import.log, NONE, 1.1 markdown2, NONE, 1.1 python-markdown2.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Thomas Moschny thm at fedoraproject.org
Thu Sep 11 21:22:24 UTC 2008


Author: thm

Update of /cvs/pkgs/rpms/python-markdown2/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv22622/devel

Modified Files:
	.cvsignore sources 
Added Files:
	import.log markdown2 python-markdown2.spec 
Log Message:
Initial import.


--- NEW FILE import.log ---
python-markdown2-1_0_1_7-1_fc9:HEAD:python-markdown2-1.0.1.7-1.fc9.src.rpm:1221168087


--- NEW FILE markdown2 ---
#!/usr/bin/env python

from markdown2 import logging, main
import sys

logging.basicConfig()
sys.exit( main(sys.argv) )


--- NEW FILE python-markdown2.spec ---
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

%define srcname markdown2

Name:           python-%{srcname}
Version:        1.0.1.7
Release:        1%{?dist}
Summary:        A fast and complete Python implementation of Markdown
Group:          Development/Languages
License:        MIT
URL:            http://code.google.com/p/python-%{srcname}/
Source0:        http://pypi.python.org/packages/source/m/%{srcname}/%{srcname}-%{version}.tar.gz
Source1:        markdown2
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:      noarch
BuildRequires:  python-devel
BuildRequires:  python-pygments

%description
Markdown is a text-to-HTML filter; it translates an easy-to-read /
easy-to-write structured text format into HTML. Markdown's text format
is most similar to that of plain text email, and supports features
such as headers, emphasis, code blocks, blockquotes, and links.

This is a fast and complete Python implementation of the Markdown
spec.

For information about markdown itself, see
http://daringfireball.net/projects/markdown/


%prep
%setup0 -q -n %{srcname}-%{version}


%build
%{__python} setup.py build


%install
rm -rf %{buildroot}
%{__python} setup.py install -O1 --skip-build --root %{buildroot}

# remove shebangs and fix permissions
find %{buildroot}%{python_sitelib} \( -name '*.py' -o -name 'py.*' \) \
  -exec sed -i '1{/^#!/d}' {} \; \
  -exec chmod u=rw,go=r {} \;

# overwrite the script (which is self-contained) with a version that
# instead imports from markdown2
install -p -m 0755 %{SOURCE1} %{buildroot}%{_bindir}


%clean
rm -rf %{buildroot}


%check
cd test
%{__python} test.py


%files
%defattr(-,root,root,-)
%doc CHANGES.txt LICENSE.txt README.txt TODO.txt
%{python_sitelib}/*
%{_bindir}/markdown2


%changelog
* Tue Sep  9 2008 Thomas Moschny <thomas.moschny at gmx.de> - 1.0.1.7-1
- New package.


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/python-markdown2/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	11 Sep 2008 19:36:40 -0000	1.1
+++ .cvsignore	11 Sep 2008 21:21:54 -0000	1.2
@@ -0,0 +1 @@
+markdown2-1.0.1.7.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/python-markdown2/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	11 Sep 2008 19:36:40 -0000	1.1
+++ sources	11 Sep 2008 21:21:54 -0000	1.2
@@ -0,0 +1 @@
+21d346c8415efe94312323a30b8d2e09  markdown2-1.0.1.7.tar.gz




More information about the fedora-extras-commits mailing list