# # spec file for package harfbuzz-bootstrap # # Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %global build_bootstrap 1 Name: harfbuzz-bootstrap Version: 0.9.40 Release: 0 Summary: An OpenType text shaping engine License: MIT Group: Productivity/Text/Utilities Url: http://www.freedesktop.org/wiki/Software/HarfBuzz Source: http://www.freedesktop.org/software/harfbuzz/release/harfbuzz-%{version}.tar.bz2 Source99: baselibs.conf BuildRequires: gcc-c++ BuildRoot: %{_tmppath}/%{name}-%{version}-build %if %{build_bootstrap} Source1000: harfbuzz-bootstrap-rpmlintrc # Generation of pkgconfig(foo) provides for the bootstrap package BuildRequires: pkg-config # The bootstrap package is not supposed to be used by end users Requires: this-is-only-for-build-envs %else BuildRequires: harfbuzz-bootstrap BuildRequires: pkgconfig(cairo) >= 1.8.0 BuildRequires: pkgconfig(cairo-ft) BuildRequires: pkgconfig(freetype2) >= 12.0.6 BuildRequires: pkgconfig(glib-2.0) >= 2.16 BuildRequires: pkgconfig(gobject-2.0) BuildRequires: pkgconfig(graphite2) BuildRequires: pkgconfig(gthread-2.0) BuildRequires: pkgconfig(icu-le) BuildRequires: pkgconfig(icu-uc) #!BuildIgnore: libharfbuzz0 %endif %description HarfBuzz is an OpenType text shaping engine. %if ! %{build_bootstrap} %package -n libharfbuzz0 Summary: An OpenType text shaping engine Group: System/Libraries Obsoletes: harfbuzz-bootstrap = %{version} %description -n libharfbuzz0 HarfBuzz is an OpenType text shaping engine. %package -n libharfbuzz-icu0 Summary: An OpenType text shaping engine - ICU library Group: System/Libraries %description -n libharfbuzz-icu0 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. %endif %package devel Summary: An OpenType text shaping engine -- Development Files Group: Development/Libraries/C and C++ %if %{build_bootstrap} Requires: %{name} = %{version} Conflicts: harfbuzz-devel %else Requires: libharfbuzz-icu0 = %{version} Requires: libharfbuzz0 = %{version} %endif %description devel HarfBuzz is an OpenType text shaping engine. %prep %setup -q -n harfbuzz-%{version} %build %configure \ --disable-static \ %if %{build_bootstrap} --without-glib \ --without-gobject \ --without-freetype \ --without-cairo \ --without-icu \ --without-graphite2 \ --disable-instrospection %else --with-glib \ --with-freetype \ --with-cairo \ --with-icu \ --with-graphite2 %endif make %{?_smp_mflags} %install %make_install %if %{build_bootstrap} install src/*.h %{buildroot}%{_includedir}/harfbuzz/ install src/*.hh %{buildroot}%{_includedir}/harfbuzz/ find %{buildroot}%{_includedir}/harfbuzz/ -type f | xargs chmod -x rm -rf %{buildroot}%{_datadir}/gtk-doc %endif find %{buildroot} -type f -name "*.la" -delete -print %if %{build_bootstrap} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %else %post -n libharfbuzz0 -p /sbin/ldconfig %post -n libharfbuzz-icu0 -p /sbin/ldconfig %postun -n libharfbuzz0 -p /sbin/ldconfig %postun -n libharfbuzz-icu0 -p /sbin/ldconfig %endif %if %{build_bootstrap} %files %defattr(-,root,root) %else %files -n libharfbuzz0 %defattr(-,root,root) %endif %doc AUTHORS COPYING NEWS README THANKS %{_libdir}/libharfbuzz.so.0* %if ! %{build_bootstrap} %files -n libharfbuzz-icu0 %defattr(-,root,root) %{_libdir}/libharfbuzz-icu.so.0* %files tools %defattr(-,root,root) %{_bindir}/hb-ot-shape-closure %{_bindir}/hb-shape %{_bindir}/hb-view %endif %files devel %defattr(-,root,root) %{_includedir}/harfbuzz/ %{_libdir}/*.so %{_libdir}/pkgconfig/harfbuzz.pc %if ! %{build_bootstrap} %docdir %{_datadir}/gtk-doc %{_datadir}/gtk-doc/html/harfbuzz/ %{_libdir}/pkgconfig/harfbuzz-icu.pc %endif %changelog