1 Summary: GNU tool suite for mobile phones
2 Summary(pl.UTF-8): Zestaw narzędzi GNU dla telefonów komórkowych
8 Group: Applications/Communications
9 Source0: http://dl.cihar.com/gammu/releases/%{name}-%{version}.tar.bz2
10 # Source0-md5: a7657a6053bcb6212c7287ac99d21015
11 Patch0: %{name}-etc_dir.patch
12 Patch1: %{name}-no_nss.patch
13 Patch2: %{name}-libpq_dir.patch
14 URL: http://www.gammu.org/
15 BuildRequires: autoconf
16 BuildRequires: bluez-libs-devel
17 BuildRequires: gettext-devel
18 BuildRequires: mysql-devel
19 BuildRequires: postgresql-devel
22 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Gammu (formerly known as MyGnokii2) is cellular manager for various
27 mobile phones and modems. It currently supports Nokia 3210, 33xx,
28 3410, 3510, 51xx, 5210, 5510, 61xx, 62xx, 63xx, 6510, 7110, 82xx,
29 8310, 9110, and 9210, and AT devices (such as Siemens, Alcatel,
30 WaveCom, IPAQ, and other). It has a command line version with many
31 functions for ringtones, phonebook, SMS, logos, WAP, date/time, alarm,
32 calls, etc. It can also make full backups and restore them.
34 %description -l pl.UTF-8
35 Gammu (poprzednio znany jako MyGnokii2) jest narzędziem do zarządzania
36 różnymi telefonami komórkowymi i modemami. Aktualnie obsługuje Nokie
37 3210, 33xx, 3410, 51xx, 5210, 5510, 61xx, 62xx, 63xx, 6510, 7110,
38 82xx, 8310, 9110 i 3210 oraz urządzenia AT (takie jak Siemens,
39 Alcatel, WaveCom, IPAQ i inne). Ma wersję działającą z linii poleceń z
40 wieloma funkcjami do dzwonków, książki telefonicznej, SMS-ów, logo,
41 WAP, daty/czasu, budzika, dzwonienia itp. Może także wykonywać pełne
42 kopie zapasowe danych i odtwarzać je.
45 Summary: Header files for Gammu tool suite for mobile phones
46 Summary(pl.UTF-8): Pliki nagłówkowe zestawu narzędzi dla telefonów komórkowych Gammu
47 Group: Development/Libraries
48 Requires: %{name} = %{epoch}:%{version}-%{release}
51 Header files for Gammu tool suite for mobile phones.
53 %description devel -l pl.UTF-8
54 Pliki nagłówkowe zestawu narzędzi dla telefonów komórkowych Gammu.
57 Summary: Gammu library
58 Summary(pl.UTF-8): Biblioteka Gammu
62 Gammu tool suite library.
64 %description devel -l pl.UTF-8
65 Biblioteka zestawu narzędzi dla telefonów komórkowych Gammu.
68 Summary: Gammu static library
69 Summary(pl.UTF-8): Biblioteka statyczna Gammu
70 Group: Development/Libraries
71 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
76 %description devel -l pl.UTF-8
77 Biblioteka statyczna zestawu narzędzi dla telefonów komórkowych Gammu.
84 cp -f VERSION cfg/autoconf/VERSION
85 mv docs/user/gammu.1 .
94 --enable-7110incoming \
95 --enable-6210calendar \
96 --with-localedir=%{_datadir}/%{name}
101 rm -rf $RPM_BUILD_ROOT
102 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_examplesdir}/%{name}-%{version},%{_datadir}/%{name}}
103 %{__make} installlibonly installlocales \
104 DESTDIR=$RPM_BUILD_ROOT \
106 INSTALL_LIB_DIR=%{_libdir} \
107 INSTALL_MAN_DIR=%{_mandir}/man1 \
110 install -D gammu.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1
111 install docs/examples/config/gammurc $RPM_BUILD_ROOT%{_sysconfdir}
112 cp -r docs/{examples,develop} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
114 cd $RPM_BUILD_ROOT%{_libdir}
115 ln -sf libGammu.so.1.0 libGammu.so
117 rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
120 rm -rf $RPM_BUILD_ROOT
123 %post -p /sbin/ldconfig
124 %postun -p /sbin/ldconfig
127 %files -f %{name}.lang
128 %defattr(644,root,root,755)
129 %doc ChangeLog docs/user/gammu.htm docs/user/readme.htm other/bash README
130 %doc %lang(it) docs/user/gammu.it.txt docs/user/readme.it.txt
131 %attr(755,root,root) %{_bindir}/%{name}
132 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gammurc
133 %dir %{_datadir}/%{name}
134 %{_examplesdir}/%{name}-%{version}
138 %defattr(644,root,root,755)
144 %defattr(755,root,root,755)
148 %defattr(755,root,root,755)