d81824
Name:           jbigkit
d81824
Version:        2.1
d81824
Release:        23%{?dist}
d81824
Summary:        JBIG1 lossless image compression tools
d81824
d81824
License:        GPLv2+
d81824
URL:            http://www.cl.cam.ac.uk/~mgk25/jbigkit/
d81824
Source0:        http://www.cl.cam.ac.uk/~mgk25/download/jbigkit-%{version}.tar.gz
d81824
Patch0:         jbigkit-2.1-shlib.patch
d81824
Patch1:         jbigkit-2.0-warnings.patch
d81824
Patch2:         jbigkit-ldflags.patch
d81824
# patch for coverity issues - backported from upstream
d81824
Patch3:         jbigkit-covscan.patch
d81824
d81824
# gcc is no longer in buildroot by default
d81824
# gcc needed for libjbig library and several filters - jbigtopbm, pbmtojbig e.g.
d81824
BuildRequires: gcc
d81824
# uses make
d81824
BuildRequires: make
d81824
d81824
Requires:       jbigkit-libs%{?_isa} = %{version}-%{release}
d81824
d81824
%package libs
d81824
Summary:        JBIG1 lossless image compression library
d81824
d81824
%package devel
d81824
Summary:        JBIG1 lossless image compression library -- development files
d81824
Requires:       jbigkit-libs%{?_isa} = %{version}-%{release}
d81824
d81824
%description libs
d81824
JBIG-KIT provides a portable library of compression and decompression
d81824
functions with a documented interface that you can include very easily
d81824
into your image or document processing software. In addition, JBIG-KIT
d81824
provides ready-to-use compression and decompression programs with a
d81824
simple command line interface (similar to the converters found in netpbm).
d81824
d81824
JBIG-KIT implements the specification:
d81824
    ISO/IEC 11544:1993 and ITU-T Recommendation T.82(1993):
d81824
     Information technology — Coded representation of picture and audio
d81824
     information — Progressive bi-level image compression 
d81824
d81824
which is commonly referred to as the “JBIG1 standard”
d81824
d81824
%description devel
d81824
The jbigkit-devel package contains files needed for development using 
d81824
the JBIG-KIT image compression library.
d81824
d81824
%description
d81824
The jbigkit package contains tools for converting between PBM and JBIG1
d81824
formats.
d81824
d81824
d81824
%prep
d81824
%setup -q -n jbigkit-2.1
d81824
%patch0 -p1 -b .shlib
d81824
%patch1 -p1 -b .warnings
d81824
# jbigkit: Partial Fedora build flags injection (bug #1548546)
d81824
%patch2 -p1 -b .ldflags
d81824
# covscan issues - backported from upstream
d81824
%patch3 -p1 -b .covscan
d81824
d81824
%build
d81824
# get the correct redhat build flags
d81824
%set_build_flags
d81824
%make_build
d81824
d81824
%install
d81824
mkdir -p $RPM_BUILD_ROOT%{_libdir}
d81824
mkdir -p $RPM_BUILD_ROOT%{_includedir}
d81824
mkdir -p $RPM_BUILD_ROOT%{_bindir}
d81824
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
d81824
d81824
install -p -m0755 libjbig/libjbig.so.%{version} $RPM_BUILD_ROOT/%{_libdir}
d81824
install -p -m0755 libjbig/libjbig85.so.%{version} $RPM_BUILD_ROOT/%{_libdir}
d81824
ln -sf libjbig.so.%{version} $RPM_BUILD_ROOT/%{_libdir}/libjbig.so
d81824
ln -sf libjbig85.so.%{version} $RPM_BUILD_ROOT/%{_libdir}/libjbig85.so
d81824
d81824
install -p -m0644 libjbig/jbig.h $RPM_BUILD_ROOT%{_includedir}
d81824
install -p -m0644 libjbig/jbig85.h $RPM_BUILD_ROOT%{_includedir}
d81824
install -p -m0644 libjbig/jbig_ar.h $RPM_BUILD_ROOT%{_includedir}
d81824
d81824
install -p -m0755 pbmtools/???to??? $RPM_BUILD_ROOT%{_bindir}
d81824
install -p -m0755 pbmtools/???to???85 $RPM_BUILD_ROOT%{_bindir}
d81824
install -p -m0644 pbmtools/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
d81824
d81824
%check
d81824
make test
d81824
d81824
%ldconfig_scriptlets libs
d81824
d81824
%files
d81824
%{_bindir}/???to*
d81824
%{_mandir}/man1/*
d81824
%license COPYING
d81824
d81824
%files libs
d81824
%{_libdir}/libjbig*.so.%{version}
d81824
%doc ANNOUNCE TODO CHANGES
d81824
%license COPYING
d81824
d81824
%files devel
d81824
%{_libdir}/libjbig*.so
d81824
%{_includedir}/jbig*.h
d81824
d81824
%changelog
d81824
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.1-23
d81824
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
d81824
  Related: rhbz#1991688
d81824
d81824
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.1-22
d81824
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
d81824
d81824
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-21
d81824
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
d81824
d81824
* Thu Nov 05 2020 Zdenek Dohnal <zdohnal@redhat.com> - 2.1-20
d81824
- make is no longer in buildroot by default
d81824
d81824
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-19
d81824
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
d81824
d81824
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-18
d81824
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
d81824
d81824
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-17
d81824
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
d81824
d81824
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-16
d81824
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
d81824
d81824
* Thu Oct 25 2018 Zdenek Dohnal <zdohnal@redhat.com> - 2.1-15
d81824
- fixed typo found by coverity
d81824
d81824
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-14
d81824
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
d81824
d81824
* Wed Jul 11 2018 Zdenek Dohnal <zdohnal@redhat.com> - 2.1-13
d81824
- ship license in correct tag
d81824
d81824
* Tue Feb 27 2018 Zdenek Dohnal <zdohnal@redhat.com> - 2.1-12
d81824
- 1548546 - jbigkit: Partial Fedora build flags injection
d81824
d81824
* Fri Feb 09 2018 Zdenek Dohnal <zdohnal@redhat.com> - 2.1-10
d81824
- remove old stuff
d81824
d81824
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-9
d81824
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
d81824
d81824
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-8
d81824
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
d81824
d81824
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-7
d81824
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d81824
d81824
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-6
d81824
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
d81824
d81824
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-5
d81824
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
d81824
d81824
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-4
d81824
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d81824
d81824
* Sun Sep  7 2014 Ville Skyttä <ville.skytta@iki.fi> - 2.1-3
d81824
- Build with $RPM_OPT_FLAGS again
d81824
d81824
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-2
d81824
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
d81824
d81824
* Mon Aug 04 2014 Fridolin Pokorny <fpokorny@redhat.com> - 2.1-1
d81824
- Update to 2.1
d81824
- Removed jbigkit-CVE-2013-6369.patch (accepted by upstream)
d81824
- Updated jbigkit-2.0-warnings.patch to fix only fread() checks
d81824
- Updated jbigkit-2.0-shlib.patch
d81824
d81824
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-11
d81824
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
d81824
d81824
* Tue Apr 08 2014 Jiri Popelka <jpopelka@redhat.com> - 2.0-10
d81824
- CVE-2013-6369 (#1085362)
d81824
d81824
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-9
d81824
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
d81824
d81824
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-8
d81824
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
d81824
d81824
* Tue Jul 17 2012 Jiri Popelka <jpopelka@redhat.com> - 2.0-7
d81824
- Fix a number of compiler warnings per feedback from Ubuntu security team (#840608)
d81824
d81824
* Mon Apr 16 2012 Jiri Popelka <jpopelka@redhat.com> - 2.0-6
d81824
- Don't install up-to-date license file, use the upstream one. (#807760)
d81824
d81824
* Wed Mar 28 2012 Jiri Popelka <jpopelka@redhat.com> - 2.0-5
d81824
- Moving from rpmfusion-free to Fedora because it will be free of known patents
d81824
  in all countries from 2012-04-04 onwards
d81824
- Changed license from GPL to GPLv2+ and included up-to-date license file
d81824
d81824
* Wed Feb 08 2012 Nicolas Chauvet <kwizart@gmail.com> - 2.0-4
d81824
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
d81824
d81824
* Sun Mar 29 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 2.0-3
d81824
- rebuild for new F11 features
d81824
d81824
* Fri Sep 05 2008 David Woodhouse <dwmw2@infradead.org> 2.0-2
d81824
- Add missing jbig_ar.h
d81824
d81824
* Wed Sep 03 2008 David Woodhouse <dwmw2@infradead.org> 2.0-1
d81824
- Update to 2.0
d81824
d81824
* Sun Aug 03 2008 Thorsten Leemhuis <fedora@leemhuis.info> - 1.6-3
d81824
- rebuild
d81824
d81824
* Sun Oct  1 2006 David Woodhouse <dwmw2@infradead.org> 1.6-2
d81824
- Review fixes
d81824
d81824
* Tue Sep 12 2006 David Woodhouse <dwmw2@infradead.org> 1.6-1
d81824
- Initial version