Update spec file to comply with packaging guidelines
This commit is contained in:
parent
34fa7877c3
commit
9b598b3e22
33
libpst.spec
33
libpst.spec
@ -3,18 +3,15 @@ Name: libpst
|
|||||||
Version: 0.6.72
|
Version: 0.6.72
|
||||||
Release: 3%{?dist}
|
Release: 3%{?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}/
|
||||||
Requires: ImageMagick libgsf
|
Source: %{url}/packages/%{name}-%{version}.tar.gz
|
||||||
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
|
||||||
BuildRequires: python3 python3-devel boost-python3 boost-python3-devel
|
BuildRequires: python3 python3-devel boost-python3 boost-python3-devel
|
||||||
|
|
||||||
|
Requires: ImageMagick%{?_isa}
|
||||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||||
%{!?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
|
||||||
@ -33,8 +30,9 @@ utilities.
|
|||||||
|
|
||||||
|
|
||||||
%package -n python3-%{name}
|
%package -n python3-%{name}
|
||||||
Requires: python3
|
Summary: Python bindings for libpst
|
||||||
Provides: %{name}-python = %{version}-%{release}
|
Provides: %{name}-python = %{version}-%{release}
|
||||||
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
%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$
|
||||||
|
|
||||||
@ -46,8 +44,7 @@ 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: pkgconfig
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||||
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
|
||||||
@ -80,7 +77,7 @@ libpst utilities.
|
|||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -v -f -i
|
autoreconf -fiv
|
||||||
%configure --enable-libpst-shared \
|
%configure --enable-libpst-shared \
|
||||||
--with-boost-python=boost_python%{python3_version_nodots}
|
--with-boost-python=boost_python%{python3_version_nodots}
|
||||||
%make_build
|
%make_build
|
||||||
@ -88,48 +85,40 @@ autoreconf -v -f -i
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/libpst.la
|
#Remove libtool archives.
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/libpst.a
|
find %{buildroot} -name '*.la' -or -name '*.a' | xargs rm -f
|
||||||
mv $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version} $RPM_BUILD_ROOT%{_datadir}/doc/%{name}
|
mv %{buildroot}%{_datadir}/doc/%{name}-%{version} %{buildroot}%{_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
|
||||||
|
|
||||||
|
|
||||||
%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
|
|
||||||
|
|
||||||
|
|
||||||
%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
|
||||||
|
Loading…
Reference in New Issue
Block a user