# TODO: # - build shared version (simple make shared make error that -fPIC is needed) Summary: Linux/Unix tool suite for Nokia mobile phones Summary(pl): Linuksowy/uniksowy zestaw narzędzi dla telefonów komórkowych Nokia Name: gammu Version: 0.99.0 Release: 0.2 Epoch: 1 License: GPL v2 Group: Applications/Communications Source0: http://www.mwiacek.com/zips/gsm/gammu/stable/0_9x/%{name}-%{version}.tar.gz # Source0-md5: e7e2c1366bc4ee4d4e0ddb0f56bd2772 Patch0: %{name}-etc_dir.patch Patch1: %{name}-no_nss.patch URL: http://www.mwiacek.com/gsm/soft/gammu.html BuildRequires: autoconf BuildRequires: bluez-libs-devel Provides: mygnokii2 Obsoletes: mygnokii2 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Gammu (formerly known as MyGnokii2) is cellular manager for various mobile phones and modems. It currently supports Nokia 3210, 33xx, 3410, 3510, 51xx, 5210, 5510, 61xx, 62xx, 63xx, 6510, 7110, 82xx, 8310, 9110, and 9210, and AT devices (such as Siemens, Alcatel, WaveCom, IPAQ, and other). It has a command line version with many functions for ringtones, phonebook, SMS, logos, WAP, date/time, alarm, calls, etc. It can also make full backups and restore them. %description -l pl Gammu (poprzednio znany jako MyGnokii2) jest narzędziem do zarządzania różnymi telefonami komórkowymi i modemami. Aktualnie obsługuje Nokie 3210, 33xx, 3410, 51xx, 5210, 5510, 61xx, 62xx, 63xx, 6510, 7110, 82xx, 8310, 9110 i 3210 oraz urządzenia AT (takie jak Siemens, Alcatel, WaveCom, IPAQ i inne). Ma wersję działającą z linii poleceń z wieloma funkcjami do dzwonków, książki telefonicznej, SMS-ów, logo, WAP, daty/czasu, budzika, dzwonienia itp. Może także wykonywać pełne kopie zapasowe danych i odtwarzać je. %prep %setup -q #%patch0 -p1 %patch1 %build cd cfg/autoconf %{__autoconf} %configure \ --enable-cb \ --enable-7110incoming \ --enable-6210calendar \ --enable-fbus \ --enable-mbus \ --enable-fbusirda \ --enable-phonetblue \ --enable-fbusdku5 \ --enable-fbuspl2303 \ --enable-fbusdlr3 \ --enable-obexgen \ --enable-mroutergen \ --enable-mrouterblue \ --enable-irdaphonet \ --enable-irdaobex cd ../.. %{__make} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_examplesdir}/%{name},%{_sysconfdir}} install %{name}/%{name} $RPM_BUILD_ROOT%{_bindir} install docs/examples/config/gammurc $RPM_BUILD_ROOT%{_sysconfdir} mv -f docs/docs/english/%{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1 mv -f docs/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name} mv -f docs/develop $RPM_BUILD_ROOT%{_examplesdir}/%{name} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc changelog docs/* readme.txt %attr(755,root,root) %{_bindir}/%{name} %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gammurc %{_examplesdir}/%{name} %{_mandir}/man1/*.1*