diff --git a/jbig2dec-0.16.tar.gz b/jbig2dec-0.16.tar.gz deleted file mode 100644 index bb66f02..0000000 Binary files a/jbig2dec-0.16.tar.gz and /dev/null differ diff --git a/jbig2dec-0.18.tar.gz b/jbig2dec-0.18.tar.gz new file mode 100644 index 0000000..82bb7b2 Binary files /dev/null and b/jbig2dec-0.18.tar.gz differ diff --git a/jbig2dec.spec b/jbig2dec.spec index c7afa13..9049232 100644 --- a/jbig2dec.spec +++ b/jbig2dec.spec @@ -1,15 +1,15 @@ Name: jbig2dec -Version: 0.16 -Release: 2 -Summary: a decoder implementation of the JBIG2 image compression format. +Version: 0.18 +Release: 1 +Summary: A decoder implementation of the JBIG2 image compression format. License: GPLv2 URL: https://jbig2dec.com/ -Source0: https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs927/%{name}-%{version}.tar.gz +Source0: https://github.com/ArtifexSoftware/jbig2dec/archive/%{name}-%{version}.tar.gz -BuildRequires: gcc libtool -Provides: %{name}-libs -Obsoletes: %{name}-libs +BuildRequires: gcc libtool chrpath +Provides: %{name}-libs = %{version}-%{release} +Obsoletes: %{name}-libs < %{version}-%{release} %description jbig2dec is a decoder implementation of the JBIG2 image compression format. @@ -17,6 +17,7 @@ jbig2dec is a decoder implementation of the JBIG2 image compression format. %package devel Summary: files for jbig2dec development Requires: %{name} = %{version}-%{release} + %description devel Files for jbig2dec development. @@ -26,12 +27,20 @@ Files for jbig2dec development. %autosetup -n %{name}-%{version} -p1 %build +./autogen.sh %configure %make_build %install %make_install %delete_la_and_a + +# remove rpath +chrpath -d %{buildroot}%{_bindir}/jbig2dec + +mkdir -p %{buildroot}/etc/ld.so.conf.d +echo "/usr/lib64" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf + %ldconfig_scriptlets %files @@ -39,16 +48,32 @@ Files for jbig2dec development. %license COPYING LICENSE %{_bindir}/jbig2dec %{_libdir}/libjbig2dec.so.* +%config(noreplace) /etc/ld.so.conf.d/* %files devel +%defattr(-,root,root) %{_includedir}/jbig2.h %{_libdir}/libjbig2dec.so +%{_libdir}/pkgconfig/%{name}.pc %files help +%defattr(-,root,root) %doc CHANGES README %{_mandir}/man1/%{name}.1* %changelog +* Mon Jun 22 2020 xinghe - 0.18-1 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC:Update to 0.18 + +* Wed Feb 26 2020 huzunhao - 0.16-3 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC:remove rpath and runpath of exec files and libraries + * Sat Oct 19 2019 openEuler Buildteam - 0.16-2 - Type:bugfix - Id:NA