1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
%define name python-gammu
%define version 0.25
%define rel 1
%define extension bz2
Summary: Python module to communicate with mobile phones
Name: %{name}
Version: %{version}
Release: %{rel}
Source0: %{name}-%{version}.tar.%{extension}
License: GPL
%if 0%{?suse_version}
Group: Hardware/Mobile
%else
Group: Applications/Communications
%endif
Packager: Michal Cihar <michal@cihar.com>
Vendor: Michal Cihar <michal@cihar.com>
BuildRequires: gammu-devel >= 1.18.91 python-devel
Url: http://cihar.com/gammu/wammu
Buildroot: %{_tmppath}/%name-%version-root
Requires: python
%description
This provides gammu module, that can work with any phone Gammu
supports - many Nokias, Siemens, Alcatel, ...
%prep
%setup
%build
CFLAGS="$RPM_OPT_FLAGS" python setup.py build
%install
python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
%clean
rm -rf $RPM_BUILD_ROOT
%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc README AUTHORS COPYING ChangeLog examples
|