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