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: 5bcb87a39e9004c654e080bf8df7cd43
11 Patch0: %{name}-etc_dir.patch
12 URL: http://www.gammu.org/
13 BuildRequires: bluez-libs-devel
15 BuildRequires: gettext-devel
16 BuildRequires: mysql-devel
17 BuildRequires: postgresql-devel
18 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Gammu (formerly known as MyGnokii2) is cellular manager for various
25 mobile phones and modems. It currently supports Nokia 3210, 33xx,
26 3410, 3510, 51xx, 5210, 5510, 61xx, 62xx, 63xx, 6510, 7110, 82xx,
27 8310, 9110, and 9210, and AT devices (such as Siemens, Alcatel,
28 WaveCom, IPAQ, and other). It has a command line version with many
29 functions for ringtones, phonebook, SMS, logos, WAP, date/time, alarm,
30 calls, etc. It can also make full backups and restore them.
32 %description -l pl.UTF-8
33 Gammu (poprzednio znany jako MyGnokii2) jest narzędziem do zarządzania
34 różnymi telefonami komórkowymi i modemami. Aktualnie obsługuje Nokie
35 3210, 33xx, 3410, 51xx, 5210, 5510, 61xx, 62xx, 63xx, 6510, 7110,
36 82xx, 8310, 9110 i 3210 oraz urządzenia AT (takie jak Siemens,
37 Alcatel, WaveCom, IPAQ i inne). Ma wersję działającą z linii poleceń z
38 wieloma funkcjami do dzwonków, książki telefonicznej, SMS-ów, logo,
39 WAP, daty/czasu, budzika, dzwonienia itp. Może także wykonywać pełne
40 kopie zapasowe danych i odtwarzać je.
43 Summary: Gammu library
44 Summary(pl.UTF-8): Biblioteka Gammu
48 Gammu tool suite library.
50 %description libs -l pl.UTF-8
51 Biblioteka zestawu narzędzi dla telefonów komórkowych Gammu.
54 Summary: Header files for Gammu tool suite for mobile phones
55 Summary(pl.UTF-8): Pliki nagłówkowe zestawu narzędzi dla telefonów komórkowych Gammu
56 Group: Development/Libraries
57 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
58 Requires: bluez-libs-devel
61 Header files for Gammu tool suite for mobile phones.
63 %description devel -l pl.UTF-8
64 Pliki nagłówkowe 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}-devel = %{epoch}:%{version}-%{release}
75 %description static -l pl.UTF-8
76 Biblioteka statyczna zestawu narzędzi dla telefonów komórkowych Gammu.
86 -DCMAKE_INSTALL_PREFIX="%{_prefix}" \
87 -DCMAKE_VERBOSE_MAKEFILE=1 \
89 -DINSTALL_LIB_DIR=%{_libdir} \
90 %{?debug:-DCMAKE_BUILD_TYPE="Debug"}
92 mv common/libGammu.a ..
94 -DCMAKE_INSTALL_PREFIX="%{_prefix}" \
95 -DCMAKE_VERBOSE_MAKEFILE=1 \
97 -DINSTALL_LIB_DIR=%{_libdir} \
98 %{?debug:-DCMAKE_BUILD_TYPE="Debug"}
102 rm -rf $RPM_BUILD_ROOT
103 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_examplesdir}/%{name}-%{version}}
105 %{__make} -C build install \
106 DESTDIR=$RPM_BUILD_ROOT
108 install docs/examples/config/gammurc $RPM_BUILD_ROOT%{_sysconfdir}
109 cp -r docs/{examples,develop} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
110 install libGammu.a $RPM_BUILD_ROOT%{_libdir}
113 rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
116 rm -rf $RPM_BUILD_ROOT
118 %post libs -p /sbin/ldconfig
119 %postun libs -p /sbin/ldconfig
121 %files -f %{name}.lang
122 %defattr(644,root,root,755)
123 %doc ChangeLog docs/user/gammu.htm docs/user/readme.htm other/bash README SUPPORTERS
124 %doc %lang(it) docs/user/gammu.it.txt docs/user/readme.it.txt
125 %attr(755,root,root) %{_bindir}/%{name}
126 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gammurc
127 %{_examplesdir}/%{name}-%{version}
131 %defattr(755,root,root,755)
132 %attr(755,root,root) %{_libdir}/libGammu.so.*.*
133 %attr(755,root,root) %ghost %{_libdir}/libGammu.so.2
136 %defattr(644,root,root,755)
137 %attr(755,root,root) %{_bindir}/%{name}-config
138 %attr(755,root,root) %{_libdir}/libGammu.so
140 %{_pkgconfigdir}/gammu.pc
143 %defattr(755,root,root,755)
144 %{_libdir}/libGammu.a