update for libpst-0.6.74-1.fc32
This commit is contained in:
parent
aa02f3a367
commit
19feb8253a
34
libpst.spec
34
libpst.spec
@ -3,13 +3,15 @@ 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}/
|
||||||
Requires: ImageMagick libgsf gettext
|
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 gettext-devel
|
BuildRequires: ImageMagick gd-devel zlib-devel boost-devel libgsf-devel gettext-devel
|
||||||
BuildRequires: python3 python3-devel boost-python3 boost-python3-devel
|
BuildRequires: python3 python3-devel boost-python3 boost-python3-devel
|
||||||
|
|
||||||
|
Requires: ImageMagick%{?_isa} libgsf gettext
|
||||||
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||||
Requires: boost-python3
|
Requires: boost-python3
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -29,10 +31,9 @@ utilities.
|
|||||||
|
|
||||||
|
|
||||||
%package -n python3-%{name}
|
%package -n python3-%{name}
|
||||||
Requires: python3
|
|
||||||
Provides: %{name}-python = %{version}-%{release}
|
|
||||||
Summary: Python bindings for libpst
|
Summary: Python bindings for libpst
|
||||||
Requires: %{name}-libs = %{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$
|
||||||
|
|
||||||
@ -45,7 +46,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: pkgconfig
|
||||||
Requires: %{name}-libs = %{version}-%{release}
|
Requires: %{name}-libs%{?_isa} = %{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,55 +79,48 @@ 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}
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
|
|
||||||
%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