]>
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 |
e9da6d17 | 4 | Version: 1.10.0 |
a331b5e4 | 5 | Release: 1 |
f836a189 | 6 | Epoch: 1 |
e4c35d43 | 7 | License: GPL v2 |
f836a189 | 8 | Group: Applications/Communications |
e9da6d17 | 9 | Source0: http://dl.cihar.com/gammu/releases/%{name}-%{version}.tar.bz2 |
10 | # Source0-md5: 05b623c30cfd69ea97f0bc054b19928d | |
e721ad3e | 11 | Patch0: %{name}-etc_dir.patch |
b04002ad | 12 | Patch1: %{name}-no_nss.patch |
e9da6d17 | 13 | Patch2: %{name}-libpq_dir.patch |
a331b5e4 | 14 | URL: http://www.gammu.org/ |
f836a189 | 15 | BuildRequires: autoconf |
54d86c80 | 16 | BuildRequires: bluez-libs-devel |
101d1802 | 17 | BuildRequires: mysql-devel |
e9da6d17 | 18 | BuildRequires: postgresql-devel |
e4c35d43 PG |
19 | Provides: mygnokii2 |
20 | Obsoletes: mygnokii2 | |
e9da6d17 | 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 | |
56 | Summary: Gammu library | |
57 | Summary(pl.UTF-8): Biblioteka Gammu | |
58 | Group: Libraries | |
59 | ||
60 | %description libs | |
61 | Gammu tool suite library. | |
62 | ||
63 | %description devel -l pl.UTF-8 | |
64 | Biblioteka zestawu narzędzi dla telefonów komórkowych Gammu. | |
65 | ||
66 | %package static | |
67 | Summary: Gammu static library | |
68 | Summary(pl.UTF-8): Biblioteka statyczna Gammu | |
69 | Group: Development/Libraries | |
70 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
71 | ||
72 | %description static | |
73 | Gammu static library. | |
74 | ||
75 | %description devel -l pl.UTF-8 | |
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 |
e9da6d17 | 82 | %patch2 -p1 |
83 | cp -f VERSION cfg/autoconf/VERSION | |
59bcff30 | 84 | mv docs/docs/english/gammu.1 . |
f836a189 | 85 | |
86 | %build | |
48238d84 | 87 | cd cfg/autoconf |
a683d7d8 | 88 | %{__autoconf} |
a9f9515d MC |
89 | %configure \ |
90 | --disable-static \ | |
893e13a0 | 91 | --without-rpmdir \ |
a9f9515d MC |
92 | --enable-cb \ |
93 | --enable-7110incoming \ | |
59bcff30 ER |
94 | --enable-6210calendar \ |
95 | --with-localedir=%{_datadir}/%{name} | |
5846ecbf | 96 | cd ../.. |
11342faf | 97 | %{__make} shared |
f836a189 | 98 | |
99 | %install | |
100 | rm -rf $RPM_BUILD_ROOT | |
59bcff30 | 101 | install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_examplesdir}/%{name}-%{version},%{_datadir}/%{name}} |
e9da6d17 | 102 | %{__make} installlibonly \ |
11342faf | 103 | DESTDIR=$RPM_BUILD_ROOT \ |
104 | prefix=%{_prefix} \ | |
9a2b0957 | 105 | INSTALL_LIB_DIR=%{_libdir} \ |
11342faf | 106 | INSTALL_MAN_DIR=%{_mandir}/man1 \ |
59bcff30 | 107 | FIND=find |
f836a189 | 108 | |
59bcff30 | 109 | install -D gammu.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1 |
a683d7d8 | 110 | install docs/examples/config/gammurc $RPM_BUILD_ROOT%{_sysconfdir} |
e9da6d17 | 111 | install docs/docs/locale/*.txt $RPM_BUILD_ROOT%{_datadir}/%{name} |
a3c0577f | 112 | cp -r docs/{examples,develop} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
e9da6d17 | 113 | cd $RPM_BUILD_ROOT%{_libdir} |
114 | ln -sf libGammu.so.1.0 libGammu.so | |
11342faf | 115 | |
116 | rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name} | |
f836a189 | 117 | |
118 | %clean | |
119 | rm -rf $RPM_BUILD_ROOT | |
120 | ||
e9da6d17 | 121 | %if %{with ldconfig} |
122 | %post -p /sbin/ldconfig | |
123 | %postun -p /sbin/ldconfig | |
124 | %endif | |
11342faf | 125 | |
f836a189 | 126 | %files |
127 | %defattr(644,root,root,755) | |
e9da6d17 | 128 | %doc ChangeLog docs/docs/english/gammu.htm other/bash README |
59bcff30 | 129 | %doc %lang(it) docs/docs/italian |
e4c35d43 | 130 | %attr(755,root,root) %{_bindir}/%{name} |
a3c0577f | 131 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gammurc |
59bcff30 | 132 | %dir %{_datadir}/%{name} |
e9da6d17 | 133 | %lang(cs) %{_datadir}/%{name}/gammu_cs.txt |
134 | %lang(de) %{_datadir}/%{name}/gammu_de.txt | |
135 | %lang(es) %{_datadir}/%{name}/gammu_es.txt | |
136 | %lang(it) %{_datadir}/%{name}/gammu_it.txt | |
137 | %lang(pl) %{_datadir}/%{name}/gammu_pl.txt | |
138 | %lang(ru) %{_datadir}/%{name}/gammu_ru.txt | |
139 | %{_datadir}/%{name}/gammu_us.txt | |
a3c0577f | 140 | %{_examplesdir}/%{name}-%{version} |
11342faf | 141 | %{_mandir}/man1/* |
e9da6d17 | 142 | |
143 | %files devel | |
144 | %defattr(644,root,root,755) | |
145 | %{_libdir}/*.so | |
146 | %{_includedir}/* | |
147 | %{_pkgconfigdir}/* | |
148 | ||
149 | %files libs | |
150 | %defattr(755,root,root,755) | |
151 | %{_libdir}/*.so.* | |
152 | ||
153 | %files static | |
154 | %defattr(755,root,root,755) | |
155 | %{_libdir}/*.a |