rpms/python-textile/devel python-textile.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Thomas Moschny (thm) fedora-extras-commits at redhat.com
Fri Apr 4 22:46:26 UTC 2008


Author: thm

Update of /cvs/pkgs/rpms/python-textile/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15598/devel

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


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

%define srcname textile

Name:           python-%{srcname}
Version:        2.0.11
Release:        3%{?dist}
Summary:        A Humane Web Text Generator

Group:          Development/Languages
License:        BSD
URL:            http://code.google.com/p/pytextile/
Source0:        http://pytextile.googlecode.com/files/%{srcname}-%{version}.tar.gz
BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildArch:      noarch
BuildRequires:  python-devel

%if 0%{?fedora} >= 8
BuildRequires: python-setuptools-devel
%else
BuildRequires: python-setuptools
%endif

# for htmlizer:
Requires(missingok): python-twisted-core

# FIXME: no package currently provides tidy,
# could be mx (experimental) or uTidyLib.

%description
Textile is a XHTML generator using a simple markup developed by Dean
Allen. This is a Python port with support for code validation, itex to
MathML translation, Python code coloring and much more.

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

# small fixes:
# - toggle import statement for htmlizer
# - remove the shebang
sed -i -e 's/^\( *\)\(import htmlizer\)/\1#\2/' \
       -e 's/^\( *\)#\(from twisted.python import htmlizer\)/\1\2/' \
       -e '/#! *\/usr\/bin\/.*python.*/{1D}' textile.py

%build
%{__python} setup.py build
# calling textile directly yields a single overview page
%{__python} textile.py > overview.html

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

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc overview.html
%{python_sitelib}/*

%changelog
* Mon Jan 28 2008 Thomas Moschny <thomas.moschny at gmx.de> - 2.0.11-3
- As the license text in the main source file is unchanged, revert the
  license tag back to BSD.

* Fri Jan 18 2008 Thomas Moschny <thomas.moschny at gmx.de> - 2.0.11-2
- Updated main and source urls. The website states that the package is
  now under the MIT License.

* Tue Sep  8 2007 Thomas Moschny <thomas.moschny at gmx.de> - 2.0.11-1
- Initial version.


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/python-textile/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	4 Apr 2008 22:06:22 -0000	1.1
+++ .cvsignore	4 Apr 2008 22:45:47 -0000	1.2
@@ -0,0 +1 @@
+textile-2.0.11.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/python-textile/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	4 Apr 2008 22:06:22 -0000	1.1
+++ sources	4 Apr 2008 22:45:47 -0000	1.2
@@ -0,0 +1 @@
+a94aee1f9610aae6605c6e72b6a1f660  textile-2.0.11.tar.gz




More information about the fedora-extras-commits mailing list