update for libpst-0.6.74-1.fc32
This commit is contained in:
commit
2adfa40699
105
libpst.spec
105
libpst.spec
@ -1,24 +1,18 @@
|
||||
Summary: Utilities to convert Outlook .pst files to other formats
|
||||
Name: libpst
|
||||
Version: 0.6.72
|
||||
Version: 0.6.74
|
||||
Release: 1%{?dist}
|
||||
License: GPLv2+
|
||||
Source: http://www.five-ten-sg.com/%{name}/packages/%{name}-%{version}.tar.gz
|
||||
URL: http://www.five-ten-sg.com/%{name}/
|
||||
Requires: ImageMagick libgsf
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
Source: %{url}/packages/%{name}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: libtool gcc-c++
|
||||
BuildRequires: ImageMagick gd-devel zlib-devel boost-devel libgsf-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)")}
|
||||
|
||||
Requires: ImageMagick%{?_isa}
|
||||
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description
|
||||
The Libpst utilities include readpst which can convert email messages
|
||||
@ -36,40 +30,22 @@ 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
|
||||
Summary: Python bindings for libpst
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
Provides: %{name}-python = %{version}-%{release}
|
||||
Requires: %{name}-libs%{?_isa} = %{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.
|
||||
|
||||
|
||||
%package devel
|
||||
Summary: Library links and header files for libpst application development
|
||||
Requires: pkgconfig
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
The libpst-devel package contains the library links and header files
|
||||
@ -102,72 +78,48 @@ libpst utilities.
|
||||
|
||||
|
||||
%build
|
||||
autoreconf -v -f -i
|
||||
%configure --enable-libpst-shared
|
||||
%if 0%{?fedora} > 27
|
||||
autoreconf -fiv
|
||||
%configure --enable-libpst-shared \
|
||||
--with-boost-python=boost_python%{python3_version_nodots}
|
||||
%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}
|
||||
#Remove libtool archives.
|
||||
find %{buildroot} -name '*.la' -or -name '*.a' | xargs rm -f
|
||||
mv %{buildroot}%{_datadir}/doc/%{name}-%{version} %{buildroot}%{_datadir}/doc/%{name}
|
||||
|
||||
|
||||
%ldconfig_scriptlets libs
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{_bindir}/*
|
||||
%{_mandir}/man1/*
|
||||
%{_mandir}/man5/*
|
||||
|
||||
|
||||
%files libs
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/libpst.so.*
|
||||
%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
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/libpst.so
|
||||
%{_includedir}/%{name}-4/
|
||||
%{_libdir}/pkgconfig/libpst.pc
|
||||
|
||||
|
||||
%files devel-doc
|
||||
%defattr(-,root,root,-)
|
||||
%{_datadir}/doc/%{name}/devel/
|
||||
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_datadir}/doc/%{name}/
|
||||
%{_datadir}/doc/%{name}/*.html
|
||||
%{_datadir}/doc/%{name}/AUTHORS
|
||||
@ -178,8 +130,32 @@ mv $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version} $RPM_BUILD_ROOT%{_datadir}/
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Jun 07 2019 Carl Byington <carl@five-ten-sg.com> 0.6.72-4
|
||||
- fixes for python3
|
||||
* Sun Jan 12 2020 Carl Byington <carl@five-ten-sg.com> 0.6.74-1
|
||||
- Paul Wise - many changes for debian:
|
||||
- Add missing linking with zlib and libpthread/librt
|
||||
- Use PKG_CHECK_MODULES to find the gsf-1 library
|
||||
- Fix usage of indefinite articles
|
||||
- Fix a number of spelling mistakes
|
||||
- Use plain make when building from Mercurial
|
||||
- Add operator and quotes to the AX_PYTHON_DEVEL parameter
|
||||
- Remove files copied in by autotools
|
||||
- Add AM_GNU_GETTEXT macros
|
||||
- Rename configure.in to configure.ac
|
||||
- add extern "C" to header for use with C++ code
|
||||
|
||||
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.6.72-6
|
||||
- Rebuilt for Python 3.8
|
||||
|
||||
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.72-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Thu Jul 25 2019 Carl Byington <carl@five-ten-sg.com> 0.6.73-1
|
||||
- Tim Dufrane - fix segfault in pst_close()
|
||||
|
||||
* Sat Jun 08 2019 Leigh Scott <leigh123linux@googlemail.com> - 0.6.72-4
|
||||
- Add configure option for boost-python
|
||||
- Remove all old fedora conditionals
|
||||
- Update spec file to comply with packaging guidelines
|
||||
|
||||
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.72-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
@ -600,4 +576,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
|
||||
- initial spec file using autoconf and http://www.fedora.us/docs/rpm-packaging-guidelines.html
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user