- up to 0.15
[packages/python3-markupsafe.git] / python-MarkupSafe.spec
CommitLineData
a79f2bec 1%define module MarkupSafe
2Summary: Implements a XML/HTML/XHTML Markup safe string for Python
bcfd65ee 3#Summary(pl.UTF-8): -
a79f2bec 4Name: python-%{module}
bcfd65ee 5Version: 0.15
de06c194 6Release: 0.2
a79f2bec 7License: BSD
8Group: Development/Languages/Python
9Source0: http://pypi.python.org/packages/source/M/MarkupSafe/%{module}-%{version}.tar.gz
bcfd65ee 10# Source0-md5: 4e7c4d965fe5e033fa2d7bb7746bb186
a79f2bec 11URL: http://www.pocoo.org/
12BuildRequires: python-devel
933a582b 13BuildRequires: python-setuptools
a79f2bec 14BuildRequires: rpm-pythonprov
a79f2bec 15BuildRequires: rpmbuild(macros) >= 1.219
933a582b 16Requires: python-modules
a79f2bec 17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%description
20Implements a XML/HTML/XHTML Markup safe string for Python.
21
bcfd65ee 22#%description -l pl.UTF-8
a79f2bec 23
24%prep
25%setup -q -n %{module}-%{version}
26
27%build
28# CFLAGS is only for arch packages - remove on noarch packages
29export CFLAGS="%{rpmcflags}"
30%{__python} setup.py build
31
32%install
33rm -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
43rm -rf $RPM_BUILD_ROOT
44
45%files
46%defattr(644,root,root,755)
47%doc README.rst
48%{py_sitedir}/markupsafe/*.py[co]
933a582b 49%dir %{py_sitedir}/markupsafe
a79f2bec 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.076727 seconds and 4 git commands to generate.