]> git.pld-linux.org Git - packages/python3-markupsafe.git/blob - python-MarkupSafe.spec
- missing dir
[packages/python3-markupsafe.git] / python-MarkupSafe.spec
1 %define         module  MarkupSafe
2 Summary:        Implements a XML/HTML/XHTML Markup safe string for Python
3 Summary(pl.UTF-8):      -
4 Name:           python-%{module}
5 Version:        0.11
6 Release:        0.2
7 License:        BSD
8 Group:          Development/Languages/Python
9 Source0:        http://pypi.python.org/packages/source/M/MarkupSafe/%{module}-%{version}.tar.gz
10 # Source0-md5:  48d445941c16d6aa55caf8e148fc0911
11 URL:            http://www.pocoo.org/
12 BuildRequires:  python-devel
13 BuildRequires:  rpm-pythonprov
14 # if py_postclean is used
15 BuildRequires:  rpmbuild(macros) >= 1.219
16 #Requires:              python-libs
17 Requires:               python-modules
18 #BuildArch:     noarch
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 Implements 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
31 export CFLAGS="%{rpmcflags}"
32 %{__python} setup.py build
33
34 %install
35 rm -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
45 rm -rf $RPM_BUILD_ROOT
46
47 %files
48 %defattr(644,root,root,755)
49 %doc README.rst
50 %{py_sitedir}/markupsafe/*.py[co]
51 %dir %attr(755,root,root) %{py_sitedir}/markupsafe
52 %attr(755,root,root) %{py_sitedir}/markupsafe/*.so
53 %if "%{py_ver}" > "2.4"
54 %{py_sitedir}/%{module}-*.egg-info
55 %endif
This page took 0.065039 seconds and 3 git commands to generate.