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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 688380 - (hide annotations) (download)
Tue Sep 16 20:19:40 2014 UTC (7 years ago) by umeabot
File size: 1633 byte(s)
Mageia 5 Mass Rebuild
1 grenoya 279943 %define shortname textile
2     Name: python-%{shortname}
3 grenoya 665201 Version: 2.1.8
4 umeabot 688380 Release: %mkrel 2
5 grenoya 279943 Summary: A Humane Web Text Generator
6     Group: Development/Python
7     License: BSD
8 grenoya 279967 URL: http://pypi.python.org/pypi/%{shortname}/
9 grenoya 279943 Source0: http://pypi.python.org/packages/source/t/%{shortname}/%{shortname}-%{version}.tar.gz
10 grenoya 279967 BuildArch: noarch
11 grenoya 279943 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 grenoya 665201 # 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 grenoya 279943 %prep
34     %setup -q -n %{shortname}-%{version}
35    
36 grenoya 665201 # Python 3 prep
37     rm -rf %{py3dir}
38     cp -a . %{py3dir}
39    
40 grenoya 279943 %build
41     %{__python} setup.py build
42    
43 grenoya 665201 # Python 3 build
44     pushd %{py3dir}
45     %{__python3} setup.py build
46     popd
47    
48 grenoya 279943 %install
49 grenoya 665201 # 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 grenoya 279943 %{__python} setup.py install -O1 --skip-build --root %{buildroot} --install-purelib=%py_platsitedir
56    
57     %files
58     %{py_platsitedir}/*
59    
60 grenoya 665201 %files -n python3-%{shortname}
61     %{py3_platsitedir}/*
62 grenoya 279943

  ViewVC Help
Powered by ViewVC 1.1.28