6 %define python_gammu_req
0.24
8 %if %{!?py_ver:1}0 == 10
9 %define py_ver %
(python
-c "import sys
; v
=sys.version_info
[:2]; print '%
%d.%
%d'%
%v"
2>/dev
/null ||
echo PYTHON
-NOT
-FOUND
)
12 %define py_minver
%py_ver
13 %define py_maxver %
(python
-c "import sys
; a
,b
=sys.version_info
[:2]; print '%
%d.%
%d'%%
(a
,b
+1)"
2>/dev
/null ||
echo PYTHON
-NOT
-FOUND
)
15 Summary: Mobile phone manager
19 Source0: %{name}-%{version}.tar.%{extension}
22 Group: Hardware
/Mobile
24 Group: Applications
/Communications
26 Packager: Michal Cihar
<michal@cihar.com
>
27 Vendor: Michal Cihar
<michal@cihar.com
>
30 Requires: wxPython
>= 2.6, python
-gammu
>= %{python_gammu_req}, python
>= %py_minver, python
< %py_maxver
31 BuildRequires
: python
, python
-devel
34 Buildroot: %{_tmppath}/%name-%version-root
38 Mobile phone manager using Gammu as it's backend. It works with any phone Gammu
39 supports
- many Nokias
, Siemens
, Alcatel
, ... Written using wxGTK.
45 CFLAGS
="$RPM_OPT_FLAGS" python setup.py build
--skip
-deps
48 python setup.py
install --skip
-deps
--root
=$RPM_BUILD_ROOT
--record
=INSTALLED_FILES
--prefix
=%{_prefix}
49 sed
-i '
/man1
/ D' INSTALLED_FILES
52 rm -rf $RPM_BUILD_ROOT
54 %files -f INSTALLED_FILES
56 %doc README AUTHORS FAQ COPYING ChangeLog
57 %doc %{_mandir}/man1
/*