1 Summary: Tool suite for mobile phones
2 Summary(pl.UTF-8): Zestaw narzędzi do telefonów komórkowych
8 Group: Applications/Communications
9 Source0: http://dl.cihar.com/gammu/releases/%{name}-%{version}.tar.bz2
10 # Source0-md5: 320f2a6fa5e0510cc5200f9bef15f92e
11 Source1: %{name}-smsd.init
12 Source2: %{name}-smsd.sysconfig
13 Patch0: %{name}-etc_dir.patch
14 URL: http://www.gammu.org/
15 BuildRequires: bluez-libs-devel
16 BuildRequires: cmake >= 2.4.6
17 BuildRequires: curl-devel
18 BuildRequires: gettext-devel
19 BuildRequires: mysql-devel
20 BuildRequires: postgresql-devel
21 BuildRequires: python-devel >= 1:2.5
22 BuildRequires: rpm-pythonprov
23 BuildRequires: rpmbuild(macros) >= 1.293
24 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
25 Suggests: %{name}-smsd = %{epoch}:%{version}-%{release}
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 Gammu (formerly known as MyGnokii2) is cellular manager for various
32 mobile phones and modems. It currently supports Nokia 3210, 33xx,
33 3410, 3510, 51xx, 5210, 5510, 61xx, 62xx, 63xx, 6510, 7110, 82xx,
34 8310, 9110, and 9210, and AT devices (such as Siemens, Alcatel,
35 WaveCom, IPAQ, and other). It has a command line version with many
36 functions for ringtones, phonebook, SMS, logos, WAP, date/time, alarm,
37 calls, etc. It can also make full backups and restore them.
39 %description -l pl.UTF-8
40 Gammu (poprzednio znany jako MyGnokii2) jest narzędziem do zarządzania
41 różnymi telefonami komórkowymi i modemami. Aktualnie obsługuje Nokie
42 3210, 33xx, 3410, 51xx, 5210, 5510, 61xx, 62xx, 63xx, 6510, 7110,
43 82xx, 8310, 9110 i 3210 oraz urządzenia AT (takie jak Siemens,
44 Alcatel, WaveCom, IPAQ i inne). Ma wersję działającą z linii poleceń z
45 wieloma funkcjami do dzwonków, książki telefonicznej, SMS-ów, logo,
46 WAP, daty/czasu, budzika, dzwonienia itp. Może także wykonywać pełne
47 kopie zapasowe danych i odtwarzać je.
50 Summary: Gammu SMS Daemon
51 Summary(pl.UTF-8): Demon SMS Gammu
52 Group: Applications/Communications
53 Requires: %{name} = %{epoch}:%{version}-%{release}
56 Gammu SMS Daemon is a program that periodically scans GSM modem for
57 received messages, stores them in defined storage and also sends
58 messages enqueued in this storage. It is perfect tool for managing big
59 amounts of received or sent messages and automatically process them.
61 %description smsd -l pl.UTF-8
62 Demon SMS Gammu jest programem, któr okresowo sprawdza czy modem GSM
63 odebrał jakieś wiadomości, przechowuje je w zdefiniowanym
64 zasobie a także wysyła wiadomości skolejkowane w tym zasobie.
65 Jest idealnym narzędziem do zarządzania dużą ilością
66 otrzymanych lub wysyłanych wiadomości i atomatycznego
70 Summary: Gammu library
71 Summary(pl.UTF-8): Biblioteka Gammu
75 Gammu tool suite library.
77 %description libs -l pl.UTF-8
78 Biblioteka zestawu narzędzi dla telefonów komórkowych Gammu.
81 Summary: Header files for Gammu tool suite for mobile phones
82 Summary(pl.UTF-8): Pliki nagłówkowe zestawu narzędzi dla telefonów komórkowych Gammu
83 Group: Development/Libraries
84 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
85 Requires: bluez-libs-devel
88 Header files for Gammu tool suite for mobile phones.
90 %description devel -l pl.UTF-8
91 Pliki nagłówkowe zestawu narzędzi dla telefonów komórkowych Gammu.
93 %package -n python-gammu
94 Summary: Python bingings for Gammu library
95 Summary(pl.UTF-8): Wiązania języka Python dla biblioteki Gammu
96 Group: Development/Languages/Python
97 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
98 %pyrequires_eq python-modules
100 %description -n python-gammu
101 Python bingings for Gammu library.
103 %description -n python-gammu -l pl.UTF-8
104 Wiązania języka Python dla biblioteki Gammu.
107 Summary: Gammu static library
108 Summary(pl.UTF-8): Biblioteka statyczna Gammu
109 Group: Development/Libraries
110 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
113 Gammu static library.
115 %description static -l pl.UTF-8
116 Biblioteka statyczna zestawu narzędzi dla telefonów komórkowych Gammu.
118 %package -n bash-completion-gammu
119 Summary: bash-completion for gammu
120 Summary(pl.UTF-8): bashowe uzupełnianie nazw dla gammu
121 Group: Applications/Shells
122 Requires: %{name} = %{epoch}:%{version}-%{release}
123 Requires: bash-completion
125 %description -n bash-completion-gammu
126 This package provides bash-completion for gammu.
128 %description -n bash-completion-gammu -l pl.UTF-8
129 Pakiet ten dostarcza bashowe uzupełnianie nazw dla gammu.
139 -DCMAKE_INSTALL_PREFIX="%{_prefix}" \
140 -DCMAKE_VERBOSE_MAKEFILE=ON \
141 -DBUILD_SHARED_LIBS=OFF \
142 -DINSTALL_LIB_DIR=%{_lib} \
143 -DINSTALL_LIBDATA_DIR=%{_libdir} \
144 %{?debug:-DCMAKE_BUILD_TYPE="Debug"}
146 mv libgammu/libGammu.a ..
147 mv smsd/libgsmsd.a ..
149 -DCMAKE_INSTALL_PREFIX="%{_prefix}" \
150 -DCMAKE_VERBOSE_MAKEFILE=ON \
151 -DBUILD_SHARED_LIBS=ON \
152 -DINSTALL_LIB_DIR=%{_lib} \
153 -DINSTALL_LIBDATA_DIR=%{_libdir} \
154 %{?debug:-DCMAKE_BUILD_TYPE="Debug"}
158 rm -rf $RPM_BUILD_ROOT
159 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_examplesdir}/%{name}-%{version}}
161 %{__make} -C build install \
162 DESTDIR=$RPM_BUILD_ROOT
164 install docs/config/gammurc $RPM_BUILD_ROOT%{_sysconfdir}
165 cp -r docs/develop $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
166 install libGammu.a $RPM_BUILD_ROOT%{_libdir}
167 install libgsmsd.a $RPM_BUILD_ROOT%{_libdir}
168 install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name}-smsd $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
169 install docs/config/smsdrc $RPM_BUILD_ROOT%{_sysconfdir}/%{name}-smsd/ttyS0.conf
170 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-smsd
171 cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}-smsd
172 install -d $RPM_BUILD_ROOT/%{_varrun}/%{name}-smsd
173 install -d $RPM_BUILD_ROOT/%{_sharedstatedir}/%{name}-smsd
178 rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
181 chmod 755 $RPM_BUILD_ROOT%{_libdir}/lib*.so*
184 rm -rf $RPM_BUILD_ROOT
186 %post libs -p /sbin/ldconfig
187 %postun libs -p /sbin/ldconfig
190 %groupadd -g 251 gammu-smsd
191 %useradd -u 251 -d /var/lib/gammu-smsd -s /bin/false -c "Gammu SMSD user" -G dialout -g gammu-smsd gammu-smsd
194 /sbin/chkconfig --add gammu-smsd
195 %service gammu-smsd restart "Gammu SMSD"
198 if [ "$1" = "0" ]; then
199 %service gammu-smsd stop
200 /sbin/chkconfig --del gammu-smsd
204 if [ "$1" = "0" ]; then
205 %groupremove gammu-smsd
206 %userremove gammu-smsd
209 %files -f %{name}.lang
210 %defattr(644,root,root,755)
211 %doc AUTHORS BUGS ChangeLog docs/user/gammu.html docs/user/readme.html README README.Python SUPPORTERS
212 %doc %lang(it) docs/user/gammu.it.txt docs/user/readme.it.txt
213 %attr(755,root,root) %{_bindir}/%{name}
214 %attr(755,root,root) %{_bindir}/jadmaker
215 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gammurc
216 %{_examplesdir}/%{name}-%{version}
217 %{_mandir}/man[157]/*
218 %lang(cs) %{_mandir}/cs/man[157]/*
221 %defattr(640,root,root,750)
223 %attr(755,root,root) %{_bindir}/gammu-smsd
224 %attr(755,root,root) %{_bindir}/gammu-smsd-inject
225 %attr(755,root,root) %{_bindir}/gammu-smsd-monitor
226 %attr(754,root,root) /etc/rc.d/init.d/%{name}-smsd
227 %config(noreplace) /etc/sysconfig/%{name}-smsd
228 %{_sysconfdir}/%{name}-smsd
229 %attr(750,root,gammu-smsd) %{_varrun}/%{name}-smsd
230 %attr(750,gammu-smsd,gammu-smsd) %{_sharedstatedir}/%{name}-smsd
232 %files libs -f libgammu.lang
233 %defattr(644,root,root,755)
234 %attr(755,root,root) %{_libdir}/libGammu.so.*.*
235 %attr(755,root,root) %{_libdir}/libgsmsd.so.*.*.*.*
236 %attr(755,root,root) %ghost %{_libdir}/libgsmsd.so.?
237 %attr(755,root,root) %ghost %{_libdir}/libGammu.so.?
240 %defattr(644,root,root,755)
241 %attr(755,root,root) %{_bindir}/%{name}-config
242 %attr(755,root,root) %{_libdir}/libGammu.so
243 %attr(755,root,root) %{_libdir}/libgsmsd.so
245 %dir %{py_sitedir}/gammu/
246 %attr(755,root,root) %{py_sitedir}/gammu/_gammu.so
247 %{_pkgconfigdir}/gammu.pc
248 %{_pkgconfigdir}/gammu-smsd.pc
250 %files -n python-gammu
251 %defattr(644,root,root,755)
252 %dir %{py_sitedir}/gammu
253 %attr(755,root,root) %{py_sitedir}/gammu/*.so
254 %{py_sitedir}/gammu/*.py
257 %defattr(644,root,root,755)
258 %{_libdir}/libgsmsd.a
259 %{_libdir}/libGammu.a
261 %files -n bash-completion-gammu
262 %defattr(644,root,root,755)
263 %{_sysconfdir}/bash_completion.d/gammu