From aa02f3a367a4d0d6e40f16b49d97baa7f8cb0182 Mon Sep 17 00:00:00 2001 From: Carl Byington Date: Sun, 12 Jan 2020 13:06:00 -0800 Subject: [PATCH] update for libpst-0.6.74-1.fc32 --- libpst.spec | 44 +------------------------------------------- 1 file changed, 1 insertion(+), 43 deletions(-) diff --git a/libpst.spec b/libpst.spec index 58684c6..899ea33 100644 --- a/libpst.spec +++ b/libpst.spec @@ -9,16 +9,8 @@ Requires: ImageMagick libgsf gettext Requires: %{name}-libs = %{version}-%{release} BuildRequires: libtool gcc-c++ BuildRequires: ImageMagick gd-devel zlib-devel boost-devel libgsf-devel gettext-devel -%if 0%{?fedora} > 27 BuildRequires: python3 python3-devel boost-python3 boost-python3-devel Requires: boost-python3 -%else -BuildRequires: python-devel -%endif - -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} - %description The Libpst utilities include readpst which can convert email messages @@ -36,32 +28,16 @@ The libpst-libs package contains the shared library used by the pst utilities. -%if 0%{?fedora} > 27 %package -n python3-%{name} Requires: python3 -Provides: %{name}-python = %{version}-%{release} -%else -%package python -Requires: python -%endif +Provides: %{name}-python = %{version}-%{release} Summary: Python bindings for libpst Requires: %{name}-libs = %{version}-%{release} -%if 0%{?fedora} >= 20 %global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{python_sitearch}/_.*\.so$ -%else -%{?filter_setup: -%filter_provides_in %{python_sitearch}/_.*\.so$ -%filter_setup -} -%endif -%if 0%{?fedora} > 27 %description -n python3-%{name} -%else -%description python -%endif The libpst-python package allows you to use the libpst shared object from Python code. @@ -104,20 +80,11 @@ libpst utilities. %build autoreconf -v -f -i %configure --enable-libpst-shared -%if 0%{?fedora} > 27 %make_build -%else -make %{?_smp_mflags} -%endif %install -%if 0%{?fedora} > 27 %make_install -%else -rm -rf $RPM_BUILD_ROOT -make DESTDIR=$RPM_BUILD_ROOT install -%endif rm $RPM_BUILD_ROOT%{_libdir}/libpst.la rm $RPM_BUILD_ROOT%{_libdir}/libpst.a mv $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version} $RPM_BUILD_ROOT%{_datadir}/doc/%{name} @@ -139,19 +106,11 @@ mv $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version} $RPM_BUILD_ROOT%{_datadir}/ %doc COPYING -%if 0%{?fedora} > 27 %files -n python3-%{name} %defattr(-,root,root,-) %{python3_sitearch}/_*.so %exclude %{python3_sitearch}/*.a %exclude %{python3_sitearch}/*.la -%else -%files python -%defattr(-,root,root,-) -%{python_sitearch}/_*.so -%exclude %{python_sitearch}/*.a -%exclude %{python_sitearch}/*.la -%endif %files devel @@ -624,4 +583,3 @@ mv $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version} $RPM_BUILD_ROOT%{_datadir}/ * Sun Feb 19 2006 Carl Byington - 0.5.3 - initial spec file using autoconf and http://www.fedora.us/docs/rpm-packaging-guidelines.html -