]>
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 |
40579025 KK |
4 | Version: 1.24.90 |
5 | Release: 1 | |
f836a189 | 6 | Epoch: 1 |
e4c35d43 | 7 | License: GPL v2 |
f836a189 | 8 | Group: Applications/Communications |
736b1f60 | 9 | Source0: http://dl.cihar.com/gammu/releases/%{name}-%{version}.tar.bz2 |
40579025 | 10 | # Source0-md5: b128b05c1808fa1e887647eefa1830f1 |
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 |
0f8fbb9c | 20 | BuildRequires: rpmbuild(macros) >= 1.293 |
3ca020a3 | 21 | BuildRequires: rpm-pythonprov |
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 | ||
80 | %description -l pl.UTF-8 -n python-gammu | |
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 | ||
f836a189 | 95 | %prep |
44bab158 | 96 | %setup -q |
8f45ba1e | 97 | %patch0 -p1 |
f836a189 | 98 | |
99 | %build | |
35238559 TP |
100 | mkdir -p build |
101 | cd build | |
2314bcd8 | 102 | %cmake .. \ |
35238559 | 103 | -DCMAKE_INSTALL_PREFIX="%{_prefix}" \ |
2314bcd8 | 104 | -DCMAKE_VERBOSE_MAKEFILE=ON \ |
8f45ba1e | 105 | -DBUILD_SHARED_LIBS=OFF \ |
5e447162 MB |
106 | -DINSTALL_LIB_DIR=%{_lib} \ |
107 | -DINSTALL_LIBDATA_DIR=%{_libdir} \ | |
8f45ba1e | 108 | %{?debug:-DCMAKE_BUILD_TYPE="Debug"} |
36390489 | 109 | %{__make} |
6baa676b | 110 | mv libgammu/libGammu.a .. |
111 | mv smsd/libgsmsd.a .. | |
2314bcd8 | 112 | %cmake .. \ |
35238559 | 113 | -DCMAKE_INSTALL_PREFIX="%{_prefix}" \ |
2314bcd8 | 114 | -DCMAKE_VERBOSE_MAKEFILE=ON \ |
8f45ba1e | 115 | -DBUILD_SHARED_LIBS=ON \ |
5e447162 MB |
116 | -DINSTALL_LIB_DIR=%{_lib} \ |
117 | -DINSTALL_LIBDATA_DIR=%{_libdir} \ | |
8f45ba1e | 118 | %{?debug:-DCMAKE_BUILD_TYPE="Debug"} |
36390489 | 119 | %{__make} |
f836a189 | 120 | |
121 | %install | |
122 | rm -rf $RPM_BUILD_ROOT | |
35238559 | 123 | install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_examplesdir}/%{name}-%{version}} |
3b248c9a JB |
124 | |
125 | %{__make} -C build install \ | |
35238559 | 126 | DESTDIR=$RPM_BUILD_ROOT |
35238559 | 127 | |
6baa676b | 128 | install docs/config/gammurc $RPM_BUILD_ROOT%{_sysconfdir} |
a3c0577f | 129 | cp -r docs/{examples,develop} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
35238559 | 130 | install libGammu.a $RPM_BUILD_ROOT%{_libdir} |
6baa676b | 131 | install libgsmsd.a $RPM_BUILD_ROOT%{_libdir} |
132 | ||
9ab30125 | 133 | %find_lang %{name} |
11342faf | 134 | |
135 | rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name} | |
f836a189 | 136 | |
5f592fd2 JB |
137 | # for rpm autodeps |
138 | chmod 755 $RPM_BUILD_ROOT%{_libdir}/lib*.so* | |
139 | ||
f836a189 | 140 | %clean |
141 | rm -rf $RPM_BUILD_ROOT | |
142 | ||
a860cb8f JB |
143 | %post libs -p /sbin/ldconfig |
144 | %postun libs -p /sbin/ldconfig | |
11342faf | 145 | |
9ab30125 | 146 | %files -f %{name}.lang |
f836a189 | 147 | %defattr(644,root,root,755) |
6baa676b | 148 | %doc AUTHORS BUGS ChangeLog docs/user/gammu.html docs/user/readme.html README README.Python SUPPORTERS |
9ab30125 | 149 | %doc %lang(it) docs/user/gammu.it.txt docs/user/readme.it.txt |
e4c35d43 | 150 | %attr(755,root,root) %{_bindir}/%{name} |
6baa676b | 151 | %attr(755,root,root) %{_bindir}/gammu-smsd |
152 | %attr(755,root,root) %{_bindir}/gammu-smsd-inject | |
153 | %attr(755,root,root) %{_bindir}/gammu-smsd-monitor | |
154 | %attr(755,root,root) %{_bindir}/jadmaker | |
a3c0577f | 155 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gammurc |
a3c0577f | 156 | %{_examplesdir}/%{name}-%{version} |
40579025 KK |
157 | %{_mandir}/man[157]/* |
158 | %lang(cs) %{_mandir}/cs/man[157]/* | |
e9da6d17 | 159 | |
3b248c9a JB |
160 | %files libs |
161 | %defattr(755,root,root,755) | |
a860cb8f | 162 | %attr(755,root,root) %{_libdir}/libGammu.so.*.* |
6baa676b | 163 | %attr(755,root,root) %{_libdir}/libgsmsd.so.*.*.*.* |
164 | %attr(755,root,root) %ghost %{_libdir}/libgsmsd.so.6 | |
165 | %attr(755,root,root) %ghost %{_libdir}/libGammu.so.6 | |
3b248c9a | 166 | |
e9da6d17 | 167 | %files devel |
168 | %defattr(644,root,root,755) | |
35238559 | 169 | %attr(755,root,root) %{_bindir}/%{name}-config |
a860cb8f | 170 | %attr(755,root,root) %{_libdir}/libGammu.so |
6baa676b | 171 | %attr(755,root,root) %{_libdir}/libgsmsd.so |
e9da6d17 | 172 | %{_includedir}/* |
6baa676b | 173 | %dir %{py_sitedir}/gammu/ |
174 | %attr(755,root,root) %{py_sitedir}/gammu/_gammu.so | |
a860cb8f | 175 | %{_pkgconfigdir}/gammu.pc |
6baa676b | 176 | %{_pkgconfigdir}/gammu-smsd.pc |
e9da6d17 | 177 | |
3ca020a3 | 178 | %files -n python-gammu |
179 | %defattr(644,root,root,755) | |
180 | %dir %{py_sitedir}/gammu | |
181 | %attr(755,root,root) %{py_sitedir}/gammu/*.so | |
182 | %{py_sitedir}/gammu/*.py | |
183 | ||
e9da6d17 | 184 | %files static |
185 | %defattr(755,root,root,755) | |
6baa676b | 186 | %{_libdir}/libgsmsd.a |
a860cb8f | 187 | %{_libdir}/libGammu.a |