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