]>
Commit | Line | Data |
---|---|---|
e9da6d17 | 1 | Summary: GNU tool suite for mobile phones |
2 | Summary(pl.UTF-8): Zestaw narzędzi GNU dla telefonów komórkowych | |
e4c35d43 | 3 | Name: gammu |
35238559 | 4 | Version: 1.11.92 |
a331b5e4 | 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 |
35238559 | 10 | # Source0-md5: 01f34c88bd2559f243ae51905fd9fdc3 |
e721ad3e | 11 | Patch0: %{name}-etc_dir.patch |
b04002ad | 12 | Patch1: %{name}-no_nss.patch |
a331b5e4 | 13 | URL: http://www.gammu.org/ |
54d86c80 | 14 | BuildRequires: bluez-libs-devel |
35238559 | 15 | BuildRequires: cmake |
9ab30125 | 16 | BuildRequires: gettext-devel |
101d1802 | 17 | BuildRequires: mysql-devel |
736b1f60 | 18 | BuildRequires: postgresql-devel |
e4c35d43 PG |
19 | Provides: mygnokii2 |
20 | Obsoletes: mygnokii2 | |
736b1f60 | 21 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
f836a189 | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %description | |
e4c35d43 | 25 | Gammu (formerly known as MyGnokii2) is cellular manager for various |
99e7d737 JB |
26 | mobile phones and modems. It currently supports Nokia 3210, 33xx, |
27 | 3410, 3510, 51xx, 5210, 5510, 61xx, 62xx, 63xx, 6510, 7110, 82xx, | |
28 | 8310, 9110, and 9210, and AT devices (such as Siemens, Alcatel, | |
29 | WaveCom, IPAQ, and other). It has a command line version with many | |
30 | functions for ringtones, phonebook, SMS, logos, WAP, date/time, alarm, | |
31 | calls, etc. It can also make full backups and restore them. | |
32 | ||
1b85dc8f JR |
33 | %description -l pl.UTF-8 |
34 | Gammu (poprzednio znany jako MyGnokii2) jest narzędziem do zarządzania | |
35 | różnymi telefonami komórkowymi i modemami. Aktualnie obsługuje Nokie | |
99e7d737 | 36 | 3210, 33xx, 3410, 51xx, 5210, 5510, 61xx, 62xx, 63xx, 6510, 7110, |
1b85dc8f JR |
37 | 82xx, 8310, 9110 i 3210 oraz urządzenia AT (takie jak Siemens, |
38 | Alcatel, WaveCom, IPAQ i inne). Ma wersję działającą z linii poleceń z | |
39 | wieloma funkcjami do dzwonków, książki telefonicznej, SMS-ów, logo, | |
40 | WAP, daty/czasu, budzika, dzwonienia itp. Może także wykonywać pełne | |
41 | kopie zapasowe danych i odtwarzać je. | |
f836a189 | 42 | |
e9da6d17 | 43 | %package devel |
44 | Summary: Header files for Gammu tool suite for mobile phones | |
45 | Summary(pl.UTF-8): Pliki nagłówkowe zestawu narzędzi dla telefonów komórkowych Gammu | |
46 | Group: Development/Libraries | |
47 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
48 | ||
49 | %description devel | |
50 | Header files for Gammu tool suite for mobile phones. | |
51 | ||
52 | %description devel -l pl.UTF-8 | |
53 | Pliki nagłówkowe zestawu narzędzi dla telefonów komórkowych Gammu. | |
54 | ||
55 | %package libs | |
736b1f60 | 56 | Summary: Gammu library |
57 | Summary(pl.UTF-8): Biblioteka Gammu | |
58 | Group: Libraries | |
e9da6d17 | 59 | |
60 | %description libs | |
61 | Gammu tool suite library. | |
62 | ||
35238559 | 63 | %description libs -l pl.UTF-8 |
e9da6d17 | 64 | Biblioteka zestawu narzędzi dla telefonów komórkowych Gammu. |
65 | ||
66 | %package static | |
736b1f60 | 67 | Summary: Gammu static library |
68 | Summary(pl.UTF-8): Biblioteka statyczna Gammu | |
69 | Group: Development/Libraries | |
70 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
e9da6d17 | 71 | |
72 | %description static | |
73 | Gammu static library. | |
74 | ||
35238559 | 75 | %description static -l pl.UTF-8 |
e9da6d17 | 76 | Biblioteka statyczna zestawu narzędzi dla telefonów komórkowych Gammu. |
77 | ||
f836a189 | 78 | %prep |
44bab158 | 79 | %setup -q |
ecc2fee0 | 80 | #%patch0 -p1 |
a331b5e4 | 81 | %patch1 -p1 |
f836a189 | 82 | |
83 | %build | |
35238559 TP |
84 | mkdir -p build |
85 | cd build | |
86 | %cmake ../ \ | |
87 | -DCMAKE_INSTALL_PREFIX="%{_prefix}" \ | |
88 | -DENABLE_SHARED=OFF \ | |
89 | %{?debug:-DCMAKE_BUILD_TYPE="Debug"} | |
90 | %{__make} | |
91 | mv common/libGammu.a .. | |
92 | %cmake ../ \ | |
93 | -DCMAKE_INSTALL_PREFIX="%{_prefix}" \ | |
94 | -DENABLE_SHARED=ON \ | |
95 | %{?debug:-DCMAKE_BUILD_TYPE="Debug"} | |
96 | %{__make} | |
f836a189 | 97 | |
98 | %install | |
99 | rm -rf $RPM_BUILD_ROOT | |
35238559 TP |
100 | install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_examplesdir}/%{name}-%{version}} |
101 | cd build | |
102 | %{__make} install \ | |
103 | DESTDIR=$RPM_BUILD_ROOT | |
104 | cd .. | |
105 | ||
a683d7d8 | 106 | install docs/examples/config/gammurc $RPM_BUILD_ROOT%{_sysconfdir} |
a3c0577f | 107 | cp -r docs/{examples,develop} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
35238559 | 108 | install libGammu.a $RPM_BUILD_ROOT%{_libdir} |
9ab30125 | 109 | %find_lang %{name} |
e9da6d17 | 110 | cd $RPM_BUILD_ROOT%{_libdir} |
35238559 | 111 | ln -sf libGammu.so.1.11.92 libGammu.so |
11342faf | 112 | |
113 | rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name} | |
f836a189 | 114 | |
115 | %clean | |
116 | rm -rf $RPM_BUILD_ROOT | |
117 | ||
e9da6d17 | 118 | %if %{with ldconfig} |
119 | %post -p /sbin/ldconfig | |
120 | %postun -p /sbin/ldconfig | |
121 | %endif | |
11342faf | 122 | |
9ab30125 | 123 | %files -f %{name}.lang |
f836a189 | 124 | %defattr(644,root,root,755) |
fd27f926 | 125 | %doc ChangeLog docs/user/gammu.htm docs/user/readme.htm other/bash README SUPPORTERS |
9ab30125 | 126 | %doc %lang(it) docs/user/gammu.it.txt docs/user/readme.it.txt |
e4c35d43 | 127 | %attr(755,root,root) %{_bindir}/%{name} |
a3c0577f | 128 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gammurc |
a3c0577f | 129 | %{_examplesdir}/%{name}-%{version} |
11342faf | 130 | %{_mandir}/man1/* |
e9da6d17 | 131 | |
132 | %files devel | |
133 | %defattr(644,root,root,755) | |
35238559 | 134 | %attr(755,root,root) %{_bindir}/%{name}-config |
e9da6d17 | 135 | %{_libdir}/*.so |
136 | %{_includedir}/* | |
137 | %{_pkgconfigdir}/* | |
138 | ||
139 | %files libs | |
140 | %defattr(755,root,root,755) | |
141 | %{_libdir}/*.so.* | |
142 | ||
143 | %files static | |
144 | %defattr(755,root,root,755) | |
145 | %{_libdir}/*.a |