From 68cd6453ed80212eb750160254f585d9d6de07fa Mon Sep 17 00:00:00 2001 From: Neal Becker Date: Mon, 5 May 2008 16:53:07 +0000 Subject: [PATCH] init --- .cvsignore | 1 + libotf.spec | 93 +++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 95 insertions(+) create mode 100644 libotf.spec diff --git a/.cvsignore b/.cvsignore index e69de29..4d0c522 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +libotf-0.9.7.tar.gz diff --git a/libotf.spec b/libotf.spec new file mode 100644 index 0000000..ffe28fa --- /dev/null +++ b/libotf.spec @@ -0,0 +1,93 @@ +Name: libotf +Version: 0.9.7 +Release: 4%{?dist} +Summary: A Library for handling OpenType Font + +Group: System Environment/Libraries +License: LGPLv2+ +URL: http://www.m17n.org/libotf/ +Source0: http://www.m17n.org/%{name}/%{name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: gcc chrpath freetype-devel +Requires: freetype + +%description +The library "libotf" provides the following facilites. +Read Open Type Layout Tables from OTF file. Currently these tables are +supported; head, name, cmap, GDEF, GSUB, and GPOS. Convert a Unicode +character sequence to a glyph code sequence by using the above tables. +The combination of libotf and the FreeType library (Ver.2) realizes +CTL (complex text layout) by OpenType fonts. This library is currently +used by the m17n library. It seems that the probject Free Type Layout +provides the similar (or better) facility as this library, but +currently they have not yet released their library. So, we have +developed this one. + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release}, pkgconfig + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + + +%prep +%setup -q + + +%build +%configure --disable-static +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" +find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' +for file in $RPM_BUILD_ROOT/usr/bin/*; do chrpath -d $file || true; done + +(cd example && make clean && rm -rf .deps) + +%clean +rm -rf $RPM_BUILD_ROOT + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + + +%files +%defattr(-,root,root,-) +%doc AUTHORS COPYING README NEWS +%{_libdir}/*.so.* +%{_bindir}/otfdump +%{_bindir}/otflist +%{_bindir}/otftobdf +%{_bindir}/otfview + +%files devel +%defattr(-,root,root,-) +%doc example +%{_includedir}/* +%{_libdir}/*.so +%{_libdir}/pkgconfig/* +%{_bindir}/libotf-config + +%changelog +* Mon Apr 14 2008 Neal Becker - 0.9.7-4 +- Remove .deps from example + +* Fri Mar 28 2008 Neal Becker - 0.9.7-3 +- Change to LGPLv2+ +- Add examples + +* Wed Mar 26 2008 Neal Becker - 0.9.7-2 +- Cleanup suggestions from panemade at gmail dot com + +* Tue Mar 25 2008 Neal Becker - 0.9.7-1 +- Initial + diff --git a/sources b/sources index e69de29..44baa0c 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +017dc38925ffe33cc76d6d29c7757d36 libotf-0.9.7.tar.gz