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