jbigkit/jbigkit.spec

120 lines
2.9 KiB
RPMSpec
Raw Permalink Normal View History

2019-09-30 10:54:00 -04:00
Name: jbigkit
Version: 2.1
2023-04-16 16:59:46 +08:00
Release: 22
2019-09-30 10:54:00 -04:00
Summary: Lossless image compression library
License: GPLv2+
URL: https://www.cl.cam.ac.uk/~mgk25/jbigkit/
Source0: https://www.cl.cam.ac.uk/~mgk25/jbigkit/download/%{name}-%{version}.tar.gz
# these patches come from fedora
Patch0: jbigkit-2.1-shlib.patch
Patch1: jbigkit-2.0-warnings.patch
Patch2: jbigkit-ldflags.patch
Patch6000: backport-CVE-2017-9937.patch
2023-04-16 16:59:46 +08:00
Patch6001: support-specify-cc.patch
2019-09-30 10:54:00 -04:00
BuildRequires: gcc
2020-02-17 19:32:22 +08:00
Requires: %{name}-libs = %{version}-%{release}
2019-09-30 10:54:00 -04:00
%description
JBIG-KIT provides a portable library of compression and decompression
functions with a documented interface that you can include very easily
into your image or document processing software. In addition, JBIG-KIT
provides ready-to-use compression and decompression programs with a
simple command line interface.
2020-02-17 19:32:22 +08:00
%package libs
Summary: Libraries for %{name}
%description libs
Libraries for %{name}.
2019-09-30 10:54:00 -04:00
%package devel
Summary: Files for %{name} development
2020-02-17 19:32:22 +08:00
Requires: %{name}-libs = %{version}-%{release}
2019-09-30 10:54:00 -04:00
%description devel
files for %{name} development.
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
%build
export CFLAGS="${CFLAGS:-%optflags}"
export CXXFLAGS="${CXXFLAGS:-%optflags}"
export FFLAGS="${FFLAGS:-%optflags}"
2023-01-13 06:30:05 +00:00
make
2019-09-30 10:54:00 -04:00
%install
pushd libjbig
install -Dm 0644 -t %{buildroot}%{_includedir} *.h
install -Dm 0755 -t %{buildroot}%{_libdir} *.so*
popd
ln -sf libjbig.so.%{version} $RPM_BUILD_ROOT/%{_libdir}/libjbig.so
ln -sf libjbig85.so.%{version} $RPM_BUILD_ROOT/%{_libdir}/libjbig85.so
pushd pbmtools
install -Dm 0755 -t %{buildroot}%{_bindir} ???to??? ???to???85
install -Dm 0644 -t %{buildroot}%{_mandir}/man1/ *.1
popd
%check
make test
2020-02-17 19:32:22 +08:00
%ldconfig_scriptlets libs
2019-09-30 10:54:00 -04:00
%files
%defattr(-,root,root)
%license COPYING
%{_bindir}/*
2020-02-17 19:32:22 +08:00
%files libs
2019-09-30 10:54:00 -04:00
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/*.h
%{_libdir}/*.so
%files help
%defattr(-,root,root)
%doc ANNOUNCE CHANGES TODO
%{_mandir}/man1/*
%changelog
2023-04-16 16:59:46 +08:00
* Sun Apr 16 2023 jammyjellyfish <jammyjellyfish255@outlook.com> - 2.1-22
- Support specify CC
2023-01-13 06:30:05 +00:00
* Fri Jan 13 2023 zhouwenpei <zhouwenpei1@h-partners.com> - 2.1-21
- fix build fail
* Tue Oct 25 2022 wangkerong <wangkerong@h-partners.com> - 2.1-20
- rebuild for next release
* Sun Apr 24 2022 yangcheng <yangcheng87@h-partners.com> - 2.1-19
- add CFLAGS in build
* Mon Apr 11 2022 xingxing <xingxing9@h-partners.com> - 2.1-18
- Type:CVE
- CVE:CVE-2017-9937
- SUG:NA
- DESC:fix CVE-2017-9937
2020-02-17 19:32:22 +08:00
* Mon Feb 17 2020 hexiujun <hexiujun1@huawei.com> - 2.1-17
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:unpack libs subpackage
* Thu Sep 5 2019 openEuler Builteam <buildteam@openeuler.org> - 2.1-16
2019-09-30 10:54:00 -04:00
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:add requires
* Tue Aug 20 2019 openEuler Builteam <buildteam@openeuler.org> -2.1-15
- Package init