]> git.pld-linux.org Git - packages/gammu.git/blobdiff - gammu.spec
- up to 0.85
[packages/gammu.git] / gammu.spec
index 4b913f100873ea2da4d1eef1bd63f025d66875f9..7f469f8d04568116ebd5c6a33c8338575e85b355 100644 (file)
@@ -1,15 +1,20 @@
+%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)
@@ -34,19 +39,25 @@ WAP, daty/czasu, budzika, dzwonienia itp. Mo
 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
@@ -55,5 +66,6 @@ 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*
This page took 0.968993 seconds and 4 git commands to generate.