update for libpst-0.6.74-1.fc32
This commit is contained in:
parent
4bfd6126d1
commit
aa02f3a367
44
libpst.spec
44
libpst.spec
@ -9,16 +9,8 @@ Requires: ImageMagick libgsf gettext
|
|||||||
Requires: %{name}-libs = %{version}-%{release}
|
Requires: %{name}-libs = %{version}-%{release}
|
||||||
BuildRequires: libtool gcc-c++
|
BuildRequires: libtool gcc-c++
|
||||||
BuildRequires: ImageMagick gd-devel zlib-devel boost-devel libgsf-devel gettext-devel
|
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
|
BuildRequires: python3 python3-devel boost-python3 boost-python3-devel
|
||||||
Requires: boost-python3
|
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
|
%description
|
||||||
The Libpst utilities include readpst which can convert email messages
|
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.
|
utilities.
|
||||||
|
|
||||||
|
|
||||||
%if 0%{?fedora} > 27
|
|
||||||
%package -n python3-%{name}
|
%package -n python3-%{name}
|
||||||
Requires: python3
|
Requires: python3
|
||||||
Provides: %{name}-python = %{version}-%{release}
|
Provides: %{name}-python = %{version}-%{release}
|
||||||
%else
|
|
||||||
%package python
|
|
||||||
Requires: python
|
|
||||||
%endif
|
|
||||||
Summary: Python bindings for libpst
|
Summary: Python bindings for libpst
|
||||||
Requires: %{name}-libs = %{version}-%{release}
|
Requires: %{name}-libs = %{version}-%{release}
|
||||||
|
|
||||||
%if 0%{?fedora} >= 20
|
|
||||||
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{python_sitearch}/_.*\.so$
|
%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}
|
%description -n python3-%{name}
|
||||||
%else
|
|
||||||
%description python
|
|
||||||
%endif
|
|
||||||
The libpst-python package allows you to use the libpst shared object
|
The libpst-python package allows you to use the libpst shared object
|
||||||
from Python code.
|
from Python code.
|
||||||
|
|
||||||
@ -104,20 +80,11 @@ libpst utilities.
|
|||||||
%build
|
%build
|
||||||
autoreconf -v -f -i
|
autoreconf -v -f -i
|
||||||
%configure --enable-libpst-shared
|
%configure --enable-libpst-shared
|
||||||
%if 0%{?fedora} > 27
|
|
||||||
%make_build
|
%make_build
|
||||||
%else
|
|
||||||
make %{?_smp_mflags}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if 0%{?fedora} > 27
|
|
||||||
%make_install
|
%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.la
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/libpst.a
|
rm $RPM_BUILD_ROOT%{_libdir}/libpst.a
|
||||||
mv $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version} $RPM_BUILD_ROOT%{_datadir}/doc/%{name}
|
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
|
%doc COPYING
|
||||||
|
|
||||||
|
|
||||||
%if 0%{?fedora} > 27
|
|
||||||
%files -n python3-%{name}
|
%files -n python3-%{name}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{python3_sitearch}/_*.so
|
%{python3_sitearch}/_*.so
|
||||||
%exclude %{python3_sitearch}/*.a
|
%exclude %{python3_sitearch}/*.a
|
||||||
%exclude %{python3_sitearch}/*.la
|
%exclude %{python3_sitearch}/*.la
|
||||||
%else
|
|
||||||
%files python
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{python_sitearch}/_*.so
|
|
||||||
%exclude %{python_sitearch}/*.a
|
|
||||||
%exclude %{python_sitearch}/*.la
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
@ -624,4 +583,3 @@ mv $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version} $RPM_BUILD_ROOT%{_datadir}/
|
|||||||
|
|
||||||
* Sun Feb 19 2006 Carl Byington <carl@five-ten-sg.com> - 0.5.3
|
* Sun Feb 19 2006 Carl Byington <carl@five-ten-sg.com> - 0.5.3
|
||||||
- initial spec file using autoconf and http://www.fedora.us/docs/rpm-packaging-guidelines.html
|
- initial spec file using autoconf and http://www.fedora.us/docs/rpm-packaging-guidelines.html
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user