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