From b5226e010403d92e01342a2dd577d47b790e6ca6477ac2d751990c87ffe39512 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Fri, 23 Sep 2011 10:35:57 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-textile?expand=0&rev=2 --- python-textile.spec | 78 +++++++++++++++++++------------------------ textile-2.0.11.tar.gz | 3 -- textile-2.1.5.tar.gz | 3 ++ 3 files changed, 37 insertions(+), 47 deletions(-) delete mode 100644 textile-2.0.11.tar.gz create mode 100644 textile-2.1.5.tar.gz diff --git a/python-textile.spec b/python-textile.spec index 547fa05..77ce381 100644 --- a/python-textile.spec +++ b/python-textile.spec @@ -1,38 +1,40 @@ # # spec file for package python-textile # -# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. -# This file and all modifications and additions to the pristine -# package are under the same license as the package itself. +# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild - -%define modname textile - -Name: python-%{modname} -BuildRequires: python-devel python-setuptools -URL: http://code.google.com/p/pytextile/ -License: BSD Licence -Group: Productivity/System -Autoreqprov: on -Version: 2.0.11 -Release: 1 -Summary: This is a Python implementation of the Textile markup language. -Source0: http://pytextile.googlecode.com/files/%{modname}-%{version}.tar.gz +Name: python-textile +Version: 2.1.5 +Release: 0 +Url: http://github.com/chrisdrackett/python-textile +Summary: Textile processing for python +License: BSD +Group: Development/Languages/Python +Source: http://pypi.python.org/packages/source/t/textile/textile-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{py_requires} - -## for htmlizer: -#Requires(missingok): python-twisted-core - -# FIXME: no package currently provides tidy, -# could be mx (experimental) or uTidyLib. +BuildRequires: python-devel +BuildRequires: python-distribute +%if 0%{?suse_version} +%py_requires +%if 0%{?suse_version} > 1110 +BuildArch: noarch +%endif +%endif +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %description - This is a Python implementation of the Textile (http://textism.com/tools/textile) markup language. @@ -41,29 +43,17 @@ Allen. This is a Python port with support for code validation, itex to MathML translation, Python code coloring and much more. %prep -%setup -n %{modname}-%{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 +%setup -q -n textile-%{version} +sed -i "1d" textile/functions.py # Fix non-executable script %build -export CFLAGS="$RPM_OPT_FLAGS" python setup.py build -# calling textile directly yields a single overview page -python textile.py > overview.html %install -python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES +python setup.py install --prefix=%{_prefix} --root=%{buildroot} -%clean -rm -rf $RPM_BUILD_ROOT +%files +%defattr(-,root,root,-) +%{python_sitelib}/* -%files -f INSTALLED_FILES -%defattr(-,root,root) -%doc overview.html - -%changelog -n python-%{modname} +%changelog diff --git a/textile-2.0.11.tar.gz b/textile-2.0.11.tar.gz deleted file mode 100644 index 6b7b7ca..0000000 --- a/textile-2.0.11.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8d1f277c541d2638f8be3fa5ebb01762e01ce9d1792ae7bcdca443716964bf59 -size 28727 diff --git a/textile-2.1.5.tar.gz b/textile-2.1.5.tar.gz new file mode 100644 index 0000000..7ed2262 --- /dev/null +++ b/textile-2.1.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b22a2e2fcb0e6b55a39b181d978d4b7429abf8504b09442dc55756fa98d3bcf6 +size 16541