7 |
Version: %{version} |
Version: %{version} |
8 |
Release: %{release} |
Release: %{release} |
9 |
License: GNU GPL |
License: GNU GPL |
10 |
Packager: Pavel Janik ml. <Pavel.Janik@linux.cz>, Jan Derfinak <ja@mail.upjs.sk> |
Packager: Pavel Janik ml. <Pavel.Janik@linux.cz>, Jan Derfinak <ja@mail.upjs.sk>, Pawel Kot |
11 |
Group: Applications/Communications |
Group: Applications/Communications |
12 |
Source: htp://www.gnokii.org/download/%{name}-%{version}.tar.gz |
Source: htp://www.gnokii.org/download/gnokii/%{name}-%{version}.tar.gz |
13 |
BuildRoot: /var/tmp/%{name}-%{version}-root |
BuildRoot: /var/tmp/%{name}-%{version}-root |
14 |
BuildPreReq: gettext, gtk+-devel >= 1.2.0, flex |
BuildRequires: gettext, gtk+-devel >= 1.2.0, flex, bluez-libs-devel |
15 |
|
BuildRequires: mysql-devel, postgreql-devel, XFree86-devel |
16 |
|
Requires: libgnokii = %{version}-%{release} |
17 |
|
|
18 |
%description |
%description |
19 |
Gnokii is a multisystem tool suite and (eventually) modem/fax driver for |
Gnokii is a multisystem tool suite and (eventually) modem/fax driver for |
20 |
the mobile phones, released under the GPL. |
the mobile phones, released under the GPL. |
21 |
|
|
22 |
|
%package libgnokii |
23 |
|
Summary: A gnokii shared library |
24 |
|
Group: Libraries |
25 |
|
|
26 |
|
%description libgnokii |
27 |
|
Gnokii shared library |
28 |
|
|
29 |
|
%package -n libgnokii-devel |
30 |
|
Summary: libgnokii heades files |
31 |
|
Group: Development/Libraries |
32 |
|
Requires: libgnokii = %{version}-%{release} |
33 |
|
Requires: XFree86-devel |
34 |
|
Requires: bluez-libs-devel |
35 |
|
|
36 |
|
%description libgnokii-devel |
37 |
|
libgnokii header files. |
38 |
|
|
39 |
%package xgnokii |
%package xgnokii |
40 |
Summary: Graphical gtk+ based tool suite for the mobile phones. |
Summary: Graphical gtk+ based tool suite for the mobile phones. |
41 |
Group: X11/Applications |
Group: X11/Applications |
42 |
|
|
43 |
%description xgnokii |
%description xgnokii |
44 |
Xgnokii is a graphical gtk+ based tool suite for the mobile phones. It |
Xgnokii is a graphical gtk+ based tool suite for the mobile phones. It |
45 |
allows you to edit your contacts book, send/read SMS's from/in your |
allows you to edit your contacts book, send/read SMS's from/in your |
46 |
computer and more. |
computer and more. |
47 |
|
|
48 |
%package devel |
%package gnokii-smsd |
49 |
Summary: Headers for gnokii application development |
Summary: Daemon for handling incoming and outgoing SMSes using libgnokii |
50 |
Group: Development/Communication |
Group: Daemons |
51 |
%description devel |
Requires: gnokii = %{version}-%{release} |
52 |
Header files needed for developing applications using gnokii. |
|
53 |
|
%description gnokii-smsd |
54 |
|
The SMSD (SMS daemon) program is intended for receiving and sending |
55 |
|
SMSes |
56 |
|
|
57 |
|
%package gnokii-smsd-mysql |
58 |
|
Summary: mysql plugin for gnokii-smsd |
59 |
|
Group: Daemons |
60 |
|
Requires: gnokii-smsd = %{version}-%{release} |
61 |
|
Requires: mysql-devel |
62 |
|
|
63 |
|
%description gnokii-smsd-mysql |
64 |
|
MySQL plugin for gnokii-smsd |
65 |
|
|
66 |
|
%package gnokii-smsd-psql |
67 |
|
Summary: psql plugin for gnokii-smsd |
68 |
|
Group: Daemons |
69 |
|
Requires: gnokii-smsd = %{version}-%{release} |
70 |
|
Requires: postgresql-devel |
71 |
|
|
72 |
|
%description gnokii-smsd-psql |
73 |
|
PostgreSQL plugin for gnokii-smsd |
74 |
|
|
75 |
|
%package gnokii-smsd-file |
76 |
|
Summary: file plugin for gnokii-smsd |
77 |
|
Group: Daemons |
78 |
|
Requires: gnokii-smsd = %{version}-%{release} |
79 |
|
|
80 |
|
%description gnokii-smsd-file |
81 |
|
Plain file plugin for gnokii-smsd |
82 |
|
|
83 |
%prep |
%prep |
84 |
|
%setup |
85 |
|
|
86 |
%setup -q |
%{__cat} <<EOF >gnokii.desktop |
87 |
|
[Desktop Entry] |
88 |
|
Name=Gnokii Mobile Manager |
89 |
|
Comment=Access your mobile phone data |
90 |
|
Icon=gnokii.png |
91 |
|
Exec=xgnokii |
92 |
|
Terminal=false |
93 |
|
Type=Application |
94 |
|
Categories=Application;Utility; |
95 |
|
EOF |
96 |
|
|
97 |
%build |
%build |
98 |
./configure --prefix=/usr --with-xgnokiidir=/usr/X11R6 --enable-security |
%configure --prefix=/usr --with-xgnokiidir=/usr/X11R6 --enable-security |
99 |
make |
%{__make} |
100 |
|
|
101 |
|
cd smsd |
102 |
|
%{__make} |
103 |
|
%{__make} libpq.la |
104 |
|
%{__make} libmysql.la |
105 |
|
%{__make} libfile.la |
106 |
|
cd .. |
107 |
|
|
108 |
%install |
%install |
109 |
rm -rf ${RPM_BUILD_ROOT} |
rm -rf ${RPM_BUILD_ROOT} |
110 |
|
|
111 |
make DESTDIR=${RPM_BUILD_ROOT} install |
%{__make} DESTDIR=${RPM_BUILD_ROOT} install |
112 |
|
|
113 |
mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir} |
cd smsd |
114 |
|
%{__make} DESTDIR=$RPM_BUILD_ROOT install |
115 |
|
cd .. |
116 |
|
|
117 |
|
mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir} |
118 |
sed 's#/usr/local/sbin/#%{_sbindir}#' <Docs/sample/gnokiirc >${RPM_BUILD_ROOT}%{_sysconfdir}/gnokiirc |
sed 's#/usr/local/sbin/#%{_sbindir}#' <Docs/sample/gnokiirc >${RPM_BUILD_ROOT}%{_sysconfdir}/gnokiirc |
119 |
|
|
120 |
# I know of no proper rpm macro to pickup manpages, they're expected |
install gnokii.desktop $RPM_BUILD_ROOT%{_desktopdir} |
|
# to be part of make install - So until that happens this hack is needed |
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1 |
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man8 |
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_prefix}/X11R6/man/man1 |
|
|
cp Docs/man/*.1 ${RPM_BUILD_ROOT}%{_mandir}/man1 |
|
|
cp Docs/man/*.8 ${RPM_BUILD_ROOT}%{_mandir}/man8 |
|
|
cp Docs/man/*.1x ${RPM_BUILD_ROOT}%{_prefix}/X11R6/man/man1 |
|
121 |
|
|
122 |
%pre |
%pre |
123 |
/usr/sbin/groupadd -r -f gnokii >/dev/null 2>&1 |
/usr/sbin/groupadd -r -f gnokii >/dev/null 2>&1 |
124 |
|
|
125 |
%post |
%post -n libgnokii |
126 |
|
/sbin/ldconfig |
127 |
|
|
128 |
|
%postun -n libgnokii |
129 |
/sbin/ldconfig |
/sbin/ldconfig |
130 |
|
|
131 |
%postun |
%postun |
135 |
rm -rf ${RPM_BUILD_ROOT} |
rm -rf ${RPM_BUILD_ROOT} |
136 |
|
|
137 |
%files |
%files |
138 |
%defattr(-,root,root) |
%defattr(644,root,root,755) |
139 |
%doc Docs/CREDITS Docs/DataCalls-QuickStart Docs/FAQ Docs/README Docs/KNOWN_BUGS |
%doc Docs/{CREDITS,DataCalls-QuickStart,README*,Bugs,FAQ,*.txt,protocol,KNOWN_BUGS} |
140 |
%doc Docs/README-3810 Docs/README-6110 Docs/README-2110 Docs/README-6510 Docs/README-7110 |
%doc Docs/{sample/{gnokiirc,ppp*,ringtone,vCalendar,vCard},gnokii-{ir-howto,IrDA-Linux}} |
141 |
%doc Docs/README-dancall Docs/README-siemens Docs/README-ericsson Docs/README-Symbian |
%doc TODO ChangeLog MAINTAINERS |
142 |
%doc Docs/README-WIN32 Docs/README-MacOSX Docs/README-DKU2 |
%{_bindir}/gnokii |
|
%doc Docs/gettext-howto Docs/gnokii-IrDA-Linux Docs/gnokii-ir-howto Docs/packaging-howto |
|
|
%doc Docs/gnokii-hackers-howto Docs/gnokii.nol Docs/logos.txt Docs/ringtones.txt Docs/Bugs |
|
|
%doc Docs/sample/logo/gnokii.xpm Docs/sample/ringtone/star.imelody Docs/sample/ringtone/star.rtttl |
|
|
%doc Docs/sample/gnokiirc |
|
|
%doc Docs/sample/ppp/options Docs/sample/ppp/pap-secrets |
|
|
%doc Docs/sample/ppp/ppp-gnokii Docs/sample/ppp/ppp-on |
|
|
%doc Docs/sample/ppp/cimd-connect Docs/sample/ppp/ppp-6210-modem |
|
|
%doc Docs/sample/ppp/ppp-hscsd |
|
|
%doc Docs/protocol/nk2110.txt Docs/protocol/nk3110.txt Docs/protocol/nk6110.txt Docs/protocol/nk6160.txt |
|
|
%doc Docs/protocol/nk6185.txt Docs/protocol/nk640.txt Docs/protocol/nk7110.txt Docs/protocol/nk6510.txt |
|
|
%doc Docs/protocol/nokia.txt |
|
|
|
|
|
%attr(0750, root, gnokii) %{_bindir}/gnokii |
|
|
%attr(0750, root, gnokii) %{_sbindir}/gnokiid |
|
|
%attr(4750, root, gnokii) %{_sbindir}/mgnokiidev |
|
|
%attr(0750, root, gnokii) %{_libdir}/libgnokii.so.* |
|
|
%attr(0750, root, gnokii) %{_libdir}/libgnokii.a |
|
|
%attr(0750, root, gnokii) %{_libdir}/libgnokii.la |
|
|
%{_bindir}/ppm2nokia |
|
|
%{_bindir}/sendsms |
|
143 |
%{_bindir}/todologo |
%{_bindir}/todologo |
144 |
%{_datadir}/locale/* |
%{_bindir}/sendsms |
145 |
%config %{_sysconfdir}/gnokiirc |
%{_bindir}/ppm2nokia |
146 |
%{_mandir}/*/* |
%{_sbindir}/gnokiid |
147 |
%{_prefix}/X11R6/man/*/* |
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gnokiirc |
148 |
|
%{_mandir}/man1/[!x]* |
149 |
|
%{_mandir}/man8/gnokiid.* |
150 |
|
%{_mandir}/man8/mgnokiidev.* |
151 |
|
|
152 |
|
%defattr(4750,root,gnokii,0750) |
153 |
|
%{_sbindir}/mgnokiidev |
154 |
|
|
155 |
%files xgnokii |
%files xgnokii |
156 |
%defattr(-,root,root) |
%defattr(644,root,root,755) |
157 |
%{_prefix}/X11R6/bin/xgnokii |
%attr(755,root,root) %{_bindir}/xgnokii |
158 |
%{_prefix}/X11R6/share/xgnokii |
%dir %{_datadir}/xgnokii |
159 |
|
%{_libdir}/xgnokii |
160 |
%files devel |
%{_datadir}/xgnokii/xpm |
161 |
%defattr(-,root,root) |
%{_datadir}/xgnokii/help |
162 |
%{_includedir}/* |
%{_desktopdir}/gnokii.desktop |
163 |
%{_libdir}/*.so |
%{_mandir}/man1/xgnokii.1x* |
164 |
%{_libdir}/*.a |
|
165 |
%{_libdir}/*.la |
%files libgnokii |
166 |
%{_libdir}/pkgconfig/* |
%defattr(644,root,root,755) |
167 |
|
%attr(755,root,root) %{_libdir}/libgnokii.so.*.* |
168 |
|
|
169 |
|
%files libgnokii-devel |
170 |
|
%defattr(644,root,root,755) |
171 |
|
%attr(755,root,root) %{_libdir}/libgnokii.so |
172 |
|
%{_libdir}/libgnokii.la |
173 |
|
%{_libdir}/libgnokii.a |
174 |
|
%{_includedir}/*.h |
175 |
|
%{_includedir}/gnokii |
176 |
|
%{_pkgconfigdir}/*.pc |
177 |
|
|
178 |
|
%files gnokii-smsd |
179 |
|
%defattr(644,root,root,755) |
180 |
|
%doc smsd/ChangeLog smsd/README smsd/README.MySQL smsd/README.Tru64 smsd/action smsd/*.sql |
181 |
|
%{_sbindir}/smsd |
182 |
|
%{_mandir}/man8/smsd.* |
183 |
|
|
184 |
|
%files gnokii-smsd-mysql |
185 |
|
%defattr(644,root,root,755) |
186 |
|
%{_libdir}/smsd/libmysql.la |
187 |
|
|
188 |
|
%files gnokii-smsd-psql |
189 |
|
%defattr(644,root,root,755) |
190 |
|
%{_libdir}/smsd/libpq.la |
191 |
|
|
192 |
|
%files gnokii-smsd-file |
193 |
|
%defattr(644,root,root,755) |
194 |
|
%{_libdir}/smsd/libfile.la |
195 |
|
|
196 |
%changelog |
%changelog |
197 |
|
|
198 |
|
* Thu Apr 30 2005 Pawel Kot |
199 |
|
- split the package for gnokii, libgnokii, libgnokii-devel, xgnokii, |
200 |
|
smsd, smsd-mysql, smsd-psql, smsd-file |
201 |
|
- update requirements |
202 |
|
- new url for the sources |
203 |
|
Changes based on Dag Wieers and PLD spec files |
204 |
|
|
205 |
* Thu Apr 28 2005 Pawel Kot |
* Thu Apr 28 2005 Pawel Kot |
206 |
- minor updates: new Docs files, move todologo to the gnokii package |
- minor updates: new Docs files, move todologo to the gnokii package |
207 |
|
|