Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > 6749cfbf9b19be58048ef1756f63b102 > files > 2

librtfcomp-1.1-8mdv2010.0.src.rpm

Name:		librtfcomp
Version:	1.1
Release:	%mkrel 8

%define 	major 0
%define		libname	%mklibname rtfcomp %major

Summary:	Library to read and write compressed RTF files
BuildRoot:	%{_tmppath}/%{name}-%{version}-build
License:	GPL
Group:		System/Libraries
URL:		http://synce.sourceforge.net/
Source0:	http://downloads.sourceforge.net/synce/%{name}-%{version}.tar.bz2
BuildRequires:	python-devel python-pyrex

%description
Can decompress and recompress compressed RTF and convert from 
UTF8 to RTF for use in things like the AirSync protocols.

%package -n	%{libname}
Summary:	Main library for %{name}
Group:		System/Libraries
Provides:	%{name} = %{version}-%{release}

%description -n	%{libname}
Can decompress and recompress compressed RTF and convert from 
UTF8 to RTF for use in things like the AirSync protocols

%package -n	%{libname}-devel
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
Requires:	%{libname} = %{version}
Provides:	%{name}-devel = %{version}-%{release}

%description -n	%{libname}-devel
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%package -n	python-%{libname}
Summary:	Python bindings for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{version}
Provides:	python-%{name}

%description -n	python-%{libname}
This package contains the python bindings for %{name}.

%prep
%setup -q

%build
%configure2_5x --program-prefix=rtfcomp-
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std

%clean
rm -rf $RPM_BUILD_ROOT

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

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

%files -n %{libname}-devel
%defattr(-,root,root)
%{_includedir}/rtfcomp/*.h
%{_libdir}/%{name}.a
%{_libdir}/%{name}.so
%{_libdir}/%{name}.la

%files -n python-%{libname}
%defattr (-,root,root)
%{py_platsitedir}


%changelog
* Sun Sep 13 2009 Thierry Vignaud <tvignaud@mandriva.com> 1.1-8mdv2010.0
+ Revision: 438734
- rebuild

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

* Sun Jul 27 2008 Thierry Vignaud <tvignaud@mandriva.com> 1.1-6mdv2009.0
+ Revision: 250443
- rebuild

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

* Wed Jan 16 2008 Emmanuel Andry <eandry@mandriva.org> 1.1-4mdv2008.1
+ Revision: 153760
- add provides

* Fri Jan 11 2008 Emmanuel Andry <eandry@mandriva.org> 1.1-3mdv2008.1
+ Revision: 148723
- add missing provides

* Fri Jan 11 2008 Emmanuel Andry <eandry@mandriva.org> 1.1-2mdv2008.1
+ Revision: 148716
- use program-prefix to avoid conflict with coreutils
- provide python package

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

  + Thierry Vignaud <tvignaud@mandriva.com>
    - kill re-definition of %%buildroot on Pixel's request

* Sat Jun 30 2007 Emmanuel Andry <eandry@mandriva.org> 1.1-1mdv2008.0
+ Revision: 46162
- Import librtfcomp