Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > media > contrib-release-src > by-pkgid > 142950b03da475003d5b07430683b666 > files > 1

librapi-0.15-1mdv2010.1.src.rpm

%define major		2
%define libname		%mklibname rapi %major
%define develname	%mklibname -d rapi
%define svn	0

Name:		librapi
Summary:	SynCE: Remote Application Programming Interface (RAPI) library
Version:	0.15
Release:	%mkrel 1
License:	MIT
Group:		System/Libraries
Source0:	%{name}%{major}-%{version}.tar.gz
URL:		http://synce.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-root
BuildRequires:	libsynce-devel >= 0.15
BuildRequires:	python-devel
BuildRequires:	python-pyrex
Conflicts:	synce < 0.9.3
Obsoletes:	synce-librapi < 0.13

%description
Librapi is part of the SynCE project.
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
Conflicts:	%{mklibname -d rapi} < 0.11-8mdv2008.1

%description -n %{libname}
Librapi is part of the SynCE project. This package contains shared
libraries.

%package -n	%{name}-python
Group:		System/Libraries
Summary:	SynCE: Remote Application Programming Interface (RAPI) library
Requires:	%{libname} = %{version}-%{release}
Requires:	python
Obsoletes:	%{mklibname rapi 2}-python <= 0.13

%description -n %{name}-python
Librapi is part of the SynCE project. This package contains Python
bindings.

%package -n	%{develname}
Group:		Development/C
Summary:	SynCE: Remote Application Programming Interface (RAPI) library
Provides:	%{name}-devel = %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}
Conflicts:	%{_lib}synce0-devel < 0.9.3
Conflicts:	%{mklibname rapi 2} < 0.11-8mdv2008.1
Obsoletes:	%mklibname -d rapi 2 <= 0.13

%description -n %{develname}
Librapi is part of the SynCE project. This package contains development
headers.

%prep
%setup -q -n %{name}2-%{version}

%build
%configure2_5x --disable-static --disable-rpath
%make

%install
rm -rf %{buildroot}
%makeinstall_std

rm -f %{buildroot}%{_libdir}/*.{la,a}
rm -f %{buildroot}%{python_sitearch}/pyrapi2.{la,a}

%if %mdkversion < 200900
%post -n %{libname} -p /sbin/ldconfig
%endif
%if %mdkversion < 200900
%postun -n %{libname} -p /sbin/ldconfig
%endif

%files
%defattr(-,root,root)
%{_bindir}/*
%{_mandir}/man1/*
%{_mandir}/man3/*

%files -n %{libname}
%defattr(-,root,root)
%{_libdir}/%{name}.so.%{major}*

%files -n %{develname}
%defattr(-,root,root)
%doc README TODO
%{_libdir}/%{name}.so
%{_includedir}/*.h
%{_libdir}/pkgconfig/*.pc

%files -n %{name}-python
%{py_platsitedir}/pyrapi2.*



%changelog
* Tue Apr 27 2010 Emmanuel Andry <eandry@mandriva.org> 0.15-1mdv2010.1
+ Revision: 539630
- New version 0.15

* Thu Mar 04 2010 Emmanuel Andry <eandry@mandriva.org> 0.15-0.r3893.1mdv2010.1
+ Revision: 514173
- pre 0.15 svn snapshot

* Thu Jul 23 2009 Frederik Himpe <fhimpe@mandriva.org> 0.14-1mdv2010.0
+ Revision: 398828
- Add some BuildRequires needed for autoreconf
- Update to new version 0.14
- Don't remove -Werror from CFLAGS because it results in broken
  CFLAGS if you use "Werror=format-security"
- Don't build static libraries
- Remove rpath
- Use fixed version number in obsoletes so that not more and more
  unexisting versions are obsoleted

* Tue Jan 13 2009 Adam Williamson <awilliamson@mandriva.org> 0.13.1-1mdv2009.1
+ Revision: 329177
- hack up the synce br because of the non-synced releases
- drop nogil.diff (merged upstream)
- new release 0.13.1

* Mon Jan 12 2009 Adam Williamson <awilliamson@mandriva.org> 0.13-1mdv2009.1
+ Revision: 328728
- add pyrapi-nogil.diff: fix build with recent pyrex (from Mark Ellis)
- new release 0.13

* Sat Dec 27 2008 Adam Williamson <awilliamson@mandriva.org> 0.12-2mdv2009.1
+ Revision: 319650
- rebuild with python 2.6

* Wed Jul 16 2008 Adam Williamson <awilliamson@mandriva.org> 0.12-1mdv2009.0
+ Revision: 236629
- new release 0.12

  + Pixel <pixel@mandriva.com>
    - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers

* Wed Apr 16 2008 Adam Williamson <awilliamson@mandriva.org> 0.11.1-1mdv2009.0
+ Revision: 194613
- drop all patches (merged upstream)
- new release 0.11.1

* Thu Mar 20 2008 Adam Williamson <awilliamson@mandriva.org> 0.11-9mdv2008.1
+ Revision: 189196
- add timeout.patch: from upstream SVN, increases a timeout (avoids problems when removing larger applications)

* Wed Mar 12 2008 Adam Williamson <awilliamson@mandriva.org> 0.11-8mdv2008.1
+ Revision: 187221
- streamline file lists
- python package should be %%{name}-python not %%{libname}-python
- move docs from lib to devel package, add conflicts to ensure successful upgrade
- add rapierror.patch (RAPIError must be a subclass of Exception - needed to fix a bug in sync-engine)
- version all obsoletes
- Clean up spec (tabs, macros, descriptions)

* Fri Feb 01 2008 Funda Wang <fwang@mandriva.org> 0.11-7mdv2008.1
+ Revision: 161182
- correctly obsoletes old devel package

* Mon Jan 14 2008 Emmanuel Andry <eandry@mandriva.org> 0.11-6mdv2008.1
+ Revision: 151760
- add provides

* Sat Jan 12 2008 Emmanuel Andry <eandry@mandriva.org> 0.11-5mdv2008.1
+ Revision: 149804
- fix obsoletes again

* Fri Jan 11 2008 Emmanuel Andry <eandry@mandriva.org> 0.11-4mdv2008.1
+ Revision: 149175
- split binaries into a separate package
- fix obsoletes

* Thu Jan 10 2008 Emmanuel Andry <eandry@mandriva.org> 0.11-2mdv2008.1
+ Revision: 147736
- import librapi