[6890] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 2 | |
---|
| 3 | Summary: Text shaping library |
---|
| 4 | Name: harfbuzz |
---|
[9506] | 5 | Version: 0.9.40 |
---|
[6890] | 6 | Release: 1%{?_dist_release} |
---|
| 7 | License: MIT |
---|
| 8 | Group: System Environment/Libraries |
---|
| 9 | URL: http://www.freedesktop.org/wiki/Software/HarfBuzz |
---|
| 10 | |
---|
[9123] | 11 | Source0: http://www.freedesktop.org/software/harfbuzz/release/%{name}/%{name}-%{version}.tar.bz2 |
---|
| 12 | |
---|
[6890] | 13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[9123] | 14 | BuildRequires: glib2-devel |
---|
| 15 | BuildRequires: cairo-devel |
---|
| 16 | BuildRequires: freetype2-devel |
---|
| 17 | BuildRequires: libicu-devel |
---|
[6890] | 18 | |
---|
| 19 | Vendor: Project Vine |
---|
| 20 | Distribution: Vine Linux |
---|
| 21 | Packager: Takemikaduchi |
---|
| 22 | |
---|
| 23 | |
---|
| 24 | %description |
---|
| 25 | HarfBuzz is an OpenType text shaping engine. |
---|
| 26 | |
---|
| 27 | |
---|
[9123] | 28 | %package devel |
---|
[6890] | 29 | Summary: Development tools for %{name} |
---|
| 30 | Summary(ja): %{name} の開発環境 |
---|
| 31 | Group: Development/Libraries |
---|
| 32 | Requires: %{name} = %{version}-%{release} |
---|
| 33 | Requires: pkgconfig |
---|
| 34 | |
---|
| 35 | %description devel |
---|
| 36 | Header files and libraries for building a extension library for the |
---|
| 37 | %{name}. |
---|
| 38 | |
---|
| 39 | |
---|
[7938] | 40 | %package icu |
---|
| 41 | Summary: ICU library for %{name} |
---|
| 42 | Summary(ja): %{name} 用 ICU ライブラリ |
---|
[9123] | 43 | Group: System Environment/Libraries |
---|
[7938] | 44 | Requires: libicu |
---|
| 45 | Requires: %{name} = %{version}-%{release} |
---|
| 46 | |
---|
| 47 | %description icu |
---|
| 48 | This package contains icu library for %{name}. |
---|
| 49 | |
---|
| 50 | |
---|
[9123] | 51 | %package icu-devel |
---|
[7938] | 52 | Summary: Development tools for %{name}-icu |
---|
| 53 | Summary(ja): %{name}-icu の開発環境 |
---|
| 54 | Group: Development/Libraries |
---|
| 55 | Requires: %{name}-icu = %{version}-%{release} |
---|
| 56 | Requires: %{name}-devel = %{version}-%{release} |
---|
[9123] | 57 | Requires: libicu-devel |
---|
[7938] | 58 | Requires: pkgconfig |
---|
| 59 | |
---|
| 60 | %description icu-devel |
---|
| 61 | Header files and libraries for building a extension library for the |
---|
| 62 | %{name}-icu. |
---|
| 63 | |
---|
| 64 | |
---|
| 65 | %package docs |
---|
| 66 | Summary: Documentation for %{name} |
---|
| 67 | Summary(ja): %{name} 用のドキュメント |
---|
| 68 | Group: Documentation |
---|
| 69 | Requires: %{name} = %{version}-%{release} |
---|
| 70 | BuildArch: noarch |
---|
| 71 | |
---|
| 72 | %description docs |
---|
| 73 | This package contains documentation for %{name}. |
---|
| 74 | |
---|
| 75 | |
---|
[6890] | 76 | # compat32 |
---|
| 77 | %package -n compat32-%{name} |
---|
[9123] | 78 | Summary: Text shaping library |
---|
[6890] | 79 | Group: System Environment/Libraries |
---|
| 80 | Requires: %{name} = %{version}-%{release} |
---|
| 81 | |
---|
| 82 | %description -n compat32-%{name} |
---|
| 83 | HarfBuzz is an OpenType text shaping engine. |
---|
| 84 | |
---|
| 85 | |
---|
| 86 | %package -n compat32-%{name}-devel |
---|
| 87 | Summary: Development tools for %{name} |
---|
| 88 | Summary(ja): %{name} の開発環境 |
---|
| 89 | Group: Development/Libraries |
---|
| 90 | Requires: compat32-%{name} = %{version}-%{release} |
---|
| 91 | Requires: pkgconfig |
---|
| 92 | |
---|
| 93 | %description -n compat32-%{name}-devel |
---|
| 94 | Header files and libraries for building a extension library for the |
---|
| 95 | %{name}. |
---|
| 96 | |
---|
| 97 | |
---|
| 98 | |
---|
| 99 | %prep |
---|
| 100 | %setup -q |
---|
| 101 | |
---|
| 102 | |
---|
| 103 | %build |
---|
| 104 | %configure \ |
---|
| 105 | --disable-static |
---|
| 106 | |
---|
| 107 | %{__make} %{?_smp_mflags} |
---|
| 108 | |
---|
| 109 | |
---|
| 110 | %install |
---|
| 111 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 112 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
| 113 | |
---|
| 114 | find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \; |
---|
| 115 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
---|
| 116 | |
---|
| 117 | |
---|
| 118 | %clean |
---|
| 119 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 120 | |
---|
| 121 | %post -p /sbin/ldconfig |
---|
| 122 | |
---|
| 123 | %postun -p /sbin/ldconfig |
---|
| 124 | |
---|
[7938] | 125 | %post icu -p /sbin/ldconfig |
---|
[6890] | 126 | |
---|
[7938] | 127 | %postun icu -p /sbin/ldconfig |
---|
| 128 | |
---|
| 129 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
| 130 | |
---|
| 131 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
| 132 | |
---|
| 133 | |
---|
[6890] | 134 | %files |
---|
| 135 | %defattr(-,root,root,-) |
---|
| 136 | %doc COPYING ChangeLog NEWS README |
---|
| 137 | %{_bindir}/hb-ot-shape-closure |
---|
| 138 | %{_bindir}/hb-shape |
---|
| 139 | %{_bindir}/hb-view |
---|
| 140 | %{_libdir}/libharfbuzz.so.* |
---|
| 141 | |
---|
| 142 | %files devel |
---|
| 143 | %defattr(-,root,root,-) |
---|
| 144 | %{_includedir}/%{name} |
---|
| 145 | %{_libdir}/libharfbuzz.so |
---|
| 146 | %{_libdir}/pkgconfig/%{name}.pc |
---|
| 147 | |
---|
[7938] | 148 | %files icu |
---|
| 149 | %defattr(-,root,root,-) |
---|
| 150 | %{_libdir}/libharfbuzz-icu.so.* |
---|
| 151 | |
---|
| 152 | %files icu-devel |
---|
| 153 | %defattr(-,root,root,-) |
---|
| 154 | %{_libdir}/libharfbuzz-icu.so |
---|
| 155 | %{_libdir}/pkgconfig/%{name}-icu.pc |
---|
| 156 | |
---|
| 157 | %files docs |
---|
| 158 | %defattr(-,root,root,-) |
---|
| 159 | %{_datadir}/gtk-doc/html/%{name} |
---|
| 160 | |
---|
[6890] | 161 | %if %{build_compat32} |
---|
| 162 | %files -n compat32-%{name} |
---|
| 163 | %defattr(-, root, root,-) |
---|
| 164 | %{_libdir}/libharfbuzz.so.* |
---|
| 165 | |
---|
| 166 | %files -n compat32-%{name}-devel |
---|
| 167 | %defattr(-, root, root,-) |
---|
| 168 | %{_libdir}/libharfbuzz.so |
---|
| 169 | %endif |
---|
| 170 | |
---|
| 171 | |
---|
| 172 | %changelog |
---|
[9506] | 173 | * Mon Apr 13 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.9.40-1 |
---|
| 174 | - new upstream release |
---|
| 175 | |
---|
[9123] | 176 | * Sat Nov 29 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.9.36-1 |
---|
| 177 | - new upstream release |
---|
| 178 | - moved icu subpackage to System Environment/Libraries Group |
---|
| 179 | |
---|
[9073] | 180 | * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.35-1 |
---|
| 181 | - new upstream release |
---|
| 182 | |
---|
[8353] | 183 | * Fri Mar 28 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.27-1 |
---|
| 184 | - new upstream release |
---|
| 185 | |
---|
[8084] | 186 | * Mon Dec 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.25-1 |
---|
| 187 | - new upstream release |
---|
| 188 | |
---|
[7938] | 189 | * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.21-1 |
---|
| 190 | - new upstream release |
---|
| 191 | - add BuildRequires: libicu-devel |
---|
| 192 | - add icu, icu-devel, and docs subpackages |
---|
| 193 | |
---|
[7633] | 194 | * Wed Apr 17 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.14-1 |
---|
| 195 | - new upstream release |
---|
| 196 | |
---|
[7294] | 197 | * Wed Jan 02 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.9-1 |
---|
| 198 | - new upstream release |
---|
| 199 | |
---|
[7119] | 200 | * Wed Nov 14 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.5-1 |
---|
| 201 | - new upstream release |
---|
| 202 | |
---|
[6890] | 203 | * Wed Sep 26 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.4-1 |
---|
| 204 | - initial build |
---|
| 205 | |
---|