]>
Commit | Line | Data |
---|---|---|
bc4e3c70 TP |
1 | Summary: Tool suite for mobile phones |
2 | Summary(pl.UTF-8): Zestaw narzędzi do telefonów komórkowych | |
e4c35d43 | 3 | Name: gammu |
836fe380 | 4 | Version: 1.30.0 |
5 | Release: 1 | |
f836a189 | 6 | Epoch: 1 |
2585acb8 | 7 | License: GPL v2+ |
f836a189 | 8 | Group: Applications/Communications |
ed422299 | 9 | Source0: http://dl.cihar.com/gammu/releases/%{name}-%{version}.tar.xz |
836fe380 | 10 | # Source0-md5: 3b76973d0c398519a876d203926420a6 |
202fe725 | 11 | Source1: %{name}-smsd.init |
12 | Source2: %{name}-smsd.sysconfig | |
e721ad3e | 13 | Patch0: %{name}-etc_dir.patch |
836fe380 | 14 | Patch1: %{name}-werror.patch |
a331b5e4 | 15 | URL: http://www.gammu.org/ |
54d86c80 | 16 | BuildRequires: bluez-libs-devel |
281fa2ca | 17 | BuildRequires: cmake >= 2.4.6 |
8f45ba1e | 18 | BuildRequires: curl-devel |
9ab30125 | 19 | BuildRequires: gettext-devel |
101d1802 | 20 | BuildRequires: mysql-devel |
736b1f60 | 21 | BuildRequires: postgresql-devel |
3ca020a3 | 22 | BuildRequires: python-devel >= 1:2.5 |
3ca020a3 | 23 | BuildRequires: rpm-pythonprov |
ed422299 | 24 | BuildRequires: rpmbuild(macros) >= 1.600 |
25 | BuildRequires: tar >= 1:1.22 | |
26 | BuildRequires: xz >= 1:4.999.7 | |
3b248c9a | 27 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
202fe725 | 28 | Suggests: %{name}-smsd = %{epoch}:%{version}-%{release} |
e4c35d43 PG |
29 | Provides: mygnokii2 |
30 | Obsoletes: mygnokii2 | |
f836a189 | 31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
33 | %description | |
e4c35d43 | 34 | Gammu (formerly known as MyGnokii2) is cellular manager for various |
99e7d737 JB |
35 | mobile phones and modems. It currently supports Nokia 3210, 33xx, |
36 | 3410, 3510, 51xx, 5210, 5510, 61xx, 62xx, 63xx, 6510, 7110, 82xx, | |
37 | 8310, 9110, and 9210, and AT devices (such as Siemens, Alcatel, | |
38 | WaveCom, IPAQ, and other). It has a command line version with many | |
39 | functions for ringtones, phonebook, SMS, logos, WAP, date/time, alarm, | |
40 | calls, etc. It can also make full backups and restore them. | |
41 | ||
1b85dc8f JR |
42 | %description -l pl.UTF-8 |
43 | Gammu (poprzednio znany jako MyGnokii2) jest narzędziem do zarządzania | |
44 | różnymi telefonami komórkowymi i modemami. Aktualnie obsługuje Nokie | |
99e7d737 | 45 | 3210, 33xx, 3410, 51xx, 5210, 5510, 61xx, 62xx, 63xx, 6510, 7110, |
1b85dc8f JR |
46 | 82xx, 8310, 9110 i 3210 oraz urządzenia AT (takie jak Siemens, |
47 | Alcatel, WaveCom, IPAQ i inne). Ma wersję działającą z linii poleceń z | |
48 | wieloma funkcjami do dzwonków, książki telefonicznej, SMS-ów, logo, | |
49 | WAP, daty/czasu, budzika, dzwonienia itp. Może także wykonywać pełne | |
50 | kopie zapasowe danych i odtwarzać je. | |
f836a189 | 51 | |
202fe725 | 52 | %package smsd |
53 | Summary: Gammu SMS Daemon | |
54 | Summary(pl.UTF-8): Demon SMS Gammu | |
55 | Group: Applications/Communications | |
56 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
57 | ||
58 | %description smsd | |
59 | Gammu SMS Daemon is a program that periodically scans GSM modem for | |
60 | received messages, stores them in defined storage and also sends | |
61 | messages enqueued in this storage. It is perfect tool for managing big | |
62 | amounts of received or sent messages and automatically process them. | |
63 | ||
64 | %description smsd -l pl.UTF-8 | |
ed422299 | 65 | Demon SMS Gammu jest programem, który okresowo sprawdza czy modem GSM |
1bb8440d | 66 | odebrał jakieś wiadomości, przechowuje je w zdefiniowanym zasobie a |
67 | także wysyła wiadomości skolejkowane w tym zasobie. Jest idealnym | |
68 | narzędziem do zarządzania dużą ilością otrzymanych lub wysyłanych | |
ed422299 | 69 | wiadomości i automatycznego przetwarzania ich. |
202fe725 | 70 | |
e9da6d17 | 71 | %package libs |
736b1f60 | 72 | Summary: Gammu library |
73 | Summary(pl.UTF-8): Biblioteka Gammu | |
74 | Group: Libraries | |
e9da6d17 | 75 | |
76 | %description libs | |
77 | Gammu tool suite library. | |
78 | ||
35238559 | 79 | %description libs -l pl.UTF-8 |
e9da6d17 | 80 | Biblioteka zestawu narzędzi dla telefonów komórkowych Gammu. |
81 | ||
3b248c9a JB |
82 | %package devel |
83 | Summary: Header files for Gammu tool suite for mobile phones | |
84 | Summary(pl.UTF-8): Pliki nagłówkowe zestawu narzędzi dla telefonów komórkowych Gammu | |
85 | Group: Development/Libraries | |
86 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
a860cb8f | 87 | Requires: bluez-libs-devel |
3b248c9a JB |
88 | |
89 | %description devel | |
90 | Header files for Gammu tool suite for mobile phones. | |
91 | ||
92 | %description devel -l pl.UTF-8 | |
93 | Pliki nagłówkowe zestawu narzędzi dla telefonów komórkowych Gammu. | |
94 | ||
3ca020a3 | 95 | %package -n python-gammu |
96 | Summary: Python bingings for Gammu library | |
97 | Summary(pl.UTF-8): Wiązania języka Python dla biblioteki Gammu | |
98 | Group: Development/Languages/Python | |
40579025 | 99 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
3ca020a3 | 100 | %pyrequires_eq python-modules |
3ca020a3 | 101 | |
102 | %description -n python-gammu | |
103 | Python bingings for Gammu library. | |
104 | ||
2585acb8 | 105 | %description -n python-gammu -l pl.UTF-8 |
3ca020a3 | 106 | Wiązania języka Python dla biblioteki Gammu. |
107 | ||
e9da6d17 | 108 | %package static |
736b1f60 | 109 | Summary: Gammu static library |
110 | Summary(pl.UTF-8): Biblioteka statyczna Gammu | |
111 | Group: Development/Libraries | |
3b248c9a | 112 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
e9da6d17 | 113 | |
114 | %description static | |
115 | Gammu static library. | |
116 | ||
35238559 | 117 | %description static -l pl.UTF-8 |
e9da6d17 | 118 | Biblioteka statyczna zestawu narzędzi dla telefonów komórkowych Gammu. |
119 | ||
1b61967a BZ |
120 | %package -n bash-completion-gammu |
121 | Summary: bash-completion for gammu | |
122 | Summary(pl.UTF-8): bashowe uzupełnianie nazw dla gammu | |
123 | Group: Applications/Shells | |
5e34605d | 124 | Requires: %{name} = %{epoch}:%{version}-%{release} |
2585acb8 | 125 | Requires: bash-completion |
1b61967a BZ |
126 | |
127 | %description -n bash-completion-gammu | |
128 | This package provides bash-completion for gammu. | |
129 | ||
130 | %description -n bash-completion-gammu -l pl.UTF-8 | |
131 | Pakiet ten dostarcza bashowe uzupełnianie nazw dla gammu. | |
132 | ||
f836a189 | 133 | %prep |
44bab158 | 134 | %setup -q |
8f45ba1e | 135 | %patch0 -p1 |
836fe380 | 136 | %patch1 -p1 |
f836a189 | 137 | |
138 | %build | |
35238559 TP |
139 | mkdir -p build |
140 | cd build | |
2314bcd8 | 141 | %cmake .. \ |
8f45ba1e | 142 | -DBUILD_SHARED_LIBS=OFF \ |
5e447162 MB |
143 | -DINSTALL_LIB_DIR=%{_lib} \ |
144 | -DINSTALL_LIBDATA_DIR=%{_libdir} \ | |
ed422299 | 145 | -DBUILD_PYTHON=%{_bindir}/python%{py_ver} |
36390489 | 146 | %{__make} |
6baa676b | 147 | mv libgammu/libGammu.a .. |
148 | mv smsd/libgsmsd.a .. | |
2314bcd8 | 149 | %cmake .. \ |
8f45ba1e | 150 | -DBUILD_SHARED_LIBS=ON \ |
5e447162 MB |
151 | -DINSTALL_LIB_DIR=%{_lib} \ |
152 | -DINSTALL_LIBDATA_DIR=%{_libdir} \ | |
ed422299 | 153 | -DBUILD_PYTHON=%{_bindir}/python%{py_ver} |
36390489 | 154 | %{__make} |
f836a189 | 155 | |
156 | %install | |
157 | rm -rf $RPM_BUILD_ROOT | |
35238559 | 158 | install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_examplesdir}/%{name}-%{version}} |
3b248c9a JB |
159 | |
160 | %{__make} -C build install \ | |
35238559 | 161 | DESTDIR=$RPM_BUILD_ROOT |
35238559 | 162 | |
6baa676b | 163 | install docs/config/gammurc $RPM_BUILD_ROOT%{_sysconfdir} |
ed422299 | 164 | #cp -r docs/develop $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
35238559 | 165 | install libGammu.a $RPM_BUILD_ROOT%{_libdir} |
6baa676b | 166 | install libgsmsd.a $RPM_BUILD_ROOT%{_libdir} |
202fe725 | 167 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name}-smsd $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} |
168 | install docs/config/smsdrc $RPM_BUILD_ROOT%{_sysconfdir}/%{name}-smsd/ttyS0.conf | |
169 | install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-smsd | |
170 | cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}-smsd | |
171 | install -d $RPM_BUILD_ROOT/%{_varrun}/%{name}-smsd | |
172 | install -d $RPM_BUILD_ROOT/%{_sharedstatedir}/%{name}-smsd | |
6baa676b | 173 | |
9ab30125 | 174 | %find_lang %{name} |
59428bc4 | 175 | %find_lang libgammu |
11342faf | 176 | |
ed422299 | 177 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} |
f836a189 | 178 | |
5f592fd2 JB |
179 | # for rpm autodeps |
180 | chmod 755 $RPM_BUILD_ROOT%{_libdir}/lib*.so* | |
181 | ||
f836a189 | 182 | %clean |
183 | rm -rf $RPM_BUILD_ROOT | |
184 | ||
a860cb8f JB |
185 | %post libs -p /sbin/ldconfig |
186 | %postun libs -p /sbin/ldconfig | |
11342faf | 187 | |
202fe725 | 188 | %pre smsd |
189 | %groupadd -g 251 gammu-smsd | |
190 | %useradd -u 251 -d /var/lib/gammu-smsd -s /bin/false -c "Gammu SMSD user" -G dialout -g gammu-smsd gammu-smsd | |
191 | ||
192 | %post smsd | |
193 | /sbin/chkconfig --add gammu-smsd | |
194 | %service gammu-smsd restart "Gammu SMSD" | |
195 | ||
196 | %preun smsd | |
197 | if [ "$1" = "0" ]; then | |
198 | %service gammu-smsd stop | |
199 | /sbin/chkconfig --del gammu-smsd | |
200 | fi | |
201 | ||
202 | %postun smsd | |
203 | if [ "$1" = "0" ]; then | |
204 | %groupremove gammu-smsd | |
205 | %userremove gammu-smsd | |
206 | fi | |
207 | ||
9ab30125 | 208 | %files -f %{name}.lang |
f836a189 | 209 | %defattr(644,root,root,755) |
836fe380 | 210 | %doc AUTHORS ChangeLog README README.Python docs/manual/Gammu.htm |
e4c35d43 | 211 | %attr(755,root,root) %{_bindir}/%{name} |
836fe380 | 212 | %attr(755,root,root) %{_bindir}/%{name}-detect |
6baa676b | 213 | %attr(755,root,root) %{_bindir}/jadmaker |
a3c0577f | 214 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gammurc |
a3c0577f | 215 | %{_examplesdir}/%{name}-%{version} |
40579025 | 216 | %{_mandir}/man[157]/* |
e9da6d17 | 217 | |
202fe725 | 218 | %files smsd |
1bb8440d | 219 | %defattr(644,root,root,755) |
202fe725 | 220 | %doc docs/sql/*.sql |
221 | %attr(755,root,root) %{_bindir}/gammu-smsd | |
222 | %attr(755,root,root) %{_bindir}/gammu-smsd-inject | |
223 | %attr(755,root,root) %{_bindir}/gammu-smsd-monitor | |
224 | %attr(754,root,root) /etc/rc.d/init.d/%{name}-smsd | |
1bb8440d | 225 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}-smsd |
202fe725 | 226 | %{_sysconfdir}/%{name}-smsd |
227 | %attr(750,root,gammu-smsd) %{_varrun}/%{name}-smsd | |
228 | %attr(750,gammu-smsd,gammu-smsd) %{_sharedstatedir}/%{name}-smsd | |
229 | ||
59428bc4 | 230 | %files libs -f libgammu.lang |
2585acb8 | 231 | %defattr(644,root,root,755) |
a860cb8f | 232 | %attr(755,root,root) %{_libdir}/libGammu.so.*.* |
6baa676b | 233 | %attr(755,root,root) %{_libdir}/libgsmsd.so.*.*.*.* |
59428bc4 AF |
234 | %attr(755,root,root) %ghost %{_libdir}/libgsmsd.so.? |
235 | %attr(755,root,root) %ghost %{_libdir}/libGammu.so.? | |
3b248c9a | 236 | |
e9da6d17 | 237 | %files devel |
238 | %defattr(644,root,root,755) | |
35238559 | 239 | %attr(755,root,root) %{_bindir}/%{name}-config |
a860cb8f | 240 | %attr(755,root,root) %{_libdir}/libGammu.so |
6baa676b | 241 | %attr(755,root,root) %{_libdir}/libgsmsd.so |
e9da6d17 | 242 | %{_includedir}/* |
6baa676b | 243 | %dir %{py_sitedir}/gammu/ |
244 | %attr(755,root,root) %{py_sitedir}/gammu/_gammu.so | |
a860cb8f | 245 | %{_pkgconfigdir}/gammu.pc |
6baa676b | 246 | %{_pkgconfigdir}/gammu-smsd.pc |
e9da6d17 | 247 | |
3ca020a3 | 248 | %files -n python-gammu |
249 | %defattr(644,root,root,755) | |
250 | %dir %{py_sitedir}/gammu | |
251 | %attr(755,root,root) %{py_sitedir}/gammu/*.so | |
252 | %{py_sitedir}/gammu/*.py | |
253 | ||
e9da6d17 | 254 | %files static |
2585acb8 | 255 | %defattr(644,root,root,755) |
6baa676b | 256 | %{_libdir}/libgsmsd.a |
a860cb8f | 257 | %{_libdir}/libGammu.a |
1b61967a BZ |
258 | |
259 | %files -n bash-completion-gammu | |
260 | %defattr(644,root,root,755) | |
261 | %{_sysconfdir}/bash_completion.d/gammu |