+%define major 0
+%define minor 85
+
Summary: Linux/Unix tool suite for Nokia mobile phones
Summary(pl): Linuksowy/Uniksowy zestaw narzêdzi dla telefonów komórkowych Nokia
Name: gammu
-Version: 0.64
+Version: %{major}.%{minor}
Release: 1
Epoch: 1
License: GPL v2
Group: Applications/Communications
-Source0: http://www.mwiacek.com/english/zips/%{name}.tar.gz
+Source0: http://www.mwiacek.com/zips/gsm/%{name}/older/%{name}-%{major}%{minor}.tar.gz
+# Source0-md5: 9e275a3d8f1e691816aa8e8ed695b71f
+Patch0: %{name}-etc_dir.patch
URL: http://www.mwiacek.com/english/gsm/gammu/gammu.html
BuildRequires: autoconf
-BuildRequires: automake
+BuildRequires: bluez-libs-devel
Provides: mygnokii2
Obsoletes: mygnokii2
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
kopie zapasowe danych i odtwarzaæ je.
%prep
-%setup -q -n %{name}
+%setup -q -n %{name}-%{major}%{minor}
+%patch0 -p1
%build
+cd cfg/autoconf
+%{__autoconf}
+%configure
+cd ../..
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_prefix}/src/examples,%{name}}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_examplesdir}/%{name},%{_sysconfdir}}
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/default $RPM_BUILD_ROOT%{_examplesdir}/%{name}
+mv -f docs/develop $RPM_BUILD_ROOT%{_examplesdir}/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%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*