]> git.pld-linux.org Git - projects/template-specs.git/blame - python.spec
- CMAKE_BUILD_TYPE fix
[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
e6f4b058 23%description -l pl.UTF-8
24
7170a7b1 25%prep
641675c1 26%setup -q -n %{module}-%{version}
7170a7b1
ER
27
28%build
47501bae 29export CFLAGS="%{rpmcflags}"
7592d76f 30%{__python} setup.py build
7170a7b1
ER
31
32%install
33rm -rf $RPM_BUILD_ROOT
7592d76f 34%{__python} setup.py install \
7170a7b1
ER
35 --optimize=2 \
36 --root=$RPM_BUILD_ROOT
37
e5a26a61
ER
38%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
39%py_comp $RPM_BUILD_ROOT%{py_sitedir}
40%py_postclean
41
7170a7b1
ER
42%clean
43rm -rf $RPM_BUILD_ROOT
44
7170a7b1
ER
45%files
46%defattr(644,root,root,755)
47%doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO
e5a26a61
ER
48%{py_sitedir}/*.py[co]
49%attr(755,root,root) %{py_sitedir}/*.so
ef0b62a1 50%if "%{py_ver}" > "2.4"
47501bae 51%{py_sitedir}/TEMPLATE-*.egg-info
ef278603 52%endif
This page took 0.102639 seconds and 4 git commands to generate.