]> git.pld-linux.org Git - packages/gammu.git/blobdiff - gammu.spec
- fix sparc and amd64 build
[packages/gammu.git] / gammu.spec
index ffb324f246a4c2ac7c09d8db2ae1c328ed94cceb..6d035ddcc31a78950ec82748226d52bd89e2f6d9 100644 (file)
@@ -1,20 +1,20 @@
-%define         major   0
-%define         minor   80
-
 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:       %{major}.%{minor}
-Release:       1
+Version:       1.00.0
+Release:       2
 Epoch:         1
 License:       GPL v2
 Group:         Applications/Communications
-Source0:       http://www.mwiacek.com/english/zips/%{name}/%{name}-%{major}%{minor}.tar.gz
-# Source0-md5: faf6f43638271adddf8fef6448d8b03a
+Source0:       http://www.mwiacek.com/zips/gsm/gammu/stable/1_0x/%{name}-%{version}.tar.gz
+# Source0-md5: 9d921f9c5b6f3b8b76a69720e2d9f173
 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.mwiacek.com/gsm/soft/gammu.html
 BuildRequires: autoconf
 BuildRequires: bluez-libs-devel
+BuildRequires: mysql-devel
 Provides:      mygnokii2
 Obsoletes:     mygnokii2
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -39,33 +39,53 @@ WAP, daty/czasu, budzika, dzwonienia itp. Mo
 kopie zapasowe danych i odtwarzaæ je.
 
 %prep
-%setup -q -n %{name}-%{major}%{minor}
-%patch0 -p1
+%setup -q
+#%patch0 -p1
+%patch1
+%ifarch sparc
+%patch2 -p1
+%endif
 
 %build
 cd cfg/autoconf
 %{__autoconf}
-%configure
-cd ../..
-%{__make}
+%configure     \
+       --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}}
+%{__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}
+
+rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
+# anybody feels like developing gammu-based apps?
+rm -rf $RPM_BUILD_ROOT{%{_includedir},%{_libdir}/*.{so,a}}
+rm -rf $RPM_BUILD_ROOT%{_prefix}/lib/pkgconfig # yes, not pkgconfigdir
 
 %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}
+%attr(755,root,root) %{_libdir}/*.so.*
 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/gammurc
+%{_datadir}/%{name}
 %{_examplesdir}/%{name}
-%{_mandir}/man1/*.1*
+%{_mandir}/man1/*
This page took 0.142644 seconds and 4 git commands to generate.