looks fine; rel 1
[packages/python3-markupsafe.git] / python-MarkupSafe.spec
1 %define         module  MarkupSafe
2 Summary:        Implements a XML/HTML/XHTML Markup safe string for Python
3 Name:           python-%{module}
4 Version:        0.15
5 Release:        1
6 License:        BSD
7 Group:          Development/Languages/Python
8 Source0:        http://pypi.python.org/packages/source/M/MarkupSafe/%{module}-%{version}.tar.gz
9 # Source0-md5:  4e7c4d965fe5e033fa2d7bb7746bb186
10 URL:            http://www.pocoo.org/
11 BuildRequires:  python-devel
12 BuildRequires:  python-setuptools
13 BuildRequires:  rpm-pythonprov
14 BuildRequires:  rpmbuild(macros) >= 1.219
15 Requires:       python-modules
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 Implements a XML/HTML/XHTML Markup safe string for Python.
20
21 %prep
22 %setup -q -n %{module}-%{version}
23
24 %build
25 # CFLAGS is only for arch packages - remove on noarch packages
26 CC="%{__cc}" \
27 CFLAGS="%{rpmcflags}" \
28 %{__python} setup.py build
29
30 %install
31 rm -rf $RPM_BUILD_ROOT
32 %{__python} setup.py install \
33         --optimize=2 \
34         --root=$RPM_BUILD_ROOT
35
36 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/markupsafe/_speedups.c
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.053298 seconds and 3 git commands to generate.