comparison libpst.spec.in @ 405:af8ae7bd3fed stable-0-6-75

allow building on el8
author Carl Byington <carl@five-ten-sg.com>
date Tue, 16 Jun 2020 16:21:47 -0700
parents 6c69b56d7173
children 24871e6cdd69
comparison
equal deleted inserted replaced
404:be1714cd4d36 405:af8ae7bd3fed
7 Source: %{url}/packages/%{name}-%{version}.tar.gz 7 Source: %{url}/packages/%{name}-%{version}.tar.gz
8 8
9 BuildRequires: libtool gcc-c++ 9 BuildRequires: libtool gcc-c++
10 BuildRequires: ImageMagick gd-devel zlib-devel boost-devel libgsf-devel gettext-devel 10 BuildRequires: ImageMagick gd-devel zlib-devel boost-devel libgsf-devel gettext-devel
11 11
12 %if "%{?dist}" == ".el8"
13 %define fedora 32
14 %endif
12 %if 0%{?fedora} > 27 15 %if 0%{?fedora} > 27
13 BuildRequires: python3 python3-devel boost-python3 boost-python3-devel 16 BuildRequires: python3 python3-devel boost-python3 boost-python3-devel
14 Requires: boost-python3 17 Requires: boost-python3
15 %else 18 %else
16 BuildRequires: python-devel 19 BuildRequires: python-devel
17 %endif 20 %endif
18 21
19 Requires: ImageMagick%{?_isa} libgsf gettext 22 Requires: ImageMagick%{?_isa} libgsf gettext
20 Requires: %{name}-libs%{?_isa} = %{version}-%{release} 23 Requires: %{name}-libs%{?_isa} = %{version}-%{release}
21 24
22 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} 25 %if "%{?dist}" == ".el8"
23 %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} 26 %define __python /usr/bin/python3
24 27 %{!?python_sitelib: %global python_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
28 %{!?python_sitearch: %global python_sitearch %(python3 -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
29 %else
30 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
31 %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
32 %endif
25 33
26 %description 34 %description
27 The Libpst utilities include readpst which can convert email messages 35 The Libpst utilities include readpst which can convert email messages
28 to both mbox and MH mailbox formats, pst2ldif which can convert the 36 to both mbox and MH mailbox formats, pst2ldif which can convert the
29 contacts to .ldif format for import into ldap databases, and pst2dii 37 contacts to .ldif format for import into ldap databases, and pst2dii
626 * Tue Jul 10 2007 Carl Byington <carl@five-ten-sg.com> - 0.5.5 634 * Tue Jul 10 2007 Carl Byington <carl@five-ten-sg.com> - 0.5.5
627 - merge changes from Joe Nahmias version 635 - merge changes from Joe Nahmias version
628 636
629 * Sun Feb 19 2006 Carl Byington <carl@five-ten-sg.com> - 0.5.3 637 * Sun Feb 19 2006 Carl Byington <carl@five-ten-sg.com> - 0.5.3
630 - initial spec file using autoconf and http://www.fedora.us/docs/rpm-packaging-guidelines.html 638 - initial spec file using autoconf and http://www.fedora.us/docs/rpm-packaging-guidelines.html
631