707541
Name:           graphite2
707541
Version:        1.3.10
707541
Release:        10%{?dist}
707541
Summary:        Font rendering capabilities for complex non-Roman writing systems
707541
Group:          Development/Tools
707541
707541
License:        (LGPLv2+ or GPLv2+ or MPL) and (Netscape or GPLv2+ or LGPLv2+)
707541
URL:            https://sourceforge.net/projects/silgraphite/
707541
Source0:        https://downloads.sourceforge.net/project/silgraphite/graphite2//%{name}-%{version}.tgz
707541
Patch0:         graphite-arm-nodefaultlibs.patch
707541
Patch1:         graphite2-1.2.0-cmakepath.patch
707541
# backports for warnings
707541
Patch2:         0001-Fix-stricter-gcc-warnings.patch
707541
Patch3:         0001-Fix-memory-leaks-on-realloc-failure.patch
707541
# https://github.com/caolanm/graphite/commits/covscan_warning_1 fix/silence covscan warnings
707541
Patch4:         0001-Related-rhbz-1602527-CTOR_DTOR_LEAK-coverity-warning.patch
707541
Patch5:         0001-Related-rhbz-1602527-resourceLeak-cppcheck-warning.patch
707541
Patch6:         0001-Related-rhbz-1602527-add-comment-to-silence-leaked_s.patch
707541
Patch7:         0001-WaE-misleading-indentation.patch
707541
Patch8:         graphite2.stack-protect.patch
707541
707541
BuildRequires:  gcc
707541
BuildRequires:  gcc-c++
707541
BuildRequires:  cmake
707541
BuildRequires:  freetype-devel
707541
BuildRequires:  doxygen asciidoc
707541
BuildRequires:  texlive-helvetic texlive-sectsty texlive-tocloft texlive-xtab texlive-multirow
707541
707541
Obsoletes:      silgraphite < 2.3.1-5
707541
707541
%description
707541
Graphite2 is a project within SIL’s Non-Roman Script Initiative and Language
707541
Software Development groups to provide rendering capabilities for complex
707541
non-Roman writing systems. Graphite can be used to create “smart fonts” capable
707541
of displaying writing systems with various complex behaviors. With respect to
707541
the Text Encoding Model, Graphite handles the "Rendering" aspect of writing
707541
system implementation.
707541
707541
%package devel
707541
Requires: %{name}%{?_isa} = %{version}-%{release}
707541
Summary: Files for developing with graphite2
707541
Group: Development/Libraries
707541
707541
Obsoletes: silgraphite-devel < 2.3.1-5
707541
707541
%description devel
707541
Includes and definitions for developing with graphite2.
707541
707541
%prep
707541
%setup -q
707541
%patch0 -p1 -b .arm
707541
%patch1 -p1 -b .cmake
707541
%patch2 -p1 -b .warnings
707541
%patch3 -p1 -b .resourceLeak
707541
%patch4 -p1 -b .CTOR_DTOR_LEAK
707541
%patch5 -p1 -b .leaked_storage
707541
%patch6 -p1 -b .silence_leak
707541
%patch7 -p1 -b .misleading-indentation
707541
%patch8 -p1 -b .stack-protect
707541
707541
%build
707541
%cmake -DGRAPHITE2_COMPARE_RENDERER=OFF  .
707541
make %{?_smp_mflags}
707541
make docs
707541
sed -i -e 's!!!g' doc/manual.html
707541
707541
%install
707541
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
707541
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
707541
707541
# rhbz#1595710 can renable this in the next release of graphite2 where python3 is supported
707541
#%check
707541
#ctest
707541
707541
%ldconfig_scriptlets
707541
707541
%files
707541
%license LICENSE COPYING
707541
%doc ChangeLog README.md
707541
%{_bindir}/gr2fonttest
707541
%{_libdir}/libgraphite2.so.3
707541
%{_libdir}/libgraphite2.so.3.0.1
707541
707541
%files devel
707541
%doc doc/manual.html
707541
%dir %{_libdir}/%{name}/
707541
%{_libdir}/%{name}/graphite2-release.cmake
707541
%{_libdir}/%{name}/graphite2.cmake
707541
%{_includedir}/%{name}
707541
%{_libdir}/libgraphite2.so
707541
%{_libdir}/pkgconfig/graphite2.pc
707541
707541
%changelog
707541
* Wed Sep 05 2018 Caolán McNamara <caolanm@redhat.com> - 1.3.10-10
707541
- Resolves: rhbz#1624116 backport upstream stack-protect enabling
707541
707541
* Mon Jul 23 2018 Caolán McNamara <caolanm@redhat.com> - 1.3.10-9
707541
- rhbz#1602527 try harder on covscan warnings
707541
707541
* Mon Jul 23 2018 Caolán McNamara <caolanm@redhat.com> - 1.3.10-8
707541
- rhbz#1602527 covscan warnings
707541
707541
* Tue Jul 17 2018 Caolán McNamara <caolanm@redhat.com> - 1.3.10-7
707541
- Resolves: rhbz#1595710 drop python2-fonttools buildrequire
707541
707541
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.10-6
707541
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
707541
707541
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.10-5
707541
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
707541
707541
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.3.10-4
707541
- Switch to %%ldconfig_scriptlets
707541
707541
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.10-3
707541
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
707541
707541
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.10-2
707541
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
707541
707541
* Fri Jun 23 2017 Michael Cronenworth <mike@cchtml.com> - 1.3.10-1
707541
- New upstream release
707541
- Resolves CVE-2017-7778
707541
707541
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.6-2
707541
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
707541
707541
* Mon Feb 29 2016 Caolán McNamara <caolanm@redhat.com> - 1.3.6-1
707541
- update to latest release
707541
707541
* Wed Feb 17 2016 Caolán McNamara <caolanm@redhat.com> - 1.3.5-1
707541
- Resolves: rhbz#1305806 CVE-2016-1521 CVE-2016-1522 CVE-2016-1523 CVE-2016-1526
707541
707541
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-6
707541
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
707541
707541
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.4-5
707541
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
707541
707541
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 1.2.4-4
707541
- Rebuilt for Fedora 23 Change
707541
  https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
707541
707541
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.4-3
707541
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
707541
707541
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.4-2
707541
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
707541
707541
* Thu Apr 03 2014 Nicholas van Oudtshoorn <vanoudt@gmail.com> - 1.2.4-1
707541
- New upstream release
707541
707541
* Sat Dec 21 2013 Ville Skyttä <ville.skytta@iki.fi> - 1.2.2-5
707541
- Move *.so.major symlink to main package.
707541
707541
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.2-4
707541
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
707541
707541
* Mon Jun 24 2013 Caolán McNamara <caolanm@redhat.com> - 1.2.2-3
707541
- clarify licenses
707541
707541
* Wed Jun 19 2013 Karsten Hopp <karsten@redhat.com> 1.2.2-2
707541
- use minimum texlive buildrequires, Than Ngo, rhbz#975843 
707541
707541
* Thu May 30 2013 Nicholas van Oudtshoorn <vanoudt@gmail.com> - 1.2.2-1
707541
- New upstream release
707541
707541
* Tue Jan 29 2013 Parag Nemade <paragn AT fedoraproject DOT org> - 1.2.0-4
707541
- Drop refman.pdf as its same as manual.html
707541
- patch install path for cmake files as they are arch dependent
707541
707541
* Tue Jan 29 2013 Kalev Lember <kalevlember@gmail.com> - 1.2.0-3
707541
- Move manual.html to -devel subpackage
707541
707541
* Tue Jan 29 2013 Parag Nemade <paragn AT fedoraproject DOT org> - 1.2.0-2
707541
- revert the wrongly committed f18 spec to f19
707541
- spec file cleanup
707541
- thanks to jnovy for finding me minimum texlive BR
707541
- partial multilib fix for manual.html
707541
707541
* Fri Nov 9 2012 Nicholas van Oudtshoorn <vanoudt@gmail.com> - 1.2.0-1
707541
- New upstream release
707541
* Wed Oct 3 2012 Caolán McNamara <caolanm@redhat.com> - 1.1.1-4
707541
- expand license field to cover tri-licenced GrUtfTextSrc test
707541
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-3
707541
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
707541
* Tue Apr  3 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 1.1.1-2
707541
- Fix FTBFS on ARM
707541
* Mon Feb 27 2012 Nicholas van Oudtshoorn <vanoudt@gmail.com> - 1.1.1-1
707541
- New upstream release
707541
* Wed Feb 8 2012 Nicholas van Oudtshoorn <vanoudt@gmail.com> - 1.1.0-1
707541
- New upstream release
707541
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-2
707541
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
707541
* Fri Sep 23 2011 Nicholas van Oudtshoorn <vanoudt@gmail.com> - 1.0.3-1
707541
- New upstream release
707541
* Fri Aug 26 2011 Nicholas van Oudtshoorn <vanoudt@gmail.com> - 1.0.2-3
707541
- Obsolete silgraphite
707541
* Fri Aug 26 2011 Nicholas van Oudtshoorn <vanoudt@gmail.com> - 1.0.2-2
707541
- Removed dependency on silgraphite-devel
707541
- Stopped building comparerenderer - the only thing that depended on silgraphite
707541
* Fri Aug 19 2011 Nicholas van Oudtshoorn <vanoudt@gmail.com> - 1.0.2-1
707541
- Rebase to new release
707541
- SPEC Cleanup
707541
- Documentation is now properly installed
707541
* Wed Aug 17 2011 Nicholas van Oudtshoorn <vanoudt@gmail.com> - 1.0.1-2
707541
- Added some necessary requires
707541
* Wed Aug 10 2011 Nicholas van Oudtshoorn <vanoudt@gmail.com> - 1.0.1-1
707541
- Initial build of graphite2