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
|
||||
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 gettext
|
||||
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 gettext-devel
|
||||
BuildRequires: python3 python3-devel boost-python3 boost-python3-devel
|
||||
|
||||
Requires: ImageMagick%{?_isa} libgsf gettext
|
||||
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||
Requires: boost-python3
|
||||
|
||||
%description
|
||||
@ -29,10 +31,9 @@ utilities.
|
||||
|
||||
|
||||
%package -n python3-%{name}
|
||||
Requires: python3
|
||||
Provides: %{name}-python = %{version}-%{release}
|
||||
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$
|
||||
|
||||
@ -45,7 +46,7 @@ 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
|
||||
@ -78,55 +79,48 @@ libpst utilities.
|
||||
|
||||
|
||||
%build
|
||||
autoreconf -v -f -i
|
||||
%configure --enable-libpst-shared
|
||||
autoreconf -fiv
|
||||
%configure --enable-libpst-shared \
|
||||
--with-boost-python=boost_python%{python3_version_nodots}
|
||||
%make_build
|
||||
|
||||
|
||||
%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}
|
||||
#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
|
||||
|
||||
|
||||
%files -n python3-%{name}
|
||||
%defattr(-,root,root,-)
|
||||
%{python3_sitearch}/_*.so
|
||||
%exclude %{python3_sitearch}/*.a
|
||||
%exclude %{python3_sitearch}/*.la
|
||||
|
||||
|
||||
%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
|
||||
|
Loading…
Reference in New Issue
Block a user