]> git.pld-linux.org Git - packages/python3-markupsafe.git/blob - python-MarkupSafe.spec
- up to 0.15
[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.15
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:  4e7c4d965fe5e033fa2d7bb7746bb186
11 URL:            http://www.pocoo.org/
12 BuildRequires:  python-devel
13 BuildRequires:  python-setuptools
14 BuildRequires:  rpm-pythonprov
15 BuildRequires:  rpmbuild(macros) >= 1.219
16 Requires:       python-modules
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 Implements a XML/HTML/XHTML Markup safe string for Python.
21
22 #%description -l pl.UTF-8
23
24 %prep
25 %setup -q -n %{module}-%{version}
26
27 %build
28 # CFLAGS is only for arch packages - remove on noarch packages
29 export CFLAGS="%{rpmcflags}"
30 %{__python} setup.py build
31
32 %install
33 rm -rf $RPM_BUILD_ROOT
34 %{__python} setup.py install \
35         --optimize=2 \
36         --root=$RPM_BUILD_ROOT
37
38 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
39 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
40 %py_postclean
41
42 %clean
43 rm -rf $RPM_BUILD_ROOT
44
45 %files
46 %defattr(644,root,root,755)
47 %doc README.rst
48 %{py_sitedir}/markupsafe/*.py[co]
49 %dir %{py_sitedir}/markupsafe
50 %attr(755,root,root) %{py_sitedir}/markupsafe/*.so
51 %if "%{py_ver}" > "2.4"
52 %{py_sitedir}/%{module}-*.egg-info
53 %endif
This page took 0.124699 seconds and 3 git commands to generate.