%define name synce-librapi %define shortname rapi %define release %mkrel 4 %define version 0.9.3 %define major 2 %define libname %mklibname %shortname %major Summary: SynCE: Remote Application Programming Interface (RAPI) library Name: %{name} Version: %{version} Release: %{release} License: MIT Group: Development/Libraries Source: %{name}-%{version}.tar.bz2 URL: http://synce.sourceforge.net/ Buildroot: %{_tmppath}/%name-root BuildRequires: libsynce-devel = %{version} %description Librapi is part of the SynCE project: http://synce.sourceforge.net/ The RAPI library is an open source implementation that works like RAPI.DLL, available on Microsoft operating systems. The library makes it possible to make remote calls to a computer running Pocket PC. Documentation for the RAPI calls is available at this address: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdkr/htm/_wcesdk_CeRapiInit.asp %package -n %libname Group: Development/Libraries Summary: SynCE: Remote Application Programming Interface (RAPI) library Provides: lib%{shortname} = %{version}-%{release} Conflicts: %{_lib}synce0 < 0.9.3 %description -n %libname Librapi is part of the SynCE project: http://synce.sourceforge.net/ The RAPI library is an open source implementation that works like RAPI.DLL, available on Microsoft operating systems. The library makes it possible to make remote calls to a computer running Pocket PC. Documentation for the RAPI calls is available at this address: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdkr/htm/_wcesdk_CeRapiInit.asp %package -n %libname-devel Group: Development/Libraries Summary: SynCE: Remote Application Programming Interface (RAPI) library Provides: lib%{shortname}-devel = %{version}-%{release} Requires: %{libname} = %{version}-%{release} Conflicts: %{_lib}synce0-devel < 0.9.3 %description -n %libname-devel Librapi is part of the SynCE project: http://synce.sourceforge.net/ The RAPI library is an open source implementation that works like RAPI.DLL, available on Microsoft operating systems. The library makes it possible to make remote calls to a computer running Pocket PC. Documentation for the RAPI calls is available at this address: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdkr/htm/_wcesdk_CeRapiInit.asp %prep %setup -q -n lib%{shortname}-%{version} %build %configure --with-libsynce=%{_prefix} %make %install %makeinstall %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %files %defattr(-,root,root) %doc README TODO %{_bindir}/* %{_mandir}/man1/* %files -n %{libname} %defattr(-,root,root) %_libdir/librapi.so.* %files -n %{libname}-devel %defattr(-,root,root) %_libdir/librapi.so %_libdir/librapi.a %_libdir/librapi.la %{_includedir}/rapi.h %_libdir/pkgconfig/*.pc %changelog * Thu Nov 30 2006 Olivier Thauvin <nanardon@mandriva.org> 0.9.3-4mdv2007.0 + Revision: 88855 - fix conflicts - fix requires/provides - a post/postun scriptlets - fix spec filename - first standalone package - Create synce-librapi