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: 05b623c30cfd69ea97f0bc054b19928d
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: mysql-devel
18 BuildRequires: postgresql-devel
21 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Gammu (formerly known as MyGnokii2) is cellular manager for various
26 mobile phones and modems. It currently supports Nokia 3210, 33xx,
27 3410, 3510, 51xx, 5210, 5510, 61xx, 62xx, 63xx, 6510, 7110, 82xx,
28 8310, 9110, and 9210, and AT devices (such as Siemens, Alcatel,
29 WaveCom, IPAQ, and other). It has a command line version with many
30 functions for ringtones, phonebook, SMS, logos, WAP, date/time, alarm,
31 calls, etc. It can also make full backups and restore them.
33 %description -l pl.UTF-8
34 Gammu (poprzednio znany jako MyGnokii2) jest narzędziem do zarządzania
35 różnymi telefonami komórkowymi i modemami. Aktualnie obsługuje Nokie
36 3210, 33xx, 3410, 51xx, 5210, 5510, 61xx, 62xx, 63xx, 6510, 7110,
37 82xx, 8310, 9110 i 3210 oraz urządzenia AT (takie jak Siemens,
38 Alcatel, WaveCom, IPAQ i inne). Ma wersję działającą z linii poleceń z
39 wieloma funkcjami do dzwonków, książki telefonicznej, SMS-ów, logo,
40 WAP, daty/czasu, budzika, dzwonienia itp. Może także wykonywać pełne
41 kopie zapasowe danych i odtwarzać je.
44 Summary: Header files for Gammu tool suite for mobile phones
45 Summary(pl.UTF-8): Pliki nagłówkowe zestawu narzędzi dla telefonów komórkowych Gammu
46 Group: Development/Libraries
47 Requires: %{name} = %{epoch}:%{version}-%{release}
50 Header files for Gammu tool suite for mobile phones.
52 %description devel -l pl.UTF-8
53 Pliki nagłówkowe zestawu narzędzi dla telefonów komórkowych Gammu.
56 Summary: Gammu library
57 Summary(pl.UTF-8): Biblioteka Gammu
61 Gammu tool suite library.
63 %description devel -l pl.UTF-8
64 Biblioteka zestawu narzędzi dla telefonów komórkowych Gammu.
67 Summary: Gammu static library
68 Summary(pl.UTF-8): Biblioteka statyczna Gammu
69 Group: Development/Libraries
70 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
75 %description devel -l pl.UTF-8
76 Biblioteka statyczna zestawu narzędzi dla telefonów komórkowych Gammu.
83 cp -f VERSION cfg/autoconf/VERSION
84 mv docs/docs/english/gammu.1 .
93 --enable-7110incoming \
94 --enable-6210calendar \
95 --with-localedir=%{_datadir}/%{name}
100 rm -rf $RPM_BUILD_ROOT
101 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_examplesdir}/%{name}-%{version},%{_datadir}/%{name}}
102 %{__make} installlibonly \
103 DESTDIR=$RPM_BUILD_ROOT \
105 INSTALL_LIB_DIR=%{_libdir} \
106 INSTALL_MAN_DIR=%{_mandir}/man1 \
109 install -D gammu.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1
110 install docs/examples/config/gammurc $RPM_BUILD_ROOT%{_sysconfdir}
111 install docs/docs/locale/*.txt $RPM_BUILD_ROOT%{_datadir}/%{name}
112 cp -r docs/{examples,develop} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
113 cd $RPM_BUILD_ROOT%{_libdir}
114 ln -sf libGammu.so.1.0 libGammu.so
116 rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
119 rm -rf $RPM_BUILD_ROOT
122 %post -p /sbin/ldconfig
123 %postun -p /sbin/ldconfig
127 %defattr(644,root,root,755)
128 %doc ChangeLog docs/docs/english/gammu.htm other/bash README
129 %doc %lang(it) docs/docs/italian
130 %attr(755,root,root) %{_bindir}/%{name}
131 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gammurc
132 %dir %{_datadir}/%{name}
133 %lang(cs) %{_datadir}/%{name}/gammu_cs.txt
134 %lang(de) %{_datadir}/%{name}/gammu_de.txt
135 %lang(es) %{_datadir}/%{name}/gammu_es.txt
136 %lang(it) %{_datadir}/%{name}/gammu_it.txt
137 %lang(pl) %{_datadir}/%{name}/gammu_pl.txt
138 %lang(ru) %{_datadir}/%{name}/gammu_ru.txt
139 %{_datadir}/%{name}/gammu_us.txt
140 %{_examplesdir}/%{name}-%{version}
144 %defattr(644,root,root,755)
150 %defattr(755,root,root,755)
154 %defattr(755,root,root,755)