update for libpst-0.6.74-1.fc32

This commit is contained in:
Carl Byington 2020-01-12 12:05:59 -08:00
parent 2adfa40699
commit 2f860f5194

View File

@ -3,16 +3,22 @@ Name: libpst
Version: 0.6.74 Version: 0.6.74
Release: 1%{?dist} Release: 1%{?dist}
License: GPLv2+ License: GPLv2+
Source: http://www.five-ten-sg.com/%{name}/packages/%{name}-%{version}.tar.gz
URL: http://www.five-ten-sg.com/%{name}/ URL: http://www.five-ten-sg.com/%{name}/
Source: %{url}/packages/%{name}-%{version}.tar.gz Requires: ImageMagick libgsf
Requires: %{name}-libs = %{version}-%{release}
BuildRequires: libtool gcc-c++ BuildRequires: libtool gcc-c++
BuildRequires: ImageMagick gd-devel zlib-devel boost-devel libgsf-devel BuildRequires: ImageMagick gd-devel zlib-devel boost-devel libgsf-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)")}
Requires: ImageMagick%{?_isa}
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%description %description
The Libpst utilities include readpst which can convert email messages The Libpst utilities include readpst which can convert email messages
@ -30,22 +36,40 @@ 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
Provides: %{name}-python = %{version}-%{release}
%else
%package python
Requires: python
%endif
Summary: Python bindings for libpst Summary: Python bindings for libpst
Provides: %{name}-python = %{version}-%{release} Requires: %{name}-libs = %{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$ %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.
%package devel %package devel
Summary: Library links and header files for libpst application development Summary: Library links and header files for libpst application development
Requires: %{name}-libs%{?_isa} = %{version}-%{release} Requires: pkgconfig
Requires: %{name}-libs = %{version}-%{release}
%description devel %description devel
The libpst-devel package contains the library links and header files The libpst-devel package contains the library links and header files
@ -78,48 +102,72 @@ libpst utilities.
%build %build
autoreconf -fiv autoreconf -v -f -i
%configure --enable-libpst-shared \ %configure --enable-libpst-shared
--with-boost-python=boost_python%{python3_version_nodots} %if 0%{?fedora} > 27
%make_build %make_build
%else
make %{?_smp_mflags}
%endif
%install %install
%if 0%{?fedora} > 27
%make_install %make_install
#Remove libtool archives. %else
find %{buildroot} -name '*.la' -or -name '*.a' | xargs rm -f rm -rf $RPM_BUILD_ROOT
mv %{buildroot}%{_datadir}/doc/%{name}-%{version} %{buildroot}%{_datadir}/doc/%{name} 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}
%ldconfig_scriptlets libs %ldconfig_scriptlets libs
%files %files
%defattr(-,root,root,-)
%{_bindir}/* %{_bindir}/*
%{_mandir}/man1/* %{_mandir}/man1/*
%{_mandir}/man5/* %{_mandir}/man5/*
%files libs %files libs
%defattr(-,root,root,-)
%{_libdir}/libpst.so.* %{_libdir}/libpst.so.*
%doc COPYING %doc COPYING
%if 0%{?fedora} > 27
%files -n python3-%{name} %files -n python3-%{name}
%defattr(-,root,root,-)
%{python3_sitearch}/_*.so %{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 %files devel
%defattr(-,root,root,-)
%{_libdir}/libpst.so %{_libdir}/libpst.so
%{_includedir}/%{name}-4/ %{_includedir}/%{name}-4/
%{_libdir}/pkgconfig/libpst.pc %{_libdir}/pkgconfig/libpst.pc
%files devel-doc %files devel-doc
%defattr(-,root,root,-)
%{_datadir}/doc/%{name}/devel/ %{_datadir}/doc/%{name}/devel/
%files doc %files doc
%defattr(-,root,root,-)
%dir %{_datadir}/doc/%{name}/ %dir %{_datadir}/doc/%{name}/
%{_datadir}/doc/%{name}/*.html %{_datadir}/doc/%{name}/*.html
%{_datadir}/doc/%{name}/AUTHORS %{_datadir}/doc/%{name}/AUTHORS
@ -165,7 +213,7 @@ mv %{buildroot}%{_datadir}/doc/%{name}-%{version} %{buildroot}%{_datadir}/doc/%{
* Wed Aug 01 2018 Carl Byington <carl@five-ten-sg.com> 0.6.72-1 * Wed Aug 01 2018 Carl Byington <carl@five-ten-sg.com> 0.6.72-1
- allow all 7 days in bydays recurring appointment - allow all 7 days in bydays recurring appointment
- update for fedora python packaging - update for Fedora Python packaging
- Alfredo Esteban - add -l and -f options to lspst - Alfredo Esteban - add -l and -f options to lspst
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.71-8 * Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.71-8
@ -192,7 +240,7 @@ mv %{buildroot}%{_datadir}/doc/%{name}-%{version} %{buildroot}%{_datadir}/doc/%{
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Fri Jul 21 2017 Carl Byington <carl@five-ten-sg.com> 0.6.71-1 * Fri Jul 21 2017 Carl Byington <carl@five-ten-sg.com> 0.6.71-1
- fedora python naming scheme changes - Fedora Python naming scheme changes
- Zachary Travis - Add support for the OST 2013 format, and - Zachary Travis - Add support for the OST 2013 format, and
Content-Disposition filename key fix for outlook compatibility Content-Disposition filename key fix for outlook compatibility
@ -250,7 +298,7 @@ mv %{buildroot}%{_datadir}/doc/%{name}-%{version} %{buildroot}%{_datadir}/doc/%{
- Rebuilt for GCC 5 C++11 ABI change - Rebuilt for GCC 5 C++11 ABI change
* Mon Mar 09 2015 Carl Byington <carl@five-ten-sg.com> 0.6.64-1 * Mon Mar 09 2015 Carl Byington <carl@five-ten-sg.com> 0.6.64-1
- fix line wrap on python provides_exclude_from - fix line wrap on Python provides_exclude_from
- fix unchecked errors found by cppcheck - fix unchecked errors found by cppcheck
- AJ Shankar fixes for attachment processing and body encodings - AJ Shankar fixes for attachment processing and body encodings
that contain embedded null chars. that contain embedded null chars.
@ -312,7 +360,7 @@ mv %{buildroot}%{_datadir}/doc/%{name}-%{version} %{buildroot}%{_datadir}/doc/%{
- merge -m .msg files code into main branch - merge -m .msg files code into main branch
* Thu Aug 09 2012 Carl Byington <carl@five-ten-sg.com> - 0.6.55-2 * Thu Aug 09 2012 Carl Byington <carl@five-ten-sg.com> - 0.6.55-2
- rebuild for python - rebuild for Python
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.54-6 * Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.54-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
@ -329,7 +377,7 @@ mv %{buildroot}%{_datadir}/doc/%{name}-%{version} %{buildroot}%{_datadir}/doc/%{
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Sat Dec 24 2011 Carl Byington <carl@five-ten-sg.com> - 0.6.54-3 * Sat Dec 24 2011 Carl Byington <carl@five-ten-sg.com> - 0.6.54-3
- bump versions and prep for fedora build - bump versions and prep for Fedora build
* Wed Nov 30 2011 Petr Pisar <ppisar@redhat.com> - 0.6.53-3 * Wed Nov 30 2011 Petr Pisar <ppisar@redhat.com> - 0.6.53-3
- Rebuild against boost-1.48 - Rebuild against boost-1.48
@ -358,7 +406,7 @@ mv %{buildroot}%{_datadir}/doc/%{name}-%{version} %{buildroot}%{_datadir}/doc/%{
- fix for buffer overrun; attachment size from the secondary - fix for buffer overrun; attachment size from the secondary
list of mapi elements overwrote proper size from the primary list of mapi elements overwrote proper size from the primary
list of mapi elements. list of mapi elements.
fedora bugzilla 696263 Fedora bugzilla 696263
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.49-4 * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.49-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
@ -375,7 +423,7 @@ mv %{buildroot}%{_datadir}/doc/%{name}-%{version} %{buildroot}%{_datadir}/doc/%{
* Mon Sep 13 2010 Carl Byington <carl@five-ten-sg.com> - 0.6.49-1 * Mon Sep 13 2010 Carl Byington <carl@five-ten-sg.com> - 0.6.49-1
- fix to ignore embedded objects that are not email messages - fix to ignore embedded objects that are not email messages
fedora bugzilla 633498 Fedora bugzilla 633498
* Thu Sep 02 2010 Carl Byington <carl@five-ten-sg.com> - 0.6.48-1 * Thu Sep 02 2010 Carl Byington <carl@five-ten-sg.com> - 0.6.48-1
- fix for broken internet headers from Outlook - fix for broken internet headers from Outlook
@ -384,10 +432,10 @@ mv %{buildroot}%{_datadir}/doc/%{name}-%{version} %{buildroot}%{_datadir}/doc/%{
- use no from quoting for output formats with single message per file - use no from quoting for output formats with single message per file
* Sat Jul 31 2010 Carl Byington <carl@five-ten-sg.com> - 0.6.47-6 * Sat Jul 31 2010 Carl Byington <carl@five-ten-sg.com> - 0.6.47-6
- rebuild for python dependencies - rebuild for Python dependencies
* Mon Jul 26 2010 David Malcolm <dmalcolm@redhat.com> - 0.6.47-4 * Mon Jul 26 2010 David Malcolm <dmalcolm@redhat.com> - 0.6.47-4
- hack up configure so that it looks for python 2.7 - hack up configure so that it looks for Python 2.7
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.6.47-3 * Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.6.47-3
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
@ -430,17 +478,17 @@ mv %{buildroot}%{_datadir}/doc/%{name}-%{version} %{buildroot}%{_datadir}/doc/%{
* Tue Jun 23 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.41-1 * Tue Jun 23 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.41-1
- fix ax_python detection - should not use locate command - fix ax_python detection - should not use locate command
- checking for fedora versions is not needed - checking for Fedora versions is not needed
* Tue Jun 23 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.40-1 * Tue Jun 23 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.40-1
- fedora 11 has python2.6 - Fedora 11 has python2.6
- remove pdf version of the man pages - remove pdf version of the man pages
* Sun Jun 21 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.39-1 * Sun Jun 21 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.39-1
- fedora > 10 moved to boost-python-devel - Fedora > 10 moved to boost-python-devel
* Sun Jun 21 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.38-1 * Sun Jun 21 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.38-1
- add python interface to the shared library. - add Python interface to the shared library.
- bump soname to version 4 for many changes to the interface. - bump soname to version 4 for many changes to the interface.
- better decoding of recurrence data in appointments. - better decoding of recurrence data in appointments.
- remove readpstlog since debug log files are now plain text. - remove readpstlog since debug log files are now plain text.
@ -471,7 +519,7 @@ mv %{buildroot}%{_datadir}/doc/%{name}-%{version} %{buildroot}%{_datadir}/doc/%{
- fix ppc64 compile error - fix ppc64 compile error
* Sat Mar 14 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.31-1 * Sat Mar 14 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.31-1
- bump version for fedora cvs tagging mistake - bump version for Fedora cvs tagging mistake
* Sat Mar 14 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.30-1 * Sat Mar 14 2009 Carl Byington <carl@five-ten-sg.com> - 0.6.30-1
- track character set individually for each mapi element. - track character set individually for each mapi element.
@ -546,13 +594,13 @@ mv %{buildroot}%{_datadir}/doc/%{name}-%{version} %{buildroot}%{_datadir}/doc/%{
- Fix for missing length on lz decompression, bug found by Chris White. - Fix for missing length on lz decompression, bug found by Chris White.
* Sun Jun 15 2008 Carl Byington <carl@five-ten-sg.com> - 0.6.14-1 * Sun Jun 15 2008 Carl Byington <carl@five-ten-sg.com> - 0.6.14-1
- Fix my mistake in debian packaging. - Fix my mistake in Debian packaging.
* Fri Jun 13 2008 Carl Byington <carl@five-ten-sg.com> - 0.6.13-1 * Fri Jun 13 2008 Carl Byington <carl@five-ten-sg.com> - 0.6.13-1
- Patch from Robert Simpson for encryption type 2. - Patch from Robert Simpson for encryption type 2.
* Tue Jun 10 2008 Carl Byington <carl@five-ten-sg.com> - 0.6.12-1 * Tue Jun 10 2008 Carl Byington <carl@five-ten-sg.com> - 0.6.12-1
- Patch from Joachim Metz for debian packaging and - Patch from Joachim Metz for Debian packaging and
- fix for incorrect length on lz decompression - fix for incorrect length on lz decompression
* Tue Jun 03 2008 Carl Byington <carl@five-ten-sg.com> - 0.6.11-1 * Tue Jun 03 2008 Carl Byington <carl@five-ten-sg.com> - 0.6.11-1
@ -576,3 +624,4 @@ mv %{buildroot}%{_datadir}/doc/%{name}-%{version} %{buildroot}%{_datadir}/doc/%{
* 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