]> git.pld-linux.org Git - projects/template-specs.git/blob - python.spec
- CFLAGs
[projects/template-specs.git] / python.spec
1 Summary:        -
2 Summary(pl.UTF-8):      -
3 Name:           python-
4 Version:        _
5 Release:        0.1
6 License:        - (enter GPL/GPL v2/GPL v3/LGPL/BSD/BSD-like/other license name here)
7 Group:          Development/Languages/Python
8 Source0:        %{name}-%{version}.tar.gz
9 # Source0-md5:  -
10 URL:            -
11 BuildRequires:  python-devel
12 BuildRequires:  rpm-pythonprov
13 # if py_postclean is used
14 BuildRequires:  rpmbuild(macros) >= 1.219
15 #%pyrequires_eq python-libs
16 %pyrequires_eq  python-modules
17 #BuildArch:     noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21
22 %prep
23 %setup -q -n TEMPLATE-python
24
25 %build
26 export CFLAGS="%{rpmcflags}"
27 %{__python} setup.py build
28
29 %install
30 rm -rf $RPM_BUILD_ROOT
31 %{__python} setup.py install \
32         --optimize=2 \
33         --root=$RPM_BUILD_ROOT
34
35 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
36 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
37 %py_postclean
38
39 %clean
40 rm -rf $RPM_BUILD_ROOT
41
42 %files
43 %defattr(644,root,root,755)
44 %doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO
45 %{py_sitedir}/*.py[co]
46 %attr(755,root,root) %{py_sitedir}/*.so
47 %if "%{py_ver}" > "2.4"
48 %{py_sitedir}/TEMPLATE-*.egg-info
49 %endif
This page took 0.058904 seconds and 4 git commands to generate.