Пакет gammu: Specfile

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
%def_disable static

Name: gammu
Version: 1.40.0
Release: alt1

Summary: Mobile phones management utility
License: GPL
Group: Communications

Url: http://wammu.eu/gammu/
Source: http://dl.cihar.com/gammu/releases/%name-%version.tar.xz
Source100: %name.watch
Packager: Michael Shigorin <mike@altlinux.org>

Requires: lib%name = %version-%release

%{?_enable_static:BuildRequires(pre): glibc-devel-static}

# Automatically added by buildreq on Tue Aug 23 2005
BuildRequires: libMySQL-devel libbluez-devel pkg-config zlib-devel cmake
BuildPreReq: libcurl-devel glib2-devel libgudev-devel doxygen
BuildPreReq: libdbi-devel libusb-devel

Summary(ru_RU.UTF-8): Программа для работы с мобильными телефонами

%description
Gammu can do such things with cellular phones as making data
calls, updating the address book, changing calendar and ToDo
entries, sending and receiving SMS messages, loading and getting
ring tones and pictures (different types of logos), synchronizing
time, enabling NetMonitor, managing WAP settings and bookmarks
and much more (available functions depend on the phone model).
It can also make full backups and restore them.

It currently supports many Nokia phones and AT devices (such as
Siemens, Alcatel, Falcom, WaveCom, IPAQ, and other).

%description -l ru_RU.UTF-8
Gammu - это программа для работы с мобильными телефонами.
В зависимости от модели телефона Gammu умеет: передавать данные,
обновлять телефонную книжку, управлять записями календаря и
списка дел, принимать и отправлять короткие сообщения (SMS),
загружать в аппарат а также считывать с него мелодии и картинки
(различные виды логотипов), синхронизировать время, включать
NetMonitor, управлять настройками WAP, закладками и ещё много
всего другого.  Кроме того, Gammu позволяет делать полные
резервные копии данных телефона c возможностью их восстановления
в случае необходимости.

На данный момент поддерживается множество моделей телефонов
Nokia, а также аппаратов, понимающих AT-команды (таких как
телефоны Siemens, Alcatel, Falcom, WaveCom, IPAQ и т.д.)

%package -n lib%name
Summary: Libraries used by %name
Summary(ru_RU.UTF-8): Динамические библиотеки %name
Group: System/Libraries

%description -n lib%name
Libraries needed for %name.

%description -n lib%name -l ru_RU.UTF-8
Библиотеки, необходимые для %name.

%package -n lib%name-devel
Summary: Headers to compile against the lib%name library
Summary(ru_RU.UTF-8): Заголовочные файлы для сборки с библиотекой lib%name
Group: Development/C
Requires: lib%name = %version-%release

%description -n lib%name-devel
This package contains all files which one needs to compile
programs using the lib%name library.

%description -n lib%name-devel -l ru_RU.UTF-8
Данный пакет содержит файлы, необходимые для сборки программ,
использующих библиотеку lib%name.

%package -n lib%name-devel-static
Summary: Static %name library
Summary(ru_RU.UTF-8): Статическая библиотека %name
Group: Development/C
Requires: lib%name-devel = %version-%release

%description -n lib%name-devel-static
This package contains static %name library.

%description -n lib%name-devel-static -l ru_RU.UTF-8
Данный пакет содержит статическую библиотеку %name.

%package -n bash-completion-%name
Summary: bash completion for gammu
Group: Shells
BuildArch: noarch
Requires: bash-completion
Requires: %name = %version-%release

%description -n bash-completion-%name
Bash completion for gammu

%define _gammu_docdir %_defaultdocdir/%name-%version

%prep
%setup
# this is ALT specific, no sense to maintain a patch
sed -i 's,/var/lock/LCK\.\.,/var/lock/serial/LCK..,' \
	libgammu/device/devfunc.c

%build
mkdir build
pushd build
cmake   -DCMAKE_INSTALL_PREFIX="%_usr" \
	-DINSTALL_LIB_DIR=%_libdir \
	-DINSTALL_LIBDATA_DIR=%_libdir \
	-DINSTALL_DOC_DIR=%_gammu_docdir \
	-DMYSQL_CONFIG="%_bindir/mysql_config" \
	-DBUILD_PYTHON:FILEPATH=%_bindir/python \
	-DCMAKE_C_FLAGS:STRING="%optflags" \
	-DCMAKE_CXX_FLAGS:STRING="%optflags" \
%if_disabled static
	-DENABLE_SHARED=ON \
	-DBUILD_SHARED_LIBS=ON \
%endif
..
%make_build VERBOSE=1
popd

#%%check
#cd build-dir
#ctest -V

%install
pushd build
%make install DESTDIR=%buildroot
popd
mkdir -p %buildroot%_sysconfdir
sed -e 's|^port =.*$|port = /dev/ttyS0|' \
         -e 's|^connection =.*$|connection = dlr3|' \
         -e 's|^#use_locking =.*$|use_locking = yes|' \
         -e 's/
$//' \
         < docs/config/gammurc > %buildroot%_sysconfdir/%{name}rc
chmod 644 %buildroot%_sysconfdir/%{name}rc

mkdir -p %buildroot%_gammu_docdir/other/
cp -R contrib/bash-completion %buildroot%_gammu_docdir/other/

%find_lang --output=%name.lang gammu
%find_lang --output=%name.lang --append libgammu

%files -f %name.lang
%_bindir/*
%config(noreplace) %_sysconfdir/%{name}rc
%_man1dir/*
%_man5dir/*
%_man7dir/*
%_datadir/%name/
%docdir %_gammu_docdir
%dir %_gammu_docdir
%_gammu_docdir/ChangeLog
%_gammu_docdir/COPYING
%_gammu_docdir/README*
%_gammu_docdir/examples
%_gammu_docdir/other
#dir %_gammu_docdir/symbian
#_gammu_docdir/symbian

%files -n lib%name
%_libdir/*.so.*

%files -n lib%name-devel
%_includedir/*
%_libdir/*.so
%_pkgconfigdir/*
%dir %_gammu_docdir
%_gammu_docdir/manual

%if_enabled static
%files -n lib%name-devel-static
%_libdir/*.a
%endif

%files -n bash-completion-%name
%_sysconfdir/bash_completion.d/%name

%changelog
* Tue Jan 29 2019 Michael Shigorin <mike@altlinux.org> 1.40.0-alt1
- new version (watch file uupdate)

* Fri Jan 05 2018 Michael Shigorin <mike@altlinux.org> 1.39.0-alt1
- new version (watch file uupdate)

* Mon Oct 23 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 1.38.5-alt2
- Rebuilt with libdbi-0.9.0.

* Thu Oct 19 2017 Michael Shigorin <mike@altlinux.org> 1.38.5-alt1
- new version (watch file uupdate)

* Sun Jun 18 2017 Michael Shigorin <mike@altlinux.org> 1.38.4-alt1
- new version (watch file uupdate)

* Tue May 23 2017 Michael Shigorin <mike@altlinux.org> 1.38.3-alt1
- new version (watch file uupdate)

* Tue Mar 28 2017 Michael Shigorin <mike@altlinux.org> 1.38.2-alt1
- new version (watch file uupdate)

* Thu Jan 05 2017 Michael Shigorin <mike@altlinux.org> 1.38.1-alt1
- new version (watch file uupdate)

* Mon Dec 12 2016 Michael Shigorin <mike@altlinux.org> 1.38.0-alt1
- new version (watch file uupdate)

* Tue Aug 16 2016 Michael Shigorin <mike@altlinux.org> 1.37.4-alt1
- new version (watch file uupdate)

* Tue May 24 2016 Michael Shigorin <mike@altlinux.org> 1.37.3-alt1
- new version (watch file uupdate)

* Wed Apr 13 2016 Michael Shigorin <mike@altlinux.org> 1.37.2-alt1
- new version (watch file uupdate)

* Wed Feb 03 2016 Michael Shigorin <mike@altlinux.org> 1.37.0-alt1
- new version (watch file uupdate)

* Tue Dec 08 2015 Michael Shigorin <mike@altlinux.org> 1.36.8-alt1
- new version (watch file uupdate)

* Sun Nov 29 2015 Michael Shigorin <mike@altlinux.org> 1.36.7-alt1
- 1.36.7

* Thu Aug 27 2015 Michael Shigorin <mike@altlinux.org> 1.36.5-alt1
- 1.36.5

* Sun Aug 16 2015 Michael Shigorin <mike@altlinux.org> 1.36.4-alt1
- 1.36.4
- dropped python module (standalone package since 2.1)
- converted Russian subpackage descriptions to UTF-8

* Thu May 07 2015 Michael Shigorin <mike@altlinux.org> 1.36.0-alt1
- added debian watch file
- new version (watch file uupdate)
  + the python-gammu module is now shipped separately
- build from srpm again

* Tue Jun 04 2013 Michael Shigorin <mike@altlinux.org> 1.33.0-alt1
- 1.33.0

* Sun Apr 07 2013 Michael Shigorin <mike@altlinux.org> 1.32.0-alt2
- rebuilt against libmysqlclient18
- added the overlooked libgammu translations

* Wed Jun 27 2012 Michael Shigorin <mike@altlinux.org> 1.32.0-alt1
- 1.32.0

* Sat Oct 22 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 1.30.0-alt2.1
- Rebuild with Python-2.7

* Thu Sep 15 2011 Michael Shigorin <mike@altlinux.org> 1.30.0-alt2
- merged with forgotten 1.29.0-alt1.1

* Fri Jul 22 2011 Michael Shigorin <mike@altlinux.org> 1.30.0-alt1
- 1.30.0
  + S60 support
  + screnshot support for DCT4
  + improved Samsung support
  + ODBC support in SMSD

* Sun Mar 13 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.29.0-alt1.1
- Rebuilt for debuginfo

* Fri Jan 21 2011 Michael Shigorin <mike@altlinux.org> 1.29.0-alt1
- 1.29.0 (thanks force@ too)

* Sun Sep 19 2010 Michael Shigorin <mike@altlinux.org> 1.28.0-alt2
- rebuilt for Sisyphus, thanks george@
- built against libmysqlclient.so.16
- minor description cleanup

* Fri Sep 17 2010 Fr. Br. George <george@altlinux.ru> 1.28.0-alt1
- Version up

* Tue Nov 17 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.23.1-alt5.1
- Rebuilt with python 2.6

* Sun Nov 15 2009 Michael Shigorin <mike@altlinux.org> 1.23.1-alt5
- rebuilt against current libbluez (see also #22272)

* Thu Jul 23 2009 Michael Shigorin <mike@altlinux.org> 1.23.1-alt4
- applied repocop patch

* Wed Apr 08 2009 Michael Shigorin <mike@altlinux.org> 1.23.1-alt3
- merged python-module-gammu (following upstream merge)

* Tue Apr 07 2009 Michael Shigorin <mike@altlinux.org> 1.23.1-alt2
- added bash-completion-gammu subpackage
  (adapted from quilt.spec)

* Tue Apr 07 2009 Michael Shigorin <mike@altlinux.org> 1.23.1-alt1
- 1.23.1
- replaced patch with subst
- fixed paths
- added man5, man7 pages

* Wed Jan 07 2009 Michael Shigorin <mike@altlinux.org> 1.22.1-alt2
- merged spec with avm's git
- fixed shared library build
- merry Christmas!

* Sun Dec 28 2008 Michael Shigorin <mike@altlinux.org> 1.22.1-alt1
- 1.22.1
- changed Packager :(
- spec cleanup

* Tue Sep 02 2008 L.A. Kostis <lakostis@altlinux.ru> 1.20.0-alt1
- version 1.20.0.
- change Packager.
- remove obsoleted patches.

* Sun Aug 03 2008 Alexander Myltsev <avm@altlinux.ru> 1.20.0-alt1
- new version: bug fixes, better error messages

* Sat May 10 2008 Fr. Br. George <george@altlinux.ru> 1.19.0-alt1
- Version up

* Wed Feb 20 2008 Michael Shigorin <mike@altlinux.org> 1.13.90-alt3
- rebuild

* Tue Feb 19 2008 Grigory Batalov <bga@altlinux.ru> 1.13.90-alt2
- Fix build on x86_64: install library into %%_libdir.

* Sun Sep 16 2007 L.A. Kostis <lakostis@altlinux.ru> 1.13.90-alt1
- 1.13.90 (testing/unstable version).
- remove obsoleted patches (hope upstream fixed those).
- update buildreq (add cmake).
- move to cmake build.
- fix mysql detection (a bit hacky).

* Sun Jan 07 2007 L.A. Kostis <lakostis@altlinux.ru> 1.09.00-alt1
- 1.09.00.
- update alt-config patch.

* Fri Sep 08 2006 L.A. Kostis <lakostis@altlinux.ru> 1.07.00-alt1
- added patch fixing http://www.gammu.org/bugs/view.php?id=3 (by mike@).
- rebuild w/ new libbluez-devel.
- .spec cleanup.

* Sat Jul 01 2006 Michael Shigorin <mike@altlinux.org> 1.07.00-alt0.1
- 1.07.00 (NMU)
- added Gentoo limits-up patch
- added unpackaged files

* Sat Jun 03 2006 LAKostis <lakostis at altlinux.ru> 1.06.00-alt1
- NMU;
- version 1.06.00.

* Sat Apr 01 2006 LAKostis <lakostis at altlinux.ru> 1.05.00-alt1
- NMU;
- version 1.05.00;
- fix build with --as-needed.

* Sat Dec 31 2005 Dmitry Vukolov <dav@altlinux.ru> 1.04.0-alt1
- version 1.04.0

* Wed Oct 19 2005 Dmitry Vukolov <dav@altlinux.ru> 1.03.0-alt1
- version 1.03.0

* Tue Oct 04 2005 Dmitry Vukolov <dav@altlinux.ru> 1.02.20-alt1
- version 1.02.20
- applied a patch from Michal Cihar fixing library linking

* Thu Sep 29 2005 Dmitry Vukolov <dav@altlinux.ru> 1.02.16-alt1
- version 1.02.16

* Mon Sep 19 2005 Dmitry Vukolov <dav@altlinux.ru> 1.02.0-alt2
- applied the at-utf8.patch from Michal Cihar

* Tue Aug 23 2005 Dmitry Vukolov <dav@altlinux.ru> 1.02.0-alt1
- version 1.02.0
- MySQL BuildRequires fixed
- translation files removed temporarily

* Wed Apr 13 2005 Dmitry Vukolov <dav@altlinux.ru> 1.01.0-alt1
- version 1.01.0
- warning: connection fbusdku2 renamed to dku2phonet and fbusdku5 renamed
  to dku5fbus. make changes to .gammurc if necessary.

* Wed Mar 02 2005 Dmitry Vukolov <dav@altlinux.ru> 1.00.10-alt1
- version 1.00.10
- pic and mysql patches removed
- extra spec switches removed

* Sun Nov 28 2004 Dmitry Vukolov <dav@altlinux.ru> 0.99.6-alt2
- corrected BuildRequires

* Thu Nov 25 2004 Dmitry Vukolov <dav@altlinux.ru> 0.99.6-alt1
- version 0.99.6
- built with MySQL support

* Mon Oct 25 2004 Dmitry Vukolov <dav@altlinux.ru> 0.99-alt1
- new version

* Fri Sep 10 2004 Dmitry Vukolov <dav@altlinux.ru> 0.98-alt1
- new version

* Fri Aug 06 2004 Dmitry Vukolov <dav@altlinux.ru> 0.97-alt1
- version 0.97
- URL corrected
- removed GammuGUI
- new script: PhoneGetRecentFiles.pl

* Wed May 05 2004 Dmitry Vukolov <dav@altlinux.ru> 0.95-alt1
- new version
- for MySQL support rebuild using --with mysql option (disabled by default)

* Fri Mar 05 2004 Dmitry Vukolov <dav@altlinux.ru> 0.94-alt1
- new version

* Tue Feb 10 2004 Dmitry Vukolov <dav@altlinux.ru> 0.93-alt1
- new version

* Sun Jan 04 2004 Dmitry Vukolov <dav@altlinux.ru> 0.92-alt1
- new version

* Fri Dec 26 2003 Dmitry Vukolov <dav@altlinux.ru> 0.91-alt1
- new version

* Sat Nov 29 2003 Dmitry Vukolov <dav@altlinux.ru> 0.90-alt1
- new version
- new package: lib%name-devel-static (disabled by default)
- added "--enable static" support to the spec
- updated makefile-pic patch
- also package %name-config, smsdutil and %{name}gui

* Thu Nov 13 2003 Dmitry Vukolov <dav@altlinux.ru> 0.89-alt1
- new version
- added makefile-pic patch to get rid of text relocations in libGammu.so

* Mon Nov 03 2003 Dmitry Vukolov <dav@altlinux.ru> 0.88-alt1
- new version
- spec file corrections

* Mon Oct 20 2003 Dmitry Vukolov <dav@altlinux.ru> 0.87-alt1
- new version
- makefile-ldlibs patch merged upstream
- added "--with 7110incoming" support to the spec

* Sun Oct 12 2003 Dmitry Vukolov <dav@altlinux.ru> 0.86-alt1
- new version
- configure patch updated
- added makefile-ldlibs patch
- pkgconfig support
- updated BuildRequires

* Fri Oct 03 2003 Dmitry Vukolov <dav@altlinux.ru> 0.85-alt1
- new version

* Thu Sep 18 2003 Dmitry Vukolov <dav@altlinux.ru> 0.84-alt1
- new version
- corrected dependencies

* Tue Sep 09 2003 Dmitry Vukolov <dav@altlinux.ru> 0.83-alt1
- version 0.83
- added package lib%name-devel
- make use of the %%lang macro

* Tue Aug 05 2003 Dmitry Vukolov <dav@altlinux.ru> 0.81-alt1
- new version

* Sun Jul 27 2003 Dmitry Vukolov <dav@altlinux.ru> 0.80-alt1
- new version

* Thu Jul 10 2003 Dmitry Vukolov <dav@altlinux.ru> 0.79-alt1
- initial build for Sisyphus
- lock-path & configure patches