graphite2/graphite2.spec
2022-05-20 13:34:05 +08:00

106 lines
2.6 KiB
RPMSpec

Name: graphite2
Version: 1.3.14
Release: 6
Summary: Graphite provides cross-platform rendering for complex writing systems
License: LGPLv2.1
URL: https://sourceforge.net/projects/silgraphite/
Source0: https://github.com/silnrsi/graphite/archive/%{version}.tar.gz
BuildRequires: gcc gcc-c++ cmake freetype-devel doxygen asciidoc python3-unversioned-command
BuildRequires: texlive-helvetic texlive-sectsty texlive-tocloft texlive-xtab texlive-multirow python3-fonttools
Obsoletes: silgraphite < 2.3.1-5
%description
Graphite is a system that can be used to create “smart fonts” capable of displaying writing systems with various complex behaviors. A smart font contains not only letter shapes but also additional instructions indicating how to combine and position the letters in complex ways.
%package devel
Summary: Development headers and libraries for graphite2
Requires: %{name} = %{version}-%{release}
Obsoletes: silgraphite-devel < 2.3.1-5
%description devel
Header files for using the graphite2 libraries.
%prep
%autosetup -n graphite-%{version} -p1
%build
%cmake -DGRAPHITE2_COMPARE_RENDERER=OFF .
%make_build
make docs
%install
%make_install INSTALL="install -p"
%check
ctest
%pre
%preun
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%license LICENSE COPYING
%doc ChangeLog README.md
%{_bindir}/gr2fonttest
%{_libdir}/libgraphite2.so.3
%{_libdir}/libgraphite2.so.3.2.1
%exclude %{_libdir}/*.la
%files devel
%doc doc/manual.html
%{_includedir}/graphite2
%{_libdir}/libgraphite2.so
%{_libdir}/pkgconfig/graphite2.pc
%{_datadir}/graphite2/graphite2-release.cmake
%{_datadir}/graphite2/graphite2.cmake
%changelog
* Fri May 20 2022 loong_C <loong_c@yeah.net> - 1.3.14-6
- fix spec changelog date
* Wed Jul 21 2021 yushaogui<yushaogui@huawei.com> - 1.3.14-5
- Delete a BuildRequires for gdb
* Tue Dec 15 2020 hanhui<hanhui15@huawei.com> - 1.3.14-4
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:modify license
* Wed Oct 21 2020 jinzhimin<jinzhimin2@huawei.com> - 1.3.14-3
- modify BuildRequires to python3-unversioned-command
* Thu Sep 10 2020 chengguipeng<chengguipeng1@huawei.com> - 1.3.14-2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:modify source0 url
* Thu Jul 23 2020 hanhui <hanhui15@huawei.com> - 1.3.14-1
- update to 1.3.14
* Fri Mar 20 2020 songnannan <songnannan2@huawei.com> - 1.3.13-2
- add gdb in buildrequires
* Fri Jan 10 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.3.13.1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC: delete patches
* Tue Sep 17 2019 hufeng <solar.hu@huawei.com> - 1.3.10.7
- Create graphite2 spec