]> git.pld-linux.org Git - packages/python3-markupsafe.git/blob - python-MarkupSafe.spec
- BR: python-setuptools
[packages/python3-markupsafe.git] / python-MarkupSafe.spec
1 %define         module  MarkupSafe
2 Summary:        Implements a XML/HTML/XHTML Markup safe string for Python
3 Summary(pl.UTF-8):      -
4 Name:           python-%{module}
5 Version:        0.11
6 Release:        0.2
7 License:        BSD
8 Group:          Development/Languages/Python
9 Source0:        http://pypi.python.org/packages/source/M/MarkupSafe/%{module}-%{version}.tar.gz
10 # Source0-md5:  48d445941c16d6aa55caf8e148fc0911
11 URL:            http://www.pocoo.org/
12 BuildRequires:  python-devel
13 BuildRequires:  python-setuptools
14 BuildRequires:  rpm-pythonprov
15 # if py_postclean is used
16 BuildRequires:  rpmbuild(macros) >= 1.219
17 #Requires:              python-libs
18 Requires:       python-modules
19 #BuildArch:     noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 Implements a XML/HTML/XHTML Markup safe string for Python.
24
25 %description -l pl.UTF-8
26
27 %prep
28 %setup -q -n %{module}-%{version}
29
30 %build
31 # CFLAGS is only for arch packages - remove on noarch packages
32 export CFLAGS="%{rpmcflags}"
33 %{__python} setup.py build
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37 %{__python} setup.py install \
38         --optimize=2 \
39         --root=$RPM_BUILD_ROOT
40
41 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
42 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
43 %py_postclean
44
45 %clean
46 rm -rf $RPM_BUILD_ROOT
47
48 %files
49 %defattr(644,root,root,755)
50 %doc README.rst
51 %{py_sitedir}/markupsafe/*.py[co]
52 %dir %{py_sitedir}/markupsafe
53 %attr(755,root,root) %{py_sitedir}/markupsafe/*.so
54 %if "%{py_ver}" > "2.4"
55 %{py_sitedir}/%{module}-*.egg-info
56 %endif
This page took 0.180766 seconds and 3 git commands to generate.