jbig2dec/jbig2dec.spec

109 lines
2.4 KiB
RPMSpec
Raw Normal View History

2019-09-30 10:53:58 -04:00
Name: jbig2dec
2021-01-28 15:50:13 +08:00
Version: 0.19
Release: 2
2020-06-15 17:53:59 +08:00
Summary: A decoder implementation of the JBIG2 image compression format.
2019-09-30 10:53:58 -04:00
2021-01-28 15:50:13 +08:00
License: AGPLv3+
2019-09-30 10:53:58 -04:00
URL: https://jbig2dec.com/
2020-09-08 18:51:14 +08:00
Source0: https://github.com/ArtifexSoftware/jbig2dec/archive/%{version}.tar.gz
2019-09-30 10:53:58 -04:00
Patch0: backprot-add-casts-to-silence-a-compiler-warning.patch
Patch1: backprot-searching-for-a-marker-in-a-stream.patch
2020-06-15 17:53:59 +08:00
BuildRequires: gcc libtool chrpath
Provides: %{name}-libs = %{version}-%{release}
Obsoletes: %{name}-libs < %{version}-%{release}
2019-09-30 10:53:58 -04:00
%description
jbig2dec is a decoder implementation of the JBIG2 image compression format.
%package devel
Summary: files for jbig2dec development
Requires: %{name} = %{version}-%{release}
2020-06-15 17:53:59 +08:00
2019-09-30 10:53:58 -04:00
%description devel
Files for jbig2dec development.
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
%build
2020-06-15 17:53:59 +08:00
./autogen.sh
2019-09-30 10:53:58 -04:00
%configure
%make_build
%install
%make_install
%delete_la_and_a
2020-06-15 17:53:59 +08:00
# 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
2019-09-30 10:53:58 -04:00
%ldconfig_scriptlets
%files
%defattr(-,root,root)
2019-11-06 19:34:34 +08:00
%license COPYING LICENSE
2019-09-30 10:53:58 -04:00
%{_bindir}/jbig2dec
%{_libdir}/libjbig2dec.so.*
2020-06-15 17:53:59 +08:00
%config(noreplace) /etc/ld.so.conf.d/*
2019-09-30 10:53:58 -04:00
%files devel
2020-06-15 17:53:59 +08:00
%defattr(-,root,root)
2019-09-30 10:53:58 -04:00
%{_includedir}/jbig2.h
%{_libdir}/libjbig2dec.so
2020-06-15 17:53:59 +08:00
%{_libdir}/pkgconfig/%{name}.pc
2019-09-30 10:53:58 -04:00
%files help
2020-06-15 17:53:59 +08:00
%defattr(-,root,root)
2019-09-30 10:53:58 -04:00
%doc CHANGES README
%{_mandir}/man1/%{name}.1*
%changelog
* Sat Mar 27 2021 dowzyx <zhaoyuxing2@huawei.com> - 0.19-2
- Type:bufix
- ID:NA
- SUG:NA
- DESC:fix fuzz test from open source community
2021-01-28 15:50:13 +08:00
* Thu Jan 28 2021 zhanzhimin <zhanzhimin@huawei.com> - 0.19-1
- update to 0.19
2020-09-08 18:51:14 +08:00
* Tue Sep 8 2020 hanhui <hanhui15@huawei.com> - 0.18-2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:modify source url
2020-06-22 10:57:27 +08:00
* Mon Jun 22 2020 xinghe<xinghe1@huawei.com> - 0.18-1
2020-06-15 17:53:59 +08:00
- 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
2019-11-06 19:34:34 +08:00
* Sat Oct 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.16-2
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:Change the directory of the license file
2019-09-30 10:53:58 -04:00
* Wed Sep 4 2019 openEuler Builteam <buildteam@openeuler.org> - 0.16-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:add requires
* Mon Aug 19 2019 openEuler Builteam <buildteam@openeuler.org> - 0.14-4
- Package init