]>
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 |
f4ac0d1b | 4 | Version: 1.26.91 |
40579025 | 5 | Release: 1 |
f836a189 | 6 | Epoch: 1 |
2585acb8 | 7 | License: GPL v2+ |
f836a189 | 8 | Group: Applications/Communications |
736b1f60 | 9 | Source0: http://dl.cihar.com/gammu/releases/%{name}-%{version}.tar.bz2 |
f4ac0d1b | 10 | # Source0-md5: aa4cfbdb72e555f88f3af5f1822cf294 |
e721ad3e | 11 | Patch0: %{name}-etc_dir.patch |
a331b5e4 | 12 | URL: http://www.gammu.org/ |
54d86c80 | 13 | BuildRequires: bluez-libs-devel |
281fa2ca | 14 | BuildRequires: cmake >= 2.4.6 |
8f45ba1e | 15 | BuildRequires: curl-devel |
9ab30125 | 16 | BuildRequires: gettext-devel |
101d1802 | 17 | BuildRequires: mysql-devel |
736b1f60 | 18 | BuildRequires: postgresql-devel |
3ca020a3 | 19 | BuildRequires: python-devel >= 1:2.5 |
3ca020a3 | 20 | BuildRequires: rpm-pythonprov |
2585acb8 | 21 | BuildRequires: rpmbuild(macros) >= 1.293 |
3b248c9a | 22 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
e4c35d43 PG |
23 | Provides: mygnokii2 |
24 | Obsoletes: mygnokii2 | |
f836a189 | 25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
27 | %description | |
e4c35d43 | 28 | Gammu (formerly known as MyGnokii2) is cellular manager for various |
99e7d737 JB |
29 | mobile phones and modems. It currently supports Nokia 3210, 33xx, |
30 | 3410, 3510, 51xx, 5210, 5510, 61xx, 62xx, 63xx, 6510, 7110, 82xx, | |
31 | 8310, 9110, and 9210, and AT devices (such as Siemens, Alcatel, | |
32 | WaveCom, IPAQ, and other). It has a command line version with many | |
33 | functions for ringtones, phonebook, SMS, logos, WAP, date/time, alarm, | |
34 | calls, etc. It can also make full backups and restore them. | |
35 | ||
1b85dc8f JR |
36 | %description -l pl.UTF-8 |
37 | Gammu (poprzednio znany jako MyGnokii2) jest narzędziem do zarządzania | |
38 | różnymi telefonami komórkowymi i modemami. Aktualnie obsługuje Nokie | |
99e7d737 | 39 | 3210, 33xx, 3410, 51xx, 5210, 5510, 61xx, 62xx, 63xx, 6510, 7110, |
1b85dc8f JR |
40 | 82xx, 8310, 9110 i 3210 oraz urządzenia AT (takie jak Siemens, |
41 | Alcatel, WaveCom, IPAQ i inne). Ma wersję działającą z linii poleceń z | |
42 | wieloma funkcjami do dzwonków, książki telefonicznej, SMS-ów, logo, | |
43 | WAP, daty/czasu, budzika, dzwonienia itp. Może także wykonywać pełne | |
44 | kopie zapasowe danych i odtwarzać je. | |
f836a189 | 45 | |
e9da6d17 | 46 | %package libs |
736b1f60 | 47 | Summary: Gammu library |
48 | Summary(pl.UTF-8): Biblioteka Gammu | |
49 | Group: Libraries | |
e9da6d17 | 50 | |
51 | %description libs | |
52 | Gammu tool suite library. | |
53 | ||
35238559 | 54 | %description libs -l pl.UTF-8 |
e9da6d17 | 55 | Biblioteka zestawu narzędzi dla telefonów komórkowych Gammu. |
56 | ||
3b248c9a JB |
57 | %package devel |
58 | Summary: Header files for Gammu tool suite for mobile phones | |
59 | Summary(pl.UTF-8): Pliki nagłówkowe zestawu narzędzi dla telefonów komórkowych Gammu | |
60 | Group: Development/Libraries | |
61 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
a860cb8f | 62 | Requires: bluez-libs-devel |
3b248c9a JB |
63 | |
64 | %description devel | |
65 | Header files for Gammu tool suite for mobile phones. | |
66 | ||
67 | %description devel -l pl.UTF-8 | |
68 | Pliki nagłówkowe zestawu narzędzi dla telefonów komórkowych Gammu. | |
69 | ||
3ca020a3 | 70 | %package -n python-gammu |
71 | Summary: Python bingings for Gammu library | |
72 | Summary(pl.UTF-8): Wiązania języka Python dla biblioteki Gammu | |
73 | Group: Development/Languages/Python | |
40579025 | 74 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
3ca020a3 | 75 | %pyrequires_eq python-modules |
3ca020a3 | 76 | |
77 | %description -n python-gammu | |
78 | Python bingings for Gammu library. | |
79 | ||
2585acb8 | 80 | %description -n python-gammu -l pl.UTF-8 |
3ca020a3 | 81 | Wiązania języka Python dla biblioteki Gammu. |
82 | ||
e9da6d17 | 83 | %package static |
736b1f60 | 84 | Summary: Gammu static library |
85 | Summary(pl.UTF-8): Biblioteka statyczna Gammu | |
86 | Group: Development/Libraries | |
3b248c9a | 87 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
e9da6d17 | 88 | |
89 | %description static | |
90 | Gammu static library. | |
91 | ||
35238559 | 92 | %description static -l pl.UTF-8 |
e9da6d17 | 93 | Biblioteka statyczna zestawu narzędzi dla telefonów komórkowych Gammu. |
94 | ||
1b61967a BZ |
95 | %package -n bash-completion-gammu |
96 | Summary: bash-completion for gammu | |
97 | Summary(pl.UTF-8): bashowe uzupełnianie nazw dla gammu | |
98 | Group: Applications/Shells | |
5e34605d | 99 | Requires: %{name} = %{epoch}:%{version}-%{release} |
2585acb8 | 100 | Requires: bash-completion |
1b61967a BZ |
101 | |
102 | %description -n bash-completion-gammu | |
103 | This package provides bash-completion for gammu. | |
104 | ||
105 | %description -n bash-completion-gammu -l pl.UTF-8 | |
106 | Pakiet ten dostarcza bashowe uzupełnianie nazw dla gammu. | |
107 | ||
f836a189 | 108 | %prep |
44bab158 | 109 | %setup -q |
8f45ba1e | 110 | %patch0 -p1 |
f836a189 | 111 | |
112 | %build | |
35238559 TP |
113 | mkdir -p build |
114 | cd build | |
2314bcd8 | 115 | %cmake .. \ |
35238559 | 116 | -DCMAKE_INSTALL_PREFIX="%{_prefix}" \ |
2314bcd8 | 117 | -DCMAKE_VERBOSE_MAKEFILE=ON \ |
8f45ba1e | 118 | -DBUILD_SHARED_LIBS=OFF \ |
5e447162 MB |
119 | -DINSTALL_LIB_DIR=%{_lib} \ |
120 | -DINSTALL_LIBDATA_DIR=%{_libdir} \ | |
8f45ba1e | 121 | %{?debug:-DCMAKE_BUILD_TYPE="Debug"} |
36390489 | 122 | %{__make} |
6baa676b | 123 | mv libgammu/libGammu.a .. |
124 | mv smsd/libgsmsd.a .. | |
2314bcd8 | 125 | %cmake .. \ |
35238559 | 126 | -DCMAKE_INSTALL_PREFIX="%{_prefix}" \ |
2314bcd8 | 127 | -DCMAKE_VERBOSE_MAKEFILE=ON \ |
8f45ba1e | 128 | -DBUILD_SHARED_LIBS=ON \ |
5e447162 MB |
129 | -DINSTALL_LIB_DIR=%{_lib} \ |
130 | -DINSTALL_LIBDATA_DIR=%{_libdir} \ | |
8f45ba1e | 131 | %{?debug:-DCMAKE_BUILD_TYPE="Debug"} |
36390489 | 132 | %{__make} |
f836a189 | 133 | |
134 | %install | |
135 | rm -rf $RPM_BUILD_ROOT | |
35238559 | 136 | install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_examplesdir}/%{name}-%{version}} |
3b248c9a JB |
137 | |
138 | %{__make} -C build install \ | |
35238559 | 139 | DESTDIR=$RPM_BUILD_ROOT |
35238559 | 140 | |
6baa676b | 141 | install docs/config/gammurc $RPM_BUILD_ROOT%{_sysconfdir} |
1b61967a | 142 | cp -r docs/develop $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
35238559 | 143 | install libGammu.a $RPM_BUILD_ROOT%{_libdir} |
6baa676b | 144 | install libgsmsd.a $RPM_BUILD_ROOT%{_libdir} |
145 | ||
9ab30125 | 146 | %find_lang %{name} |
59428bc4 | 147 | %find_lang libgammu |
11342faf | 148 | |
149 | rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name} | |
f836a189 | 150 | |
5f592fd2 JB |
151 | # for rpm autodeps |
152 | chmod 755 $RPM_BUILD_ROOT%{_libdir}/lib*.so* | |
153 | ||
f836a189 | 154 | %clean |
155 | rm -rf $RPM_BUILD_ROOT | |
156 | ||
a860cb8f JB |
157 | %post libs -p /sbin/ldconfig |
158 | %postun libs -p /sbin/ldconfig | |
11342faf | 159 | |
9ab30125 | 160 | %files -f %{name}.lang |
f836a189 | 161 | %defattr(644,root,root,755) |
6baa676b | 162 | %doc AUTHORS BUGS ChangeLog docs/user/gammu.html docs/user/readme.html README README.Python SUPPORTERS |
9ab30125 | 163 | %doc %lang(it) docs/user/gammu.it.txt docs/user/readme.it.txt |
e4c35d43 | 164 | %attr(755,root,root) %{_bindir}/%{name} |
6baa676b | 165 | %attr(755,root,root) %{_bindir}/gammu-smsd |
166 | %attr(755,root,root) %{_bindir}/gammu-smsd-inject | |
167 | %attr(755,root,root) %{_bindir}/gammu-smsd-monitor | |
168 | %attr(755,root,root) %{_bindir}/jadmaker | |
a3c0577f | 169 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gammurc |
a3c0577f | 170 | %{_examplesdir}/%{name}-%{version} |
40579025 KK |
171 | %{_mandir}/man[157]/* |
172 | %lang(cs) %{_mandir}/cs/man[157]/* | |
e9da6d17 | 173 | |
59428bc4 | 174 | %files libs -f libgammu.lang |
2585acb8 | 175 | %defattr(644,root,root,755) |
a860cb8f | 176 | %attr(755,root,root) %{_libdir}/libGammu.so.*.* |
6baa676b | 177 | %attr(755,root,root) %{_libdir}/libgsmsd.so.*.*.*.* |
59428bc4 AF |
178 | %attr(755,root,root) %ghost %{_libdir}/libgsmsd.so.? |
179 | %attr(755,root,root) %ghost %{_libdir}/libGammu.so.? | |
3b248c9a | 180 | |
e9da6d17 | 181 | %files devel |
182 | %defattr(644,root,root,755) | |
35238559 | 183 | %attr(755,root,root) %{_bindir}/%{name}-config |
a860cb8f | 184 | %attr(755,root,root) %{_libdir}/libGammu.so |
6baa676b | 185 | %attr(755,root,root) %{_libdir}/libgsmsd.so |
e9da6d17 | 186 | %{_includedir}/* |
6baa676b | 187 | %dir %{py_sitedir}/gammu/ |
188 | %attr(755,root,root) %{py_sitedir}/gammu/_gammu.so | |
a860cb8f | 189 | %{_pkgconfigdir}/gammu.pc |
6baa676b | 190 | %{_pkgconfigdir}/gammu-smsd.pc |
e9da6d17 | 191 | |
3ca020a3 | 192 | %files -n python-gammu |
193 | %defattr(644,root,root,755) | |
194 | %dir %{py_sitedir}/gammu | |
195 | %attr(755,root,root) %{py_sitedir}/gammu/*.so | |
196 | %{py_sitedir}/gammu/*.py | |
197 | ||
e9da6d17 | 198 | %files static |
2585acb8 | 199 | %defattr(644,root,root,755) |
6baa676b | 200 | %{_libdir}/libgsmsd.a |
a860cb8f | 201 | %{_libdir}/libGammu.a |
1b61967a BZ |
202 | |
203 | %files -n bash-completion-gammu | |
204 | %defattr(644,root,root,755) | |
205 | %{_sysconfdir}/bash_completion.d/gammu |