From 063034b9fc633b3091dfb09f79fc0a61bb12535c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sat, 19 Aug 2017 13:05:41 -0400 Subject: [PATCH] Remove stuff not applicable in F26+ The spec file in F25 is going to be quite different, so commits cannot be cherry-picked from one branch to the other anyway, so let's just maximally simplify the spec file. --- libpst.spec | 59 ++--------------------------------------------------- 1 file changed, 2 insertions(+), 57 deletions(-) diff --git a/libpst.spec b/libpst.spec index f9ee1da..269f956 100644 --- a/libpst.spec +++ b/libpst.spec @@ -3,23 +3,13 @@ Name: libpst Version: 0.6.71 Release: 4%{?dist} License: GPLv2+ -Group: Applications/Productivity Source: http://www.five-ten-sg.com/%{name}/packages/%{name}-%{version}.tar.gz -BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) URL: http://www.five-ten-sg.com/%{name}/ Requires: ImageMagick libgsf Requires: %{name}-libs = %{version}-%{release} BuildRequires: libtool BuildRequires: ImageMagick gd-devel zlib-devel boost-devel libgsf-devel -%if 0%{?fedora} > 25 BuildRequires: python2-devel -%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 @@ -31,46 +21,23 @@ Summation. %package libs Summary: Shared library used by the pst utilities -Group: Development/Libraries %description libs The libpst-libs package contains the shared library used by the pst utilities. -%if 0%{?fedora} > 25 %package python2 -Requires: python2 -%else -%package python -Requires: python -%endif Summary: Python bindings for libpst -Group: Development/Libraries 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} > 25 %description python2 -%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 -Group: Development/Libraries Requires: pkgconfig Requires: %{name}-libs = %{version}-%{release} @@ -83,7 +50,6 @@ utilities. %package devel-doc Summary: Documentation for libpst.so for libpst application development -Group: Documentation Requires: %{name}-doc = %{version}-%{release} %description devel-doc @@ -93,7 +59,6 @@ documentation for the libpst.so shared library. %package doc Summary: Documentation for the pst utilities in html format -Group: Documentation %description doc The libpst-doc package contains the html documentation for the pst @@ -109,69 +74,49 @@ libpst utilities. %build autoreconf -v -f -i %configure --enable-libpst-shared -make %{?_smp_mflags} +%make_build %install -rm -rf $RPM_BUILD_ROOT -make DESTDIR=$RPM_BUILD_ROOT install +%make_install 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} -%clean -rm -rf $RPM_BUILD_ROOT - - %post libs -p /sbin/ldconfig - %postun libs -p /sbin/ldconfig %files -%defattr(-,root,root,-) %{_bindir}/* %{_mandir}/man1/* %{_mandir}/man5/* %files libs -%defattr(-,root,root,-) %{_libdir}/libpst.so.* %doc COPYING -%if 0%{?fedora} > 25 %files python2 -%defattr(-,root,root,-) %{python2_sitearch}/_*.so %exclude %{python2_sitearch}/*.a %exclude %{python2_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