]> git.pld-linux.org Git - packages/python-gammu.git/blame - python-gammu.spec
automatic change: use py_build/py_install macros
[packages/python-gammu.git] / python-gammu.spec
CommitLineData
52e29253
AZ
1%define module python-gammu
2Summary: Python bindings for Gammu library.
3Name: %{module}
4Version: 2.3
882253ef 5Release: 2
52e29253
AZ
6License: GPL v2
7Group: Development/Languages/Python
8Source0: http://dl.cihar.com/python-gammu/%{module}-%{version}.tar.bz2
9# Source0-md5: e92b13cb6fa9681c48981340ffadd251
10URL: http://http://wammu.eu/python-gammu/
11BuildRequires: gammu-devel >= 1.34.0
12BuildRequires: python-devel
13BuildRequires: rpm-pythonprov
14BuildRequires: rpmbuild(macros) >= 1.219
15Requires: glibc >= 2.4
16Requires: python-modules
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%description
20Python bindings for Gammu library.
21
22%prep
23%setup -q -n %{module}-%{version}
24
25%build
f520967b 26%py_build
52e29253
AZ
27
28%install
29rm -rf $RPM_BUILD_ROOT
30install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
f520967b 31%py_install
52e29253
AZ
32
33%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
34%py_comp $RPM_BUILD_ROOT%{py_sitedir}
35%py_postclean
36
37install examples/data/*.* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/data
38install examples/*.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
39#install examples/data/*.* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/data
40
41%clean
42rm -rf $RPM_BUILD_ROOT
43
44%files
45%defattr(644,root,root,755)
46%dir %{py_sitedir}/gammu
47%attr(755,root,root) %{py_sitedir}/gammu/*.so
48%{py_sitedir}/gammu/*.py[co]
49%{py_sitedir}/python_gammu-%{version}-py*.egg-info
50%{_examplesdir}/%{name}-%{version}
This page took 0.083855 seconds and 4 git commands to generate.