1 Summary: Linux/Unix tool suite for Nokia mobile phones
2 Summary(pl.UTF-8): Linuksowy/uniksowy zestaw narzędzi dla telefonów komórkowych Nokia
8 Group: Applications/Communications
9 Source0: http://www.mwiacek.com/zips/gsm/gammu/stable/1_0x/%{name}-%{version}.tar.gz
10 # Source0-md5: b706e35a6f003acc47f8c2bb71fa8036
11 Patch0: %{name}-etc_dir.patch
12 Patch1: %{name}-no_nss.patch
13 URL: http://www.gammu.org/
14 BuildRequires: autoconf
15 BuildRequires: bluez-libs-devel
16 BuildRequires: mysql-devel
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Gammu (formerly known as MyGnokii2) is cellular manager for various
23 mobile phones and modems. It currently supports Nokia 3210, 33xx,
24 3410, 3510, 51xx, 5210, 5510, 61xx, 62xx, 63xx, 6510, 7110, 82xx,
25 8310, 9110, and 9210, and AT devices (such as Siemens, Alcatel,
26 WaveCom, IPAQ, and other). It has a command line version with many
27 functions for ringtones, phonebook, SMS, logos, WAP, date/time, alarm,
28 calls, etc. It can also make full backups and restore them.
30 %description -l pl.UTF-8
31 Gammu (poprzednio znany jako MyGnokii2) jest narzędziem do zarządzania
32 różnymi telefonami komórkowymi i modemami. Aktualnie obsługuje Nokie
33 3210, 33xx, 3410, 51xx, 5210, 5510, 61xx, 62xx, 63xx, 6510, 7110,
34 82xx, 8310, 9110 i 3210 oraz urządzenia AT (takie jak Siemens,
35 Alcatel, WaveCom, IPAQ i inne). Ma wersję działającą z linii poleceń z
36 wieloma funkcjami do dzwonków, książki telefonicznej, SMS-ów, logo,
37 WAP, daty/czasu, budzika, dzwonienia itp. Może także wykonywać pełne
38 kopie zapasowe danych i odtwarzać je.
44 cp -f version cfg/autoconf/VERSION
45 mv docs/docs/english/gammu.1 .
54 --enable-7110incoming \
55 --enable-6210calendar \
56 --with-localedir=%{_datadir}/%{name}
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_examplesdir}/%{name}-%{version},%{_datadir}/%{name}}
63 %{__make} installlocales installlibonly \
64 DESTDIR=$RPM_BUILD_ROOT \
66 INSTALL_LIB_DIR=%{_libdir} \
67 INSTALL_MAN_DIR=%{_mandir}/man1 \
70 install -D gammu.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1
71 install docs/examples/config/gammurc $RPM_BUILD_ROOT%{_sysconfdir}
72 cp -r docs/{examples,develop} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
74 rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
75 # anybody feels like developing gammu-based apps?
76 rm -rf $RPM_BUILD_ROOT{%{_includedir},%{_libdir}/{*.{so,a},pkgconfig}}
79 rm -rf $RPM_BUILD_ROOT
81 %post -p /sbin/ldconfig
82 %postun -p /sbin/ldconfig
85 %defattr(644,root,root,755)
86 %doc changelog docs/docs/english/gammu.htm other/bash readme.txt
87 %doc %lang(it) docs/docs/italian
88 %attr(755,root,root) %{_bindir}/%{name}
89 %attr(755,root,root) %{_libdir}/*.so.*
90 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gammurc
91 %dir %{_datadir}/%{name}
92 %lang(cs) %{_datadir}/gammu/gammu_cs.txt
93 %lang(de) %{_datadir}/gammu/gammu_de.txt
94 %lang(es) %{_datadir}/gammu/gammu_es.txt
95 %lang(it) %{_datadir}/gammu/gammu_it.txt
96 %lang(pl) %{_datadir}/gammu/gammu_pl.txt
97 %lang(ru) %{_datadir}/gammu/gammu_ru.txt
98 %{_datadir}/gammu/gammu_us.txt
99 %{_examplesdir}/%{name}-%{version}