]>
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 |
6baa676b | 4 | Version: 1.23.1 |
8f45ba1e | 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 |
6baa676b | 10 | # Source0-md5: bb1d23eb766ecd9d21bc79c2f8a1d480 |
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 |
0f8fbb9c | 19 | BuildRequires: rpmbuild(macros) >= 1.293 |
3b248c9a | 20 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
e4c35d43 PG |
21 | Provides: mygnokii2 |
22 | Obsoletes: mygnokii2 | |
f836a189 | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
e4c35d43 | 26 | Gammu (formerly known as MyGnokii2) is cellular manager for various |
99e7d737 JB |
27 | mobile phones and modems. It currently supports Nokia 3210, 33xx, |
28 | 3410, 3510, 51xx, 5210, 5510, 61xx, 62xx, 63xx, 6510, 7110, 82xx, | |
29 | 8310, 9110, and 9210, and AT devices (such as Siemens, Alcatel, | |
30 | WaveCom, IPAQ, and other). It has a command line version with many | |
31 | functions for ringtones, phonebook, SMS, logos, WAP, date/time, alarm, | |
32 | calls, etc. It can also make full backups and restore them. | |
33 | ||
1b85dc8f JR |
34 | %description -l pl.UTF-8 |
35 | Gammu (poprzednio znany jako MyGnokii2) jest narzędziem do zarządzania | |
36 | różnymi telefonami komórkowymi i modemami. Aktualnie obsługuje Nokie | |
99e7d737 | 37 | 3210, 33xx, 3410, 51xx, 5210, 5510, 61xx, 62xx, 63xx, 6510, 7110, |
1b85dc8f JR |
38 | 82xx, 8310, 9110 i 3210 oraz urządzenia AT (takie jak Siemens, |
39 | Alcatel, WaveCom, IPAQ i inne). Ma wersję działającą z linii poleceń z | |
40 | wieloma funkcjami do dzwonków, książki telefonicznej, SMS-ów, logo, | |
41 | WAP, daty/czasu, budzika, dzwonienia itp. Może także wykonywać pełne | |
42 | kopie zapasowe danych i odtwarzać je. | |
f836a189 | 43 | |
e9da6d17 | 44 | %package libs |
736b1f60 | 45 | Summary: Gammu library |
46 | Summary(pl.UTF-8): Biblioteka Gammu | |
47 | Group: Libraries | |
e9da6d17 | 48 | |
49 | %description libs | |
50 | Gammu tool suite library. | |
51 | ||
35238559 | 52 | %description libs -l pl.UTF-8 |
e9da6d17 | 53 | Biblioteka zestawu narzędzi dla telefonów komórkowych Gammu. |
54 | ||
3b248c9a JB |
55 | %package devel |
56 | Summary: Header files for Gammu tool suite for mobile phones | |
57 | Summary(pl.UTF-8): Pliki nagłówkowe zestawu narzędzi dla telefonów komórkowych Gammu | |
58 | Group: Development/Libraries | |
59 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
a860cb8f | 60 | Requires: bluez-libs-devel |
3b248c9a JB |
61 | |
62 | %description devel | |
63 | Header files for Gammu tool suite for mobile phones. | |
64 | ||
65 | %description devel -l pl.UTF-8 | |
66 | Pliki nagłówkowe zestawu narzędzi dla telefonów komórkowych Gammu. | |
67 | ||
e9da6d17 | 68 | %package static |
736b1f60 | 69 | Summary: Gammu static library |
70 | Summary(pl.UTF-8): Biblioteka statyczna Gammu | |
71 | Group: Development/Libraries | |
3b248c9a | 72 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
e9da6d17 | 73 | |
74 | %description static | |
75 | Gammu static library. | |
76 | ||
35238559 | 77 | %description static -l pl.UTF-8 |
e9da6d17 | 78 | Biblioteka statyczna zestawu narzędzi dla telefonów komórkowych Gammu. |
79 | ||
f836a189 | 80 | %prep |
44bab158 | 81 | %setup -q |
8f45ba1e | 82 | %patch0 -p1 |
f836a189 | 83 | |
84 | %build | |
35238559 TP |
85 | mkdir -p build |
86 | cd build | |
2314bcd8 | 87 | %cmake .. \ |
35238559 | 88 | -DCMAKE_INSTALL_PREFIX="%{_prefix}" \ |
2314bcd8 | 89 | -DCMAKE_VERBOSE_MAKEFILE=ON \ |
8f45ba1e | 90 | -DBUILD_SHARED_LIBS=OFF \ |
5e447162 MB |
91 | -DINSTALL_LIB_DIR=%{_lib} \ |
92 | -DINSTALL_LIBDATA_DIR=%{_libdir} \ | |
8f45ba1e | 93 | %{?debug:-DCMAKE_BUILD_TYPE="Debug"} |
36390489 | 94 | %{__make} |
6baa676b | 95 | mv libgammu/libGammu.a .. |
96 | mv smsd/libgsmsd.a .. | |
2314bcd8 | 97 | %cmake .. \ |
35238559 | 98 | -DCMAKE_INSTALL_PREFIX="%{_prefix}" \ |
2314bcd8 | 99 | -DCMAKE_VERBOSE_MAKEFILE=ON \ |
8f45ba1e | 100 | -DBUILD_SHARED_LIBS=ON \ |
5e447162 MB |
101 | -DINSTALL_LIB_DIR=%{_lib} \ |
102 | -DINSTALL_LIBDATA_DIR=%{_libdir} \ | |
8f45ba1e | 103 | %{?debug:-DCMAKE_BUILD_TYPE="Debug"} |
36390489 | 104 | %{__make} |
f836a189 | 105 | |
106 | %install | |
107 | rm -rf $RPM_BUILD_ROOT | |
35238559 | 108 | install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_examplesdir}/%{name}-%{version}} |
3b248c9a JB |
109 | |
110 | %{__make} -C build install \ | |
35238559 | 111 | DESTDIR=$RPM_BUILD_ROOT |
35238559 | 112 | |
6baa676b | 113 | install docs/config/gammurc $RPM_BUILD_ROOT%{_sysconfdir} |
a3c0577f | 114 | cp -r docs/{examples,develop} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
35238559 | 115 | install libGammu.a $RPM_BUILD_ROOT%{_libdir} |
6baa676b | 116 | install libgsmsd.a $RPM_BUILD_ROOT%{_libdir} |
117 | ||
9ab30125 | 118 | %find_lang %{name} |
11342faf | 119 | |
120 | rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name} | |
f836a189 | 121 | |
5f592fd2 JB |
122 | # for rpm autodeps |
123 | chmod 755 $RPM_BUILD_ROOT%{_libdir}/lib*.so* | |
124 | ||
f836a189 | 125 | %clean |
126 | rm -rf $RPM_BUILD_ROOT | |
127 | ||
a860cb8f JB |
128 | %post libs -p /sbin/ldconfig |
129 | %postun libs -p /sbin/ldconfig | |
11342faf | 130 | |
9ab30125 | 131 | %files -f %{name}.lang |
f836a189 | 132 | %defattr(644,root,root,755) |
6baa676b | 133 | %doc AUTHORS BUGS ChangeLog docs/user/gammu.html docs/user/readme.html README README.Python SUPPORTERS |
9ab30125 | 134 | %doc %lang(it) docs/user/gammu.it.txt docs/user/readme.it.txt |
e4c35d43 | 135 | %attr(755,root,root) %{_bindir}/%{name} |
6baa676b | 136 | %attr(755,root,root) %{_bindir}/gammu-smsd |
137 | %attr(755,root,root) %{_bindir}/gammu-smsd-inject | |
138 | %attr(755,root,root) %{_bindir}/gammu-smsd-monitor | |
139 | %attr(755,root,root) %{_bindir}/jadmaker | |
a3c0577f | 140 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gammurc |
a3c0577f | 141 | %{_examplesdir}/%{name}-%{version} |
11342faf | 142 | %{_mandir}/man1/* |
6baa676b | 143 | %{_mandir}/man5/* |
144 | %{_mandir}/man7/* | |
e9da6d17 | 145 | |
3b248c9a JB |
146 | %files libs |
147 | %defattr(755,root,root,755) | |
a860cb8f | 148 | %attr(755,root,root) %{_libdir}/libGammu.so.*.* |
6baa676b | 149 | %attr(755,root,root) %{_libdir}/libgsmsd.so.*.*.*.* |
150 | %attr(755,root,root) %ghost %{_libdir}/libgsmsd.so.6 | |
151 | %attr(755,root,root) %ghost %{_libdir}/libGammu.so.6 | |
3b248c9a | 152 | |
e9da6d17 | 153 | %files devel |
154 | %defattr(644,root,root,755) | |
35238559 | 155 | %attr(755,root,root) %{_bindir}/%{name}-config |
a860cb8f | 156 | %attr(755,root,root) %{_libdir}/libGammu.so |
6baa676b | 157 | %attr(755,root,root) %{_libdir}/libgsmsd.so |
e9da6d17 | 158 | %{_includedir}/* |
6baa676b | 159 | %dir %{py_sitedir}/gammu/ |
160 | %attr(755,root,root) %{py_sitedir}/gammu/_gammu.so | |
a860cb8f | 161 | %{_pkgconfigdir}/gammu.pc |
6baa676b | 162 | %{_pkgconfigdir}/gammu-smsd.pc |
e9da6d17 | 163 | |
e9da6d17 | 164 | %files static |
165 | %defattr(755,root,root,755) | |
6baa676b | 166 | %{_libdir}/libgsmsd.a |
a860cb8f | 167 | %{_libdir}/libGammu.a |