]>
Commit | Line | Data |
---|---|---|
6f1f101f TP |
1 | # |
2 | # TODO: | |
d98d8039 | 3 | # - conditional build: X11, smsd, security, and static subpackage |
2e72516e TP |
4 | # |
5 | # Conditional build: | |
6 | %bcond_without bluetooth # build without bluetooth support | |
7 | %bcond_without ical # build without iCalendar support | |
8 | %bcond_without irda # build without IrDA support | |
9 | %bcond_without usb # build without USB support (for DKU2 cables) | |
10 | %bcond_without pcsc # build without PC/SC Lite support (for Smart Card readers) | |
d98d8039 | 11 | %bcond_without x11 # build without x11 |
be815134 | 12 | |
aa8dac1d | 13 | Summary: Linux/Unix tool suite for mobile phones |
3de4ce35 | 14 | Summary(pl.UTF-8): Linuksowy/uniksowy zestaw narzędzi dla telefonów komórkowych |
31a8a2b5 | 15 | Name: gnokii |
a263a49e | 16 | Version: 0.6.31 |
d8843c96 | 17 | Release: 1 |
80c7c642 | 18 | Epoch: 1 |
248a49d7 | 19 | License: GPL v2+ |
31a8a2b5 | 20 | Group: Applications/Communications |
7114efb0 | 21 | Source0: http://www.gnokii.org/download/gnokii/%{name}-%{version}.tar.bz2 |
a263a49e | 22 | # Source0-md5: d9627f4a1152d3ea7806df4532850d5f |
9cd14ce8 | 23 | Source1: %{name}.desktop |
24 | Source2: %{name}.png | |
1b668e2a ER |
25 | Source3: %{name}.smsd.config |
26 | Source4: %{name}.smsd.init | |
4bcd3654 | 27 | Patch0: %{name}-pld.patch |
c54d9cd1 | 28 | URL: http://www.gnokii.org/ |
c54d9cd1 | 29 | BuildRequires: autoconf |
30 | BuildRequires: automake | |
2e72516e | 31 | %{?with_bluetooth:BuildRequires: bluez-libs-devel >= 2.8-2} |
0799769f | 32 | BuildRequires: flex |
834c5444 | 33 | BuildRequires: gettext-tools |
2ef62d7e | 34 | BuildRequires: gtk+2-devel >= 2.0 |
d8704417 | 35 | BuildRequires: intltool |
2e72516e | 36 | %{?with_ical:BuildRequires: libical-devel} |
b08e59e7 | 37 | BuildRequires: libtool |
2f45d0a1 | 38 | %{?with_usb:BuildRequires: libusb-compat-devel} |
ae7fd271 | 39 | BuildRequires: mysql-devel |
2e72516e | 40 | %{?with_pcsc:BuildRequires: pcsc-lite-devel} |
2ef62d7e | 41 | BuildRequires: pkgconfig |
ae7fd271 | 42 | BuildRequires: postgresql-devel |
866537a4 | 43 | BuildRequires: rpmbuild(macros) >= 1.268 |
5b1ed131 AM |
44 | BuildRequires: xorg-lib-libX11-devel |
45 | BuildRequires: xorg-lib-libXpm-devel | |
81512118 | 46 | Requires: libgnokii = %{epoch}:%{version}-%{release} |
31a8a2b5 SZ |
47 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
48 | ||
49 | %description | |
50 | Gnokii is a Linux/Unix tool suite and (eventually) modem/fax driver | |
aa8dac1d | 51 | for mobile phones. |
31a8a2b5 | 52 | |
41afaf8f JR |
53 | %description -l pl.UTF-8 |
54 | Gnokii jest zestawem narzędzi dla Linuksa/Uniksa, oraz sterownikiem | |
55 | modemu/faksu dla telefonów komórkowych. | |
31a8a2b5 SZ |
56 | |
57 | %package X11 | |
aa8dac1d | 58 | Summary: Graphical Linux/Unix tool suite for mobile phones |
3de4ce35 | 59 | Summary(pl.UTF-8): Zestaw narzędzi z graficznym interfejsem dla telefonów komórkowych |
31a8a2b5 | 60 | Group: X11/Applications |
461edc8e | 61 | Requires: %{name} = %{epoch}:%{version}-%{release} |
31a8a2b5 SZ |
62 | |
63 | %description X11 | |
2d4829f1 TO |
64 | Xgnokii is graphical Linux/Unix tool suite for mobile phones. It |
65 | allows you to edit your contacts book, send/read SMS's from/in | |
31a8a2b5 SZ |
66 | computer and more other features. |
67 | ||
41afaf8f JR |
68 | %description X11 -l pl.UTF-8 |
69 | Xgnokii jest zestawem narzędzi z graficznym interfejsem użytkownika do | |
70 | pracy z telefonami komórkowymi. Pozwalają one na modyfikowanie spisu | |
71 | telefonów, wysyłanie/czytanie wiadomości SMS i wiele innych rzeczy. | |
31a8a2b5 | 72 | |
461edc8e | 73 | %package -n libgnokii |
74 | Summary: A gnokii shared library | |
3de4ce35 | 75 | Summary(pl.UTF-8): Biblioteka współdzielona gnokii |
461edc8e | 76 | Group: Libraries |
2d4829f1 | 77 | Conflicts: gnokii < 1:0.5.10-0.2 |
f62d7707 | 78 | |
461edc8e | 79 | %description -n libgnokii |
7b988512 | 80 | A gnokii shared library. |
f62d7707 | 81 | |
41afaf8f JR |
82 | %description -n libgnokii -l pl.UTF-8 |
83 | Biblioteka współdzielona gnokii. | |
f62d7707 | 84 | |
2aadba75 | 85 | %package -n libgnokii-devel |
c1915e7f | 86 | Summary: libgnokii heades files |
3de4ce35 | 87 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgnokii |
2aadba75 | 88 | Group: Development/Libraries |
b4e145f0 | 89 | Requires: bluez-libs-devel >= 2.8-2 |
5b1ed131 | 90 | Requires: libgnokii = %{epoch}:%{version}-%{release} |
2f45d0a1 | 91 | Requires: libusb-compat-devel |
5b1ed131 AM |
92 | Requires: xorg-lib-libX11-devel |
93 | Requires: xorg-lib-libXpm-devel | |
2aadba75 AF |
94 | Obsoletes: gnokii-devel |
95 | ||
96 | %description -n libgnokii-devel | |
c1915e7f | 97 | libgnokii header files. |
2aadba75 | 98 | |
41afaf8f JR |
99 | %description -n libgnokii-devel -l pl.UTF-8 |
100 | Pliki nagłówkowe biblioteki libgnokii. | |
2aadba75 AF |
101 | |
102 | %package -n libgnokii-static | |
c1915e7f | 103 | Summary: Static libgnoki library |
3de4ce35 | 104 | Summary(pl.UTF-8): Statyczna biblioteka libgnokii |
2aadba75 AF |
105 | Group: Development/Libraries |
106 | Requires: libgnokii-devel = %{epoch}:%{version}-%{release} | |
107 | Obsoletes: gnokii-devel | |
108 | ||
109 | %description -n libgnokii-static | |
c1915e7f JB |
110 | Static version of libgnokii library. |
111 | ||
41afaf8f | 112 | %description -n libgnokii-static -l pl.UTF-8 |
c1915e7f JB |
113 | Statyczna wersja biblioteki libgnokii. |
114 | ||
b68de70c | 115 | %package smsd |
c791d014 | 116 | Summary: Daemon for handling incoming and outgoing SMSes using libgnokii |
3de4ce35 | 117 | Summary(pl.UTF-8): Serwer do zarządzania przychodzacymi i wychodzacymi SMS-ami przy użyciu gnokii |
c791d014 | 118 | Group: Daemons |
866537a4 | 119 | Requires(post,preun): /sbin/chkconfig |
c791d014 | 120 | Requires: gnokii = %{epoch}:%{version}-%{release} |
866537a4 | 121 | Requires: rc-scripts |
c791d014 | 122 | Obsoletes: smstools |
123 | ||
b68de70c | 124 | %description smsd |
13fc9712 | 125 | The SMSD (SMS daemon) program is intended for receiving and sending |
b68de70c JB |
126 | SMSes. |
127 | ||
41afaf8f JR |
128 | %description smsd -l pl.UTF-8 |
129 | Program SMSD (demon SMS) służy do odbierania i wysyłania SMS-ów. | |
c791d014 | 130 | |
7114efb0 | 131 | %package smsd-mysql |
fc8fb6fa | 132 | Summary: MySQL plugin for gnokii-smsd |
3de4ce35 | 133 | Summary(pl.UTF-8): Wtyczka MySQL dla gnokii-smsd |
7114efb0 AG |
134 | Group: Daemons |
135 | Requires: gnokii-smsd = %{epoch}:%{version}-%{release} | |
136 | ||
137 | %description smsd-mysql | |
138 | MySQL plugin for gnokii-smsd. | |
139 | ||
41afaf8f | 140 | %description smsd-mysql -l pl.UTF-8 |
fc8fb6fa | 141 | Wtyczka MySQL dla gnokii-smsd. |
7114efb0 AG |
142 | |
143 | %package smsd-pgsql | |
fc8fb6fa | 144 | Summary: PostgreSQL plugin for gnokii-smsd |
3de4ce35 | 145 | Summary(pl.UTF-8): Wtyczka PostgreSQL dla gnokii-smsd |
7114efb0 AG |
146 | Group: Daemons |
147 | Requires: gnokii-smsd = %{epoch}:%{version}-%{release} | |
148 | ||
149 | %description smsd-pgsql | |
150 | PostgreSQL plugin for gnokii-smsd. | |
151 | ||
41afaf8f | 152 | %description smsd-pgsql -l pl.UTF-8 |
fc8fb6fa | 153 | Wtyczka PostgreSQL dla gnokii-smsd. |
7114efb0 | 154 | |
d8843c96 | 155 | %package smsd-sqlite |
156 | Summary: SQLite plugin for gnokii-smsd | |
157 | Summary(pl.UTF-8): Wtyczka SQLite dla gnokii-smsd | |
158 | Group: Daemons | |
159 | Requires: gnokii-smsd = %{epoch}:%{version}-%{release} | |
160 | ||
161 | %description smsd-sqlite | |
162 | SQLite plugin for gnokii-smsd. | |
163 | ||
164 | %description smsd-sqlite -l pl.UTF-8 | |
165 | Wtyczka SQLite dla gnokii-smsd. | |
166 | ||
7114efb0 AG |
167 | %package smsd-file |
168 | Summary: file plugin for gnokii-smsd | |
3de4ce35 | 169 | Summary(pl.UTF-8): Wtyczka obsługi plików dla gnokii-smsd |
7114efb0 AG |
170 | Group: Daemons |
171 | Requires: gnokii-smsd = %{epoch}:%{version}-%{release} | |
172 | ||
173 | %description smsd-file | |
174 | Plain file plugin for gnokii-smsd | |
175 | ||
41afaf8f JR |
176 | %description smsd-file -l pl.UTF-8 |
177 | Wtyczka obsługi plików dla gnokii-smsd. | |
7114efb0 | 178 | |
31a8a2b5 | 179 | %prep |
1d7cba08 | 180 | %setup -q |
31a8a2b5 SZ |
181 | %patch0 -p1 |
182 | ||
183 | %build | |
b08e59e7 | 184 | %{__libtoolize} |
c7e2f356 | 185 | %{__aclocal} -I m4 |
fc73d944 | 186 | %{__autoconf} |
61815007 AG |
187 | %{__autoheader} |
188 | %{__automake} | |
31a8a2b5 | 189 | %configure \ |
4bcd3654 | 190 | --enable-security \ |
d98d8039 | 191 | %{!?with_x11:--with-xgnokiidir=%{_prefix}} \ |
2e72516e TP |
192 | %{!?with_ical:--disable-libical} \ |
193 | %{!?with_usb:--disable-libusb} \ | |
194 | %{!?with_irda:--disable-irda} \ | |
195 | %{!?with_bluetooth:--disable-bluetooth} \ | |
d98d8039 | 196 | --enable-smsd \ |
d98d8039 MWP |
197 | %{?debug:--enable-fulldebug} \ |
198 | %{!?with_pcsc:--disable-libpcsclite} | |
2e72516e TP |
199 | # %{!?debug:--disable-debug} \ |
200 | # %{!?debug:--disable-xdebug} \ | |
201 | # %{!?debug:--disable-rlpdebug} \ | |
31a8a2b5 | 202 | |
d98d8039 | 203 | %{__make} -j1 |
c791d014 | 204 | |
31a8a2b5 SZ |
205 | %install |
206 | rm -rf $RPM_BUILD_ROOT | |
1b668e2a ER |
207 | install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d,logrotate.d} \ |
208 | $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir}/{x,}gnokii} \ | |
d12c4d40 | 209 | $RPM_BUILD_ROOT{%{_sysconfdir},%{_pixmapsdir},%{_desktopdir},%{_var}/log/{smsd,archive/smsd}} |
31a8a2b5 | 210 | |
d98d8039 | 211 | %{__make} install \ |
735576f5 | 212 | DESTDIR=$RPM_BUILD_ROOT |
c791d014 | 213 | |
be815134 | 214 | %{__make} -C xgnokii install \ |
a263a49e | 215 | DESTDIR=$RPM_BUILD_ROOT |
a263a49e | 216 | |
be815134 | 217 | cp -p Docs/sample/gnokiirc $RPM_BUILD_ROOT%{_sysconfdir}/gnokiirc |
31a8a2b5 | 218 | |
0a5ec51c | 219 | install -d $RPM_BUILD_ROOT%{_datadir}/xgnokii/xpm |
be815134 | 220 | cp -p xgnokii/xpm/* $RPM_BUILD_ROOT%{_datadir}/xgnokii/xpm |
0a5ec51c | 221 | |
be815134 ER |
222 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
223 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} | |
224 | cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/smsd | |
225 | install -p %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/smsd | |
1b668e2a | 226 | |
be815134 | 227 | # do not complain about unpackaged files (we package them with %doc anyway) |
acf21219 JB |
228 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} |
229 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/smsd/*.{la,a} | |
b68de70c | 230 | |
c54d9cd1 | 231 | %find_lang %{name} |
31a8a2b5 SZ |
232 | |
233 | %clean | |
21189336 | 234 | rm -rf $RPM_BUILD_ROOT |
31a8a2b5 | 235 | |
c1915e7f JB |
236 | %post -n libgnokii -p /sbin/ldconfig |
237 | %postun -n libgnokii -p /sbin/ldconfig | |
0799769f | 238 | |
1b668e2a ER |
239 | %post smsd |
240 | /sbin/chkconfig --add smsd | |
241 | %service smsd restart "smsd daemon" | |
242 | ||
243 | %preun smsd | |
244 | if [ "$1" = "0" ]; then | |
245 | %service smsd stop | |
246 | /sbin/chkconfig --del smsd | |
247 | fi | |
248 | ||
c54d9cd1 | 249 | %files -f %{name}.lang |
31a8a2b5 | 250 | %defattr(644,root,root,755) |
2e72516e TP |
251 | %doc Docs/{CREDITS,DataCalls-QuickStart,KNOWN_BUGS,README*,Bugs,FAQ,*.txt,protocol} |
252 | %doc Docs/{sample,gnokii-{hackers-howto,ir-howto,IrDA-Linux},gnokii.nol} utils/gnapplet.sis | |
248a49d7 | 253 | %doc TODO ChangeLog MAINTAINERS |
31a8a2b5 | 254 | %attr(755,root,root) %{_bindir}/gnokii |
d88c743b | 255 | %attr(755,root,root) %{_bindir}/sendsms |
d98d8039 | 256 | %attr(755,root,root) %{_bindir}/gnokiid |
31a8a2b5 | 257 | %attr(755,root,root) %{_sbindir}/mgnokiidev |
7114efb0 | 258 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gnokiirc |
89a84832 | 259 | %{_mandir}/man1/[!x]* |
c791d014 | 260 | %{_mandir}/man8/gnokiid.* |
261 | %{_mandir}/man8/mgnokiidev.* | |
461edc8e | 262 | |
31a8a2b5 SZ |
263 | %files X11 |
264 | %defattr(644,root,root,755) | |
2e72516e | 265 | %doc xgnokii/{ChangeLog,README.vcard} |
d88c743b | 266 | %attr(755,root,root) %{_bindir}/xgnokii |
d88c743b | 267 | %dir %{_datadir}/xgnokii |
89a84832 | 268 | %{_libdir}/xgnokii |
0a5ec51c | 269 | %{_datadir}/xgnokii/xpm |
461edc8e | 270 | %{_desktopdir}/gnokii.desktop |
d98d8039 | 271 | %{_desktopdir}/xgnokii.desktop |
461edc8e | 272 | %{_pixmapsdir}/* |
89a84832 | 273 | %{_mandir}/man1/xgnokii.1x* |
f62d7707 | 274 | |
461edc8e | 275 | %files -n libgnokii |
53b6f12b | 276 | %defattr(644,root,root,755) |
6c55da51 | 277 | %attr(755,root,root) %{_libdir}/libgnokii.so.*.*.* |
278 | %attr(755,root,root) %ghost %{_libdir}/libgnokii.so.? | |
2aadba75 AF |
279 | |
280 | %files -n libgnokii-devel | |
281 | %defattr(644,root,root,755) | |
c1915e7f JB |
282 | %attr(755,root,root) %{_libdir}/libgnokii.so |
283 | %{_libdir}/libgnokii.la | |
2aadba75 AF |
284 | %{_includedir}/*.h |
285 | %{_includedir}/%{name} | |
2aadba75 AF |
286 | %{_pkgconfigdir}/*.pc |
287 | ||
288 | %files -n libgnokii-static | |
289 | %defattr(644,root,root,755) | |
290 | %{_libdir}/libgnokii.a | |
c791d014 | 291 | |
866537a4 | 292 | %files smsd |
c791d014 | 293 | %defattr(644,root,root,755) |
294 | %doc smsd/ChangeLog smsd/README smsd/README.MySQL smsd/README.Tru64 smsd/action smsd/*.sql | |
d98d8039 | 295 | %attr(755,root,root) %{_bindir}/smsd |
39c2fde9 | 296 | %dir %{_libdir}/smsd |
c791d014 | 297 | %{_mandir}/man8/smsd.* |
1b668e2a ER |
298 | %attr(754,root,root) /etc/rc.d/init.d/smsd |
299 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/smsd | |
300 | %attr(2750,root,logs) %dir /var/log/smsd | |
5a7835a2 | 301 | %attr(2750,root,logs) %dir /var/log/archive/smsd |
7114efb0 | 302 | |
788ad74f | 303 | %files smsd-mysql |
7114efb0 | 304 | %defattr(644,root,root,755) |
d98d8039 | 305 | %attr(755,root,root) %{_libdir}/smsd/libsmsd_mysql.so |
7114efb0 | 306 | |
788ad74f | 307 | %files smsd-pgsql |
7114efb0 | 308 | %defattr(644,root,root,755) |
d98d8039 | 309 | %attr(755,root,root) %{_libdir}/smsd/libsmsd_pq.so |
7114efb0 | 310 | |
d8843c96 | 311 | %files smsd-sqlite |
312 | %defattr(644,root,root,755) | |
313 | %attr(755,root,root) %{_libdir}/smsd/libsmsd_sqlite.so | |
314 | ||
788ad74f | 315 | %files smsd-file |
7114efb0 | 316 | %defattr(644,root,root,755) |
d98d8039 | 317 | %attr(755,root,root) %{_libdir}/smsd/libsmsd_file.so |