From abbaf3f15c7108757bfc128b500228cad62a21b0 Mon Sep 17 00:00:00 2001 From: CentOS Buildsys Date: Jun 24 2013 15:05:13 +0000 Subject: import graphite2-1.2.2-3.el7.src.rpm --- diff --git a/.graphite2.metadata b/.graphite2.metadata new file mode 100644 index 0000000..60570db --- /dev/null +++ b/.graphite2.metadata @@ -0,0 +1 @@ +9ab10e67763d7142c32ee5f4546471c92d3180ed SOURCES/graphite2-1.2.2.tgz diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/graphite-arm-nodefaultlibs.patch b/SOURCES/graphite-arm-nodefaultlibs.patch new file mode 100644 index 0000000..e698137 --- /dev/null +++ b/SOURCES/graphite-arm-nodefaultlibs.patch @@ -0,0 +1,12 @@ +--- graphite2-1.2.0/src/CMakeLists.txt.orig 2012-11-09 17:48:04.908391335 +0800 ++++ graphite2-1.2.0/src/CMakeLists.txt 2012-11-09 17:48:48.647102280 +0800 +@@ -109,7 +109,7 @@ + if (${CMAKE_CXX_COMPILER} MATCHES ".*mingw.*") + target_link_libraries(graphite2 kernel32 msvcr90 mingw32 gcc user32) + else (${CMAKE_CXX_COMPILER} MATCHES ".*mingw.*") +- target_link_libraries(graphite2 c gcc) ++ target_link_libraries(graphite2 c gcc_s) + include(Graphite) + nolib_test(stdc++ $) + endif (${CMAKE_CXX_COMPILER} MATCHES ".*mingw.*") + diff --git a/SOURCES/graphite2-1.2.0-cmakepath.patch b/SOURCES/graphite2-1.2.0-cmakepath.patch new file mode 100644 index 0000000..ee71cd6 --- /dev/null +++ b/SOURCES/graphite2-1.2.0-cmakepath.patch @@ -0,0 +1,9 @@ +diff -urN graphite2-1.2.0.orig/src/CMakeLists.txt graphite2-1.2.0/src/CMakeLists.txt +--- graphite2-1.2.0.orig/src/CMakeLists.txt 2013-01-29 15:47:32.465841769 +0530 ++++ graphite2-1.2.0/src/CMakeLists.txt 2013-01-29 15:48:24.056843352 +0530 +@@ -136,4 +136,4 @@ + + + install(TARGETS graphite2 EXPORT graphite2 LIBRARY DESTINATION lib${LIB_SUFFIX} ARCHIVE DESTINATION lib${LIB_SUFFIX} PUBLIC_HEADER DESTINATION include/graphite2 RUNTIME DESTINATION bin) +-install(EXPORT graphite2 DESTINATION share/graphite2 NAMESPACE gr2_) ++install(EXPORT graphite2 DESTINATION lib${LIB_SUFFIX}/graphite2 NAMESPACE gr2_) diff --git a/SPECS/graphite2.spec b/SPECS/graphite2.spec new file mode 100644 index 0000000..21afd97 --- /dev/null +++ b/SPECS/graphite2.spec @@ -0,0 +1,126 @@ +Name: graphite2 +Version: 1.2.2 +Release: 3%{?dist} +Summary: Font rendering capabilities for complex non-Roman writing systems +Group: Development/Tools + +License: (LGPLv2+ or GPLv2+ or MPL) and (Netscape or GPLv2+ or LGPLv2+) +URL: http://sourceforge.net/projects/silgraphite/ +Source0: http://downloads.sourceforge.net/silgraphite/graphite2-%{version}.tgz +Patch0: graphite-arm-nodefaultlibs.patch +Patch1: graphite2-1.2.0-cmakepath.patch + +BuildRequires: cmake +BuildRequires: freetype-devel +BuildRequires: doxygen asciidoc +BuildRequires: texlive-helvetic texlive-sectsty texlive-tocloft texlive-xtab texlive-multirow + +Obsoletes: silgraphite < 2.3.1-5 + +%description +Graphite2 is a project within SIL’s Non-Roman Script Initiative and Language +Software Development groups to provide rendering capabilities for complex +non-Roman writing systems. Graphite can be used to create “smart fonts” capable +of displaying writing systems with various complex behaviors. With respect to +the Text Encoding Model, Graphite handles the "Rendering" aspect of writing +system implementation. + +%package devel +Requires: %{name}%{?_isa} = %{version}-%{release} +Summary: Files for developing with graphite2 +Group: Development/Libraries + +Obsoletes: silgraphite-devel < 2.3.1-5 + +%description devel +Includes and definitions for developing with graphite2. + +%prep +%setup -q +%patch0 -p1 -b .arm +%patch1 -p1 -b .cmake + +%build +%cmake -DGRAPHITE2_COMPARE_RENDERER=OFF . +make %{?_smp_mflags} +make docs +sed -i -e 's!!!g' doc/manual.html + +%install +make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" +rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la + +%check +ctest + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%doc LICENSE COPYING ChangeLog +%{_bindir}/gr2fonttest +%{_libdir}/libgraphite2.so.3.0.1 + +%files devel +%doc doc/manual.html +%dir %{_libdir}/%{name}/ +%{_libdir}/%{name}/graphite2-release.cmake +%{_libdir}/%{name}/graphite2.cmake +%{_includedir}/%{name} +%{_libdir}/libgraphite2.so +%{_libdir}/libgraphite2.so.3 +%{_libdir}/pkgconfig/graphite2.pc + +%changelog +* Mon Jun 24 2013 Caolán McNamara - 1.2.2-3 +- clarify licenses + +* Wed Jun 19 2013 Karsten Hopp 1.2.2-2 +- use minimum texlive buildrequires, Than Ngo, rhbz#975843 + +* Thu May 30 2013 Nicholas van Oudtshoorn - 1.2.2-1 +- New upstream release + +* Tue Jan 29 2013 Parag Nemade - 1.2.0-4 +- Drop refman.pdf as its same as manual.html +- patch install path for cmake files as they are arch dependent + +* Tue Jan 29 2013 Kalev Lember - 1.2.0-3 +- Move manual.html to -devel subpackage + +* Tue Jan 29 2013 Parag Nemade - 1.2.0-2 +- revert the wrongly committed f18 spec to f19 +- spec file cleanup +- thanks to jnovy for finding me minimum texlive BR +- partial multilib fix for manual.html + +* Fri Nov 9 2012 Nicholas van Oudtshoorn - 1.2.0-1 +- New upstream release +* Wed Oct 3 2012 Caolán McNamara - 1.1.1-4 +- expand license field to cover tri-licenced GrUtfTextSrc test +* Thu Jul 19 2012 Fedora Release Engineering - 1.1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild +* Tue Apr 3 2012 Peter Robinson - 1.1.1-2 +- Fix FTBFS on ARM +* Mon Feb 27 2012 Nicholas van Oudtshoorn - 1.1.1-1 +- New upstream release +* Wed Feb 8 2012 Nicholas van Oudtshoorn - 1.1.0-1 +- New upstream release +* Fri Jan 13 2012 Fedora Release Engineering - 1.0.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild +* Fri Sep 23 2011 Nicholas van Oudtshoorn - 1.0.3-1 +- New upstream release +* Fri Aug 26 2011 Nicholas van Oudtshoorn - 1.0.2-3 +- Obsolete silgraphite +* Fri Aug 26 2011 Nicholas van Oudtshoorn - 1.0.2-2 +- Removed dependency on silgraphite-devel +- Stopped building comparerenderer - the only thing that depended on silgraphite +* Fri Aug 19 2011 Nicholas van Oudtshoorn - 1.0.2-1 +- Rebase to new release +- SPEC Cleanup +- Documentation is now properly installed +* Wed Aug 17 2011 Nicholas van Oudtshoorn - 1.0.1-2 +- Added some necessary requires +* Wed Aug 10 2011 Nicholas van Oudtshoorn - 1.0.1-1 +- Initial build of graphite2