Summary: Linux/Unix tool suite for Nokia mobile phones
-Summary(pl): Linuksowy/Uniksowy zestaw narzêdzi dla telefonów komórkowych Nokia
+Summary(pl): Linuksowy/uniksowy zestaw narzêdzi dla telefonów komórkowych Nokia
Name: gammu
-Version: 0.93.0
-Release: 1
+Version: 1.02.0
+Release: 3
Epoch: 1
License: GPL v2
Group: Applications/Communications
-Source0: http://www.mwiacek.com/zips/gsm/%{name}/older/%{name}-%{version}.tar.gz
-# Source0-md5: 03ca5b89a16f867b1157ac629a2d05ff
+Source0: http://www.mwiacek.com/zips/gsm/gammu/stable/1_0x/%{name}-%{version}.tar.gz
+# Source0-md5: f8d0b2c6cc045891b6d8f0021246a464
Patch0: %{name}-etc_dir.patch
-URL: http://www.mwiacek.com/english/gsm/gammu/gammu.html
+Patch1: %{name}-no_nss.patch
+Patch2: %{name}-sparc-speeds.patch
+URL: http://www.gammu.net/
BuildRequires: autoconf
BuildRequires: bluez-libs-devel
+BuildRequires: mysql-devel
Provides: mygnokii2
Obsoletes: mygnokii2
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%prep
%setup -q
#%patch0 -p1
+%patch1 -p0
+%patch2 -p1
%build
cd cfg/autoconf
%{__autoconf}
-%configure \
- --enable-cb \
- --enable-7110incoming \
- --enable-6210calendar \
- --enable-fbus \
- --enable-mbus \
- --enable-fbusirda \
- --enable-phonetblue \
- --enable-fbusdku5 \
- --enable-fbuspl2303 \
- --enable-fbusdlr3 \
- --enable-obexgen \
- --enable-mroutergen \
- --enable-mrouterblue \
- --enable-irdaphonet \
- --enable-irdaobex
-cd ../..
-%{__make}
+%configure \
+ --disable-static \
+ --enable-cb \
+ --enable-7110incoming \
+ --enable-6210calendar
+cd ../..
+%{__make} shared
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_examplesdir}/%{name},%{_sysconfdir}}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_examplesdir}/%{name}-%{version}}
+%{__make} installshared \
+ DESTDIR=$RPM_BUILD_ROOT \
+ prefix=%{_prefix} \
+ INSTALL_LIB_DIR=%{_libdir} \
+ INSTALL_MAN_DIR=%{_mandir}/man1 \
+ FIND=/usr/bin/find
-install %{name}/%{name} $RPM_BUILD_ROOT%{_bindir}
install docs/examples/config/gammurc $RPM_BUILD_ROOT%{_sysconfdir}
-mv -f docs/docs/english/%{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1
-mv -f docs/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}
-mv -f docs/develop $RPM_BUILD_ROOT%{_examplesdir}/%{name}
+cp -r docs/{examples,develop} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
+# anybody feels like developing gammu-based apps?
+rm -rf $RPM_BUILD_ROOT{%{_includedir},%{_libdir}/{*.{so,a},pkgconfig}}
%clean
rm -rf $RPM_BUILD_ROOT
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
%files
%defattr(644,root,root,755)
%doc changelog docs/* readme.txt
%attr(755,root,root) %{_bindir}/%{name}
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gammurc
-%{_examplesdir}/%{name}
-%{_mandir}/man1/*.1*
+%attr(755,root,root) %{_libdir}/*.so.*
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gammurc
+%{_datadir}/%{name}
+%{_examplesdir}/%{name}-%{version}
+%{_mandir}/man1/*