/[packages]/cauldron/python-textile/current/SPECS/python-textile.spec
ViewVC logotype

Contents of /cauldron/python-textile/current/SPECS/python-textile.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 688380 - (show annotations) (download)
Tue Sep 16 20:19:40 2014 UTC (6 years, 10 months ago) by umeabot
File size: 1633 byte(s)
Mageia 5 Mass Rebuild
1 %define shortname textile
2 Name: python-%{shortname}
3 Version: 2.1.8
4 Release: %mkrel 2
5 Summary: A Humane Web Text Generator
6 Group: Development/Python
7 License: BSD
8 URL: http://pypi.python.org/pypi/%{shortname}/
9 Source0: http://pypi.python.org/packages/source/t/%{shortname}/%{shortname}-%{version}.tar.gz
10 BuildArch: noarch
11 BuildRequires: python-devel
12 BuildRequires: python-setuptools
13
14 %description
15 Textile is a XHTML generator using a simple markup developed by Dean Allen.
16 This is a Python port with support for code validation, itex to MathML
17 translation, Python code coloring and much more.
18
19 # Python 3 package
20 %package -n python3-%{shortname}
21 Summary: A Humane Web Text Generator
22
23 BuildRequires: python3-devel
24 BuildRequires: python3-setuptools
25
26 %description -n python3-%{shortname}
27 Textile is a XHTML generator using a simple markup developed by Dean Allen.
28 This is a Python port with support for code validation, itex to MathML
29 translation, Python code coloring and much more.
30
31 This is a version for Python 3.
32
33 %prep
34 %setup -q -n %{shortname}-%{version}
35
36 # Python 3 prep
37 rm -rf %{py3dir}
38 cp -a . %{py3dir}
39
40 %build
41 %{__python} setup.py build
42
43 # Python 3 build
44 pushd %{py3dir}
45 %{__python3} setup.py build
46 popd
47
48 %install
49 # Python 3 first
50 pushd %{py3dir}
51 %{__python3} setup.py install -O1 --skip-build --root %{buildroot} --install-purelib=%py3_platsitedir
52 popd
53
54 # Python 2
55 %{__python} setup.py install -O1 --skip-build --root %{buildroot} --install-purelib=%py_platsitedir
56
57 %files
58 %{py_platsitedir}/*
59
60 %files -n python3-%{shortname}
61 %{py3_platsitedir}/*
62

  ViewVC Help
Powered by ViewVC 1.1.28