Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > e70b94024b0f8297d59479c1af0cab80 > files > 1

synce-librapi-0.10.0-2mdv2008.0.src.rpm

%define name     synce-librapi
%define shortname rapi
%define release  %mkrel 2
%define version  0.10.0

%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: System/Libraries
Source: %{name}%{major}-%{version}.tar.bz2
URL: http://synce.sourceforge.net/
Buildroot: %{_tmppath}/%name-root
BuildRequires: libsynce-devel = %{version}
BuildRequires: python-devel
BuildRequires: python-pyrex
Conflicts: synce < 0.9.3

%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-python
Group: System/Libraries
Summary: SynCE: Remote Application Programming Interface (RAPI) library
Provides: %{shortname}-python = %{version}-%{release}
Provides: lib%{shortname}-python = %{version}-%{release}
Requires: %{libname} = %{version}-%{release}
Requires: python

%description -n %libname-python
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: System/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: System/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}%{major}-%{version}

%build
%configure2_5x --with-libsynce=%{_prefix}
%make

%install
rm -rf %buildroot
%makeinstall_std

%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

%files -n %{libname}-python
%python_sitearch/pyrapi2.*


%changelog
* Fri Jun 29 2007 Gustavo De Nardin <gustavodn@mandriva.com> 0.10.0-2mdv2008.0
+ Revision: 45690
- conflicts with synce < 0.9.3, for proper upgrades
- some spec updating

* Fri Jun 01 2007 Funda Wang <fundawang@mandriva.org> 0.10.0-1mdv2008.0
+ Revision: 33570
- should be sitearch
- More provides
- rename python package
- New version


* 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