]>
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 |
48c85e31 MWP |
4 | Version: 1.12.0 |
5 | Release: 0.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 |
48c85e31 | 10 | # Source0-md5: 260035c1647bab396dfd9b35d78a3ad8 |
e721ad3e | 11 | Patch0: %{name}-etc_dir.patch |
a331b5e4 | 12 | URL: http://www.gammu.org/ |
54d86c80 | 13 | BuildRequires: bluez-libs-devel |
35238559 | 14 | BuildRequires: cmake |
9ab30125 | 15 | BuildRequires: gettext-devel |
101d1802 | 16 | BuildRequires: mysql-devel |
736b1f60 | 17 | BuildRequires: postgresql-devel |
3b248c9a | 18 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
e4c35d43 PG |
19 | Provides: mygnokii2 |
20 | Obsoletes: mygnokii2 | |
f836a189 | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
e4c35d43 | 24 | Gammu (formerly known as MyGnokii2) is cellular manager for various |
99e7d737 JB |
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. | |
31 | ||
1b85dc8f JR |
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 | |
99e7d737 | 35 | 3210, 33xx, 3410, 51xx, 5210, 5510, 61xx, 62xx, 63xx, 6510, 7110, |
1b85dc8f JR |
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. | |
f836a189 | 41 | |
e9da6d17 | 42 | %package libs |
736b1f60 | 43 | Summary: Gammu library |
44 | Summary(pl.UTF-8): Biblioteka Gammu | |
45 | Group: Libraries | |
e9da6d17 | 46 | |
47 | %description libs | |
48 | Gammu tool suite library. | |
49 | ||
35238559 | 50 | %description libs -l pl.UTF-8 |
e9da6d17 | 51 | Biblioteka zestawu narzędzi dla telefonów komórkowych Gammu. |
52 | ||
3b248c9a JB |
53 | %package devel |
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 | ||
59 | %description devel | |
60 | Header files for Gammu tool suite for mobile phones. | |
61 | ||
62 | %description devel -l pl.UTF-8 | |
63 | Pliki nagłówkowe zestawu narzędzi dla telefonów komórkowych Gammu. | |
64 | ||
e9da6d17 | 65 | %package static |
736b1f60 | 66 | Summary: Gammu static library |
67 | Summary(pl.UTF-8): Biblioteka statyczna Gammu | |
68 | Group: Development/Libraries | |
3b248c9a | 69 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
e9da6d17 | 70 | |
71 | %description static | |
72 | Gammu static library. | |
73 | ||
35238559 | 74 | %description static -l pl.UTF-8 |
e9da6d17 | 75 | Biblioteka statyczna zestawu narzędzi dla telefonów komórkowych Gammu. |
76 | ||
f836a189 | 77 | %prep |
44bab158 | 78 | %setup -q |
ecc2fee0 | 79 | #%patch0 -p1 |
f836a189 | 80 | |
81 | %build | |
35238559 TP |
82 | mkdir -p build |
83 | cd build | |
84 | %cmake ../ \ | |
85 | -DCMAKE_INSTALL_PREFIX="%{_prefix}" \ | |
86 | -DENABLE_SHARED=OFF \ | |
48c85e31 | 87 | %{?debug:-DCMAKE_BUILD_TYPE="Debug"} |
35238559 TP |
88 | %{__make} |
89 | mv common/libGammu.a .. | |
90 | %cmake ../ \ | |
91 | -DCMAKE_INSTALL_PREFIX="%{_prefix}" \ | |
92 | -DENABLE_SHARED=ON \ | |
48c85e31 | 93 | %{?debug:-DCMAKE_BUILD_TYPE="Debug"} |
35238559 | 94 | %{__make} |
f836a189 | 95 | |
96 | %install | |
97 | rm -rf $RPM_BUILD_ROOT | |
35238559 | 98 | install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_examplesdir}/%{name}-%{version}} |
3b248c9a JB |
99 | |
100 | %{__make} -C build install \ | |
35238559 | 101 | DESTDIR=$RPM_BUILD_ROOT |
35238559 | 102 | |
a683d7d8 | 103 | install docs/examples/config/gammurc $RPM_BUILD_ROOT%{_sysconfdir} |
a3c0577f | 104 | cp -r docs/{examples,develop} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
35238559 | 105 | install libGammu.a $RPM_BUILD_ROOT%{_libdir} |
9ab30125 | 106 | %find_lang %{name} |
e9da6d17 | 107 | cd $RPM_BUILD_ROOT%{_libdir} |
35238559 | 108 | ln -sf libGammu.so.1.11.92 libGammu.so |
11342faf | 109 | |
110 | rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name} | |
f836a189 | 111 | |
112 | %clean | |
113 | rm -rf $RPM_BUILD_ROOT | |
114 | ||
e9da6d17 | 115 | %post -p /sbin/ldconfig |
116 | %postun -p /sbin/ldconfig | |
11342faf | 117 | |
9ab30125 | 118 | %files -f %{name}.lang |
f836a189 | 119 | %defattr(644,root,root,755) |
fd27f926 | 120 | %doc ChangeLog docs/user/gammu.htm docs/user/readme.htm other/bash README SUPPORTERS |
9ab30125 | 121 | %doc %lang(it) docs/user/gammu.it.txt docs/user/readme.it.txt |
e4c35d43 | 122 | %attr(755,root,root) %{_bindir}/%{name} |
a3c0577f | 123 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gammurc |
a3c0577f | 124 | %{_examplesdir}/%{name}-%{version} |
11342faf | 125 | %{_mandir}/man1/* |
e9da6d17 | 126 | |
3b248c9a JB |
127 | %files libs |
128 | %defattr(755,root,root,755) | |
129 | %attr(755,root,root) %{_libdir}/*.so.* | |
130 | ||
e9da6d17 | 131 | %files devel |
132 | %defattr(644,root,root,755) | |
35238559 | 133 | %attr(755,root,root) %{_bindir}/%{name}-config |
3b248c9a | 134 | %attr(755,root,root) %{_libdir}/*.so |
e9da6d17 | 135 | %{_includedir}/* |
136 | %{_pkgconfigdir}/* | |
137 | ||
e9da6d17 | 138 | %files static |
139 | %defattr(755,root,root,755) | |
140 | %{_libdir}/*.a |