summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-11-05 08:15:20 -0800
committerAnas Nashif <anas.nashif@intel.com>2013-01-29 07:06:21 -0800
commit9451ed073d9f406ad503a4a162d8a63d1e3d4df6 (patch)
tree2a0e83723e43045338637d0402e6d04d60e0460c
parent9470543a71d47a3f2c27fc9dbb1e20d03b9cd56e (diff)
downloadharfbuzz-9451ed073d9f406ad503a4a162d8a63d1e3d4df6.tar.gz
harfbuzz-9451ed073d9f406ad503a4a162d8a63d1e3d4df6.tar.bz2
harfbuzz-9451ed073d9f406ad503a4a162d8a63d1e3d4df6.zip
add packaging
-rw-r--r--packaging/baselibs.conf1
-rw-r--r--packaging/harfbuzz.spec77
2 files changed, 78 insertions, 0 deletions
diff --git a/packaging/baselibs.conf b/packaging/baselibs.conf
new file mode 100644
index 0000000..f5eabf6
--- /dev/null
+++ b/packaging/baselibs.conf
@@ -0,0 +1 @@
+libharfbuzz0
diff --git a/packaging/harfbuzz.spec b/packaging/harfbuzz.spec
new file mode 100644
index 0000000..0fa6d90
--- /dev/null
+++ b/packaging/harfbuzz.spec
@@ -0,0 +1,77 @@
+Name: harfbuzz
+Version: 0.9.3
+Release: 2.1
+License: MIT
+# FIXME: graphite2 is not packaged / http://projects.palaso.org/projects/graphitedev
+Summary: An OpenType text shaping engine
+Url: http://www.freedesktop.org/wiki/Software/HarfBuzz
+Group: Productivity/Text/Utilities
+Source: %{name}-%{version}.tar.bz2
+Source99: baselibs.conf
+BuildRequires: gcc-c++
+BuildRequires: pkgconfig(cairo) >= 1.8.0
+BuildRequires: pkgconfig(cairo-ft)
+BuildRequires: pkgconfig(freetype2) >= 2.3.8
+BuildRequires: pkgconfig(glib-2.0) >= 2.16
+BuildRequires: pkgconfig(gobject-2.0)
+#BuildRequires: pkgconfig(graphite2)
+BuildRequires: pkgconfig(gthread-2.0)
+BuildRequires: pkgconfig(icu-uc)
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+
+%description
+HarfBuzz is an OpenType text shaping engine.
+
+%package -n libharfbuzz
+Summary: An OpenType text shaping engine
+Group: System/Libraries
+
+%description -n libharfbuzz
+HarfBuzz is an OpenType text shaping engine.
+
+%package tools
+Summary: An OpenType text shaping engine -- Tools
+Group: Productivity/Text/Utilities
+
+%description tools
+HarfBuzz is an OpenType text shaping engine.
+
+%package devel
+Summary: An OpenType text shaping engine -- Development Files
+Group: Development/Libraries/C and C++
+Requires: libharfbuzz = %{version}
+
+%description devel
+HarfBuzz is an OpenType text shaping engine.
+
+%prep
+%setup -q
+
+%build
+%configure \
+ --disable-static
+make %{?_smp_mflags}
+
+%install
+%make_install
+
+%post -n libharfbuzz -p /sbin/ldconfig
+
+%postun -n libharfbuzz -p /sbin/ldconfig
+
+%files -n libharfbuzz
+%defattr(-,root,root)
+%doc COPYING
+%{_libdir}/libharfbuzz.so.0*
+
+%files tools
+%defattr(-,root,root)
+%{_bindir}/hb-ot-shape-closure
+%{_bindir}/hb-shape
+%{_bindir}/hb-view
+
+%files devel
+%defattr(-,root,root)
+%{_includedir}/harfbuzz/
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/harfbuzz.pc