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