forked from pool/python-textile
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-textile?expand=0&rev=2
This commit is contained in:
committed by
Git OBS Bridge
parent
9732cc8fc4
commit
b5226e0104
@@ -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
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8d1f277c541d2638f8be3fa5ebb01762e01ce9d1792ae7bcdca443716964bf59
|
||||
size 28727
|
||||
3
textile-2.1.5.tar.gz
Normal file
3
textile-2.1.5.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b22a2e2fcb0e6b55a39b181d978d4b7429abf8504b09442dc55756fa98d3bcf6
|
||||
size 16541
|
||||
Reference in New Issue
Block a user