]>
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 |
9ab30125 | 4 | Version: 1.10.3 |
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 |
9ab30125 | 10 | # Source0-md5: a7657a6053bcb6212c7287ac99d21015 |
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 |
9ab30125 | 17 | BuildRequires: gettext-devel |
101d1802 | 18 | BuildRequires: mysql-devel |
736b1f60 | 19 | BuildRequires: postgresql-devel |
e4c35d43 PG |
20 | Provides: mygnokii2 |
21 | Obsoletes: mygnokii2 | |
736b1f60 | 22 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
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 devel |
45 | Summary: Header files for Gammu tool suite for mobile phones | |
46 | Summary(pl.UTF-8): Pliki nagłówkowe zestawu narzędzi dla telefonów komórkowych Gammu | |
47 | Group: Development/Libraries | |
48 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
49 | ||
50 | %description devel | |
51 | Header files for Gammu tool suite for mobile phones. | |
52 | ||
53 | %description devel -l pl.UTF-8 | |
54 | Pliki nagłówkowe zestawu narzędzi dla telefonów komórkowych Gammu. | |
55 | ||
56 | %package libs | |
736b1f60 | 57 | Summary: Gammu library |
58 | Summary(pl.UTF-8): Biblioteka Gammu | |
59 | Group: Libraries | |
e9da6d17 | 60 | |
61 | %description libs | |
62 | Gammu tool suite library. | |
63 | ||
64 | %description devel -l pl.UTF-8 | |
65 | Biblioteka zestawu narzędzi dla telefonów komórkowych Gammu. | |
66 | ||
67 | %package static | |
736b1f60 | 68 | Summary: Gammu static library |
69 | Summary(pl.UTF-8): Biblioteka statyczna Gammu | |
70 | Group: Development/Libraries | |
71 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
e9da6d17 | 72 | |
73 | %description static | |
74 | Gammu static library. | |
75 | ||
76 | %description devel -l pl.UTF-8 | |
77 | Biblioteka statyczna zestawu narzędzi dla telefonów komórkowych Gammu. | |
78 | ||
f836a189 | 79 | %prep |
44bab158 | 80 | %setup -q |
ecc2fee0 | 81 | #%patch0 -p1 |
a331b5e4 | 82 | %patch1 -p1 |
e9da6d17 | 83 | %patch2 -p1 |
84 | cp -f VERSION cfg/autoconf/VERSION | |
9ab30125 | 85 | mv docs/user/gammu.1 . |
f836a189 | 86 | |
87 | %build | |
48238d84 | 88 | cd cfg/autoconf |
a683d7d8 | 89 | %{__autoconf} |
a9f9515d MC |
90 | %configure \ |
91 | --disable-static \ | |
893e13a0 | 92 | --without-rpmdir \ |
a9f9515d MC |
93 | --enable-cb \ |
94 | --enable-7110incoming \ | |
59bcff30 ER |
95 | --enable-6210calendar \ |
96 | --with-localedir=%{_datadir}/%{name} | |
5846ecbf | 97 | cd ../.. |
11342faf | 98 | %{__make} shared |
f836a189 | 99 | |
100 | %install | |
101 | rm -rf $RPM_BUILD_ROOT | |
59bcff30 | 102 | install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_examplesdir}/%{name}-%{version},%{_datadir}/%{name}} |
9ab30125 | 103 | %{__make} installlibonly installlocales \ |
11342faf | 104 | DESTDIR=$RPM_BUILD_ROOT \ |
105 | prefix=%{_prefix} \ | |
9a2b0957 | 106 | INSTALL_LIB_DIR=%{_libdir} \ |
11342faf | 107 | INSTALL_MAN_DIR=%{_mandir}/man1 \ |
59bcff30 | 108 | FIND=find |
f836a189 | 109 | |
59bcff30 | 110 | install -D gammu.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1 |
a683d7d8 | 111 | install docs/examples/config/gammurc $RPM_BUILD_ROOT%{_sysconfdir} |
a3c0577f | 112 | cp -r docs/{examples,develop} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
9ab30125 | 113 | %find_lang %{name} |
e9da6d17 | 114 | cd $RPM_BUILD_ROOT%{_libdir} |
115 | ln -sf libGammu.so.1.0 libGammu.so | |
11342faf | 116 | |
117 | rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name} | |
f836a189 | 118 | |
119 | %clean | |
120 | rm -rf $RPM_BUILD_ROOT | |
121 | ||
e9da6d17 | 122 | %if %{with ldconfig} |
123 | %post -p /sbin/ldconfig | |
124 | %postun -p /sbin/ldconfig | |
125 | %endif | |
11342faf | 126 | |
9ab30125 | 127 | %files -f %{name}.lang |
f836a189 | 128 | %defattr(644,root,root,755) |
9ab30125 TP |
129 | %doc ChangeLog docs/user/gammu.htm docs/user/readme.htm other/bash README |
130 | %doc %lang(it) docs/user/gammu.it.txt docs/user/readme.it.txt | |
e4c35d43 | 131 | %attr(755,root,root) %{_bindir}/%{name} |
a3c0577f | 132 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gammurc |
59bcff30 | 133 | %dir %{_datadir}/%{name} |
a3c0577f | 134 | %{_examplesdir}/%{name}-%{version} |
11342faf | 135 | %{_mandir}/man1/* |
e9da6d17 | 136 | |
137 | %files devel | |
138 | %defattr(644,root,root,755) | |
139 | %{_libdir}/*.so | |
140 | %{_includedir}/* | |
141 | %{_pkgconfigdir}/* | |
142 | ||
143 | %files libs | |
144 | %defattr(755,root,root,755) | |
145 | %{_libdir}/*.so.* | |
146 | ||
147 | %files static | |
148 | %defattr(755,root,root,755) | |
149 | %{_libdir}/*.a |