100 lines
2.2 KiB
RPMSpec
100 lines
2.2 KiB
RPMSpec
Name: jbig2dec
|
|
Version: 0.19
|
|
Release: 1
|
|
Summary: A decoder implementation of the JBIG2 image compression format.
|
|
|
|
License: AGPLv3+
|
|
URL: https://jbig2dec.com/
|
|
Source0: https://github.com/ArtifexSoftware/jbig2dec/archive/%{version}.tar.gz
|
|
|
|
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.
|
|
|
|
%package devel
|
|
Summary: files for jbig2dec development
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description devel
|
|
Files for jbig2dec development.
|
|
|
|
%package_help
|
|
|
|
%prep
|
|
%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
|
|
%defattr(-,root,root)
|
|
%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
|
|
* Thu Jan 28 2021 zhanzhimin <zhanzhimin@huawei.com> - 0.19-1
|
|
- update to 0.19
|
|
|
|
* Tue Sep 8 2020 hanhui <hanhui15@huawei.com> - 0.18-2
|
|
- Type:bugfix
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC:modify source url
|
|
|
|
* 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
|
|
- SUG:NA
|
|
- DESC:Change the directory of the license file
|
|
|
|
* 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
|