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