rpms/python-textile/F-12 README.textile, NONE, 1.1 .cvsignore, 1.3, 1.4 import.log, 1.1, 1.2 python-textile.spec, 1.6, 1.7 sources, 1.3, 1.4

Thomas Moschny thm at fedoraproject.org
Sat Jul 3 07:40:29 UTC 2010


Author: thm

Update of /cvs/pkgs/rpms/python-textile/F-12
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv27236/F-12

Modified Files:
	.cvsignore import.log python-textile.spec sources 
Added Files:
	README.textile 
Log Message:
Update to 2.1.4.


--- NEW FILE README.textile ---
h1. PyTextile

PyTextile is a simple text to HTML converter.

h2. Usage

<pre>
<code>

>>> import textile
>>> textile.__version__
'2.1.4'
>>> s = """
... _This_ is a *test.*
... 
... * One
... * Two
... * Three
... 
... Link to "Slashdot":http://slashdot.org/
... """
>>> html = textile.textile(s)
>>> print html
<em>This</em> is a <strong>test.</strong>
	<ul>
		<li>One</li>
		<li>Two</li>
		<li>Three</li>
	</ul>
	<p>Link to <a href="http://slashdot.org/">Slashdot</a>
</p>
>>> 
</code>
</pre>


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/python-textile/F-12/.cvsignore,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- .cvsignore	11 Mar 2009 09:11:24 -0000	1.3
+++ .cvsignore	3 Jul 2010 07:40:29 -0000	1.4
@@ -1 +1 @@
-textile-2.1.3.tar.gz
+textile-2.1.4.tar.gz


Index: import.log
===================================================================
RCS file: /cvs/pkgs/rpms/python-textile/F-12/import.log,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- import.log	11 Mar 2009 09:11:24 -0000	1.1
+++ import.log	3 Jul 2010 07:40:29 -0000	1.2
@@ -1 +1,2 @@
 python-textile-2_1_3-1_fc10:HEAD:python-textile-2.1.3-1.fc10.src.rpm:1236762638
+python-textile-2_1_4-3_fc13:F-12:python-textile-2.1.4-3.fc13.src.rpm:1278142787


Index: python-textile.spec
===================================================================
RCS file: /cvs/pkgs/rpms/python-textile/F-12/python-textile.spec,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -p -r1.6 -r1.7
--- python-textile.spec	26 Jul 2009 23:13:22 -0000	1.6
+++ python-textile.spec	3 Jul 2010 07:40:29 -0000	1.7
@@ -1,22 +1,21 @@
-%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
 
-%define srcname textile
+%global srcname textile
 
 Name:           python-%{srcname}
-Version:        2.1.3
-Release:        2%{?dist}
+Version:        2.1.4
+Release:        3%{?dist}
 Summary:        A Humane Web Text Generator
 Group:          Development/Languages
 License:        BSD
 URL:            http://loopcore.com/python-textile
 Source0:        http://pypi.python.org/packages/source/t/%{srcname}/%{srcname}-%{version}.tar.gz
+Source1:        http://github.com/jsamsa/python-textile/raw/84bdad397c073fc9148696b7a6259021968e35fd/README.textile
 BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 BuildArch:      noarch
 BuildRequires:  python-devel
 BuildRequires:  python-setuptools-devel
-
-# FIXME: no package currently provides tidy,
-# could be mx (experimental) or uTidyLib.
+BuildRequires:  python-nose
 
 %description
 Textile is a XHTML generator using a simple markup developed by Dean
@@ -25,20 +24,23 @@ MathML translation, Python code coloring
 
 %prep
 %setup -q -n %{srcname}-%{version}
+cp -a %SOURCE1 .
 
 # remove the shebang
-sed -i -e '/#! *\/usr\/bin\/.*python.*/{1D}' textile.py
+sed -i -e '/#! *\/usr\/bin\/.*python.*/{1D}' textile/functions.py
 
 %build
 %{__python} setup.py build
-%{__python} textile.py README.textile > README.html
 
 %install
 rm -rf %{buildroot}
 %{__python} setup.py install --skip-build --root %{buildroot}
+PYTHONPATH=%{buildroot}%{python_sitelib} %{__python} \
+  -c 'import textile; import sys; print textile.textile(sys.stdin.read())' \
+  < README.textile > README.html
 
 %check
-PYTHONPATH=%{buildroot}%{python_sitelib} %{__python} test/test.py
+nosetests
 
 %clean
 rm -rf %{buildroot}
@@ -49,6 +51,19 @@ rm -rf %{buildroot}
 %{python_sitelib}/*
 
 %changelog
+* Fri Apr 16 2010 Thomas Moschny <thomas.moschny at gmx.de> - 2.1.4-3
+- Simplify %%check.
+
+* Fri Apr 16 2010 Thomas Moschny <thomas.moschny at gmx.de> - 2.1.4-2
+- Add missing BR python-nose for the tests.
+- Actually run the tests in %%check.
+- Remove obsolete comment about tidy.
+
+* Fri Apr 16 2010 Thomas Moschny <thomas.moschny at gmx.de> - 2.1.4-1
+- Update to 2.1.4.
+- Use %%global instead of %%define.
+- README is missing in the tarfile.
+
 * Sun Jul 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.1.3-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
 


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/python-textile/F-12/sources,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- sources	11 Mar 2009 09:11:24 -0000	1.3
+++ sources	3 Jul 2010 07:40:29 -0000	1.4
@@ -1 +1 @@
-07ec3c6d5e47763376894dfe60466a18  textile-2.1.3.tar.gz
+05ebee989379d5930e779f85d276abed  textile-2.1.4.tar.gz



More information about the scm-commits mailing list