From cf4683059713b5b4508e217c8c9e9ec2cb1f9a8f Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Fri, 30 Sep 2011 16:04:43 +0000 Subject: [PATCH] - new Changed files: harfbuzz.spec -> 1.1 --- harfbuzz.spec | 111 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 111 insertions(+) create mode 100644 harfbuzz.spec diff --git a/harfbuzz.spec b/harfbuzz.spec new file mode 100644 index 0000000..e88d185 --- /dev/null +++ b/harfbuzz.spec @@ -0,0 +1,111 @@ +# +# Conditional build: +%bcond_without static_libs # don't build static libraries +# +Summary: HarfBuzz - internationalized text shaping library +Summary(pl.UTF-8): HarfBuzz - biblioteka rysująca tekst z obsługą wielu języków +Name: harfbuzz +Version: 0.6.0 +Release: 1 +License: MIT +Group: Libraries +Source0: http://www.freedesktop.org/software/harfbuzz/release/%{name}-%{version}.tar.bz2 +# Source0-md5: 993807eb81ad61e08d50f28b57baf405 +URL: http://www.freedesktop.org/wiki/HarfBuzz +BuildRequires: cairo-devel >= 1.8.0 +BuildRequires: freetype-devel >= 2 +BuildRequires: glib2-devel >= 1:2.16 +BuildRequires: libicu-devel +BuildRequires: libstdc++-devel +BuildRequires: pkgconfig +Requires: cairo >= 1.8.0 +Requires: glib2 >= 1:2.16 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Internationalized OpenType text layout and rendering library. + +%description -l pl.UTF-8 +Biblioteka rozmieszczająca i rysująca tekst z fontów OpenType, +obsługująca wiele języków. + +%package devel +Summary: Header files for HarfBuzz library +Summary(pl.UTF-8): Pliki nagłówkowe biblioteki HarfBuzz +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: cairo-devel >= 1.8.0 +Requires: glib2-devel >= 1:2.16 +Requires: libstdc++-devel + +%description devel +Header files for HarfBuzz library. + +%description devel -l pl.UTF-8 +Pliki nagłówkowe biblioteki HarfBuzz. + +%package static +Summary: Static HarfBuzz library +Summary(pl.UTF-8): Statyczna biblioteka HarfBuzz +Group: Development/Libraries +Requires: %{name}-devel = %{version}-%{release} + +%description static +Static HarfBuzz library. + +%description static -l pl.UTF-8 +Statyczna biblioteka HarfBuzz. + +%package apidocs +Summary: HarfBuzz API documentation +Summary(pl.UTF-8): Dokumentacja API biblioteki HarfBuzz +Group: Documentation + +%description apidocs +API and internal documentation for HarfBuzz library. + +%description apidocs -l pl.UTF-8 +Dokumentacja API biblioteki HarfBuzz. + +%prep +%setup -q + +%build +%configure \ + --disable-silent-rules \ + %{?with_static_libs:--enable-static} +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +# .la kept - no .private dependencies in .pc + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(644,root,root,755) +%doc COPYING ChangeLog README TODO +%attr(755,root,root) %{_bindir}/hb-view +%attr(755,root,root) %{_libdir}/libharfbuzz.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libharfbuzz.so.0 + +%files devel +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libharfbuzz.so +%{_libdir}/libharfbuzz.la +%{_includedir}/harfbuzz +%{_pkgconfigdir}/harfbuzz.pc + +%if %{with static_libs} +%files static +%defattr(644,root,root,755) +%{_libdir}/libharfbuzz.a +%endif -- 2.44.0