SPECS: agsync.spec - added debian patch, created -devel and -static

glen glen at pld-linux.org
Sun Nov 11 23:46:01 CET 2007


Author: glen                         Date: Sun Nov 11 22:46:01 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added debian patch, created -devel and -static

---- Files affected:
SPECS:
   agsync.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SPECS/agsync.spec
diff -u SPECS/agsync.spec:1.2 SPECS/agsync.spec:1.3
--- SPECS/agsync.spec:1.2	Sun Nov 11 23:29:13 2007
+++ SPECS/agsync.spec	Sun Nov 11 23:45:56 2007
@@ -10,30 +10,72 @@
 URL:		http://duskwood.lownewulf.com/avantgo.html
 Source0:	http://duskwood.lownewulf.com/%{name}-%{version}-%{_rc}.tgz
 # Source0-md5:	74de1b1452a718c85364fab5ce3c0c2a
+BUildRequires:	synce-librapi2-devel
+Patch0:		%{name}-debian.patch
+BUildRequires:	synce-libsynce-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 This package contains the AvantGo - Pocket PC synchronization mediator
 command line application.
 
+%package devel
+Summary:	Development files for AvantGo and Pocket PC synchronization
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+This package contains the library to develop applications which
+provides AvantGo synchronization fro Pocket PC to be mediated by the
+connected PC
+
+%package static
+Summary:	Static AvantGo library
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static AvantGo library library.
+
 %prep
 %setup -q -n %{name}-%{version}-%{_rc}
+%patch0 -p1
+chmod +x configure
 
 %build
+%configure
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_bindir}
-install agsync $RPM_BUILD_ROOT%{_bindir}
+install -d $RPM_BUILD_ROOT%{_mandir}/man1
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+cp -a agsync.1 $RPM_BUILD_ROOT%{_mandir}/man1
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
 %doc README
-%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_bindir}/agsync
+%{_mandir}/man1/agsync.1*
+%attr(755,root,root) %{_libdir}/libmal-funcs.so.*.*.*
+
+%files devel
+%defattr(644,root,root,755)
+%{_libdir}/libmal-funcs.la
+%{_libdir}/libmal-funcs.so
+%{_includedir}/AG*.h
+%{_includedir}/md5.h
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libmal-funcs.a
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -41,6 +83,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2007-11-11 22:45:56  glen
+- added debian patch, created -devel and -static
+
 Revision 1.2  2007-11-11 22:29:13  glen
 - found original source
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/agsync.spec?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list