Author: saq                          Date: Wed Feb 16 23:26:52 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- shared linking with libGammu
- use make for installation
- release 1

---- Files affected:
SPECS:
   gammu.spec (1.28 -> 1.29) 

---- Diffs:

================================================================
Index: SPECS/gammu.spec
diff -u SPECS/gammu.spec:1.28 SPECS/gammu.spec:1.29
--- SPECS/gammu.spec:1.28       Thu Feb 17 00:03:12 2005
+++ SPECS/gammu.spec    Thu Feb 17 00:26:47 2005
@@ -1,11 +1,9 @@
 # $Revision$, $Date$
-# TODO:
-# - build shared version (simple make shared make error that -fPIC is needed)
 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:       1.00.0
-Release:       0.1
+Release:       1
 Epoch:         1
 License:       GPL v2
 Group:         Applications/Communications
@@ -53,28 +51,39 @@
        --enable-7110incoming           \
        --enable-6210calendar           
 cd ../..       
-%{__make}
+%{__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_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},%{_pkgconfigdir},%{_libdir}/*.{so,a}}
 
 %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/*
 
 %define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -82,6 +91,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.29  2005/02/16 23:26:47  saq
+- shared linking with libGammu
+- use make for installation
+- release 1
+
 Revision 1.28  2005/02/16 23:03:12  saq
 - up to 1.00.0
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/gammu.spec?r1=1.28&r2=1.29&f=u


_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to