Merge pull request !7 from xinghe/master
This commit is contained in:
openeuler-ci-bot 2020-06-23 17:07:28 +08:00 committed by Gitee
commit f3665b28ae
3 changed files with 32 additions and 7 deletions

Binary file not shown.

BIN
jbig2dec-0.18.tar.gz Normal file

Binary file not shown.

View File

@ -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<xinghe1@huawei.com> - 0.18-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:Update to 0.18
* Wed Feb 26 2020 huzunhao<huzunhao2@huawei.com> - 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 <buildteam@openeuler.org> - 0.16-2
- Type:bugfix
- Id:NA