[521] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 2 | Summary: A free and portable TrueType font rendering engine. |
---|
| 3 | Name: freetype |
---|
| 4 | Version: 1.3.1 |
---|
[5718] | 5 | Release: 8%{?_dist_release} |
---|
[521] | 6 | License: BSD-like |
---|
| 7 | Group: System Environment/Libraries |
---|
| 8 | URL: http://www.freetype.org |
---|
| 9 | Source: freetype-%{version}.tar.gz |
---|
| 10 | Source1: ttmkfdir.tar.gz |
---|
| 11 | Patch0: freetype-1.2-fixpath.patch |
---|
| 12 | Patch1: freetype-1.3.1-foundrynames.patch |
---|
| 13 | Patch2: freetype-1.3.1-ftdump-gcc3.patch |
---|
| 14 | Patch3: freetype-1.3.1-config.sub-x86_64.patch |
---|
| 15 | Patch4: freetype-1.3.1-ltconfig-compat32.patch |
---|
| 16 | |
---|
| 17 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
| 18 | Obsoletes: freetype-utils |
---|
[1228] | 19 | BuildRequires: libX11-devel |
---|
| 20 | BuildRequires: libXt-devel |
---|
| 21 | BuildRequires: imake |
---|
[521] | 22 | |
---|
| 23 | %description |
---|
| 24 | The FreeType engine is a free and portable TrueType font rendering |
---|
| 25 | engine, developed to provide TrueType support for a variety of |
---|
| 26 | platforms and environments. FreeType is a library which can open and |
---|
| 27 | manages font files as well as efficiently load, hint and render |
---|
| 28 | individual glyphs. FreeType is not a font server or a complete |
---|
| 29 | text-rendering library. |
---|
| 30 | |
---|
| 31 | %package utils |
---|
| 32 | Summary: Several utilities to manipulate and examine TrueType fonts. |
---|
| 33 | Group: Applications/Publishing |
---|
| 34 | |
---|
| 35 | %description utils |
---|
| 36 | This package contains several utilities which allow you to view and |
---|
| 37 | manipulate TrueType fonts. They are mainly useful for debugging and |
---|
| 38 | testing purposes, and are not required for using the FreeType |
---|
| 39 | library. |
---|
| 40 | |
---|
| 41 | %package devel |
---|
| 42 | Summary: Header files and static library for development with FreeType. |
---|
| 43 | Group: Development/Libraries |
---|
[1228] | 44 | Requires: %{name} = %{version}-%{release} |
---|
[521] | 45 | |
---|
| 46 | %description devel |
---|
| 47 | The freetype-devel package contains the header files and static |
---|
| 48 | library needed to develop or compile applications which use the |
---|
| 49 | FreeType TrueType font rendering library. |
---|
| 50 | |
---|
| 51 | Install freetype-devel if you want to develop FreeType |
---|
| 52 | applications. If you simply want to run existing applications, you |
---|
| 53 | won't need this package. |
---|
| 54 | |
---|
[1228] | 55 | %if %{build_compat32} |
---|
[521] | 56 | ## to build compat32 for x86_64 architecture support |
---|
| 57 | %package -n compat32-%{name} |
---|
| 58 | Summary: A free and portable TrueType font rendering engine. |
---|
| 59 | Group: System Environment/Libraries |
---|
| 60 | %description -n compat32-%{name} |
---|
| 61 | The FreeType engine is a free and portable TrueType font rendering |
---|
| 62 | engine, developed to provide TrueType support for a variety of |
---|
| 63 | platforms and environments. FreeType is a library which can open and |
---|
| 64 | manages font files as well as efficiently load, hint and render |
---|
| 65 | individual glyphs. FreeType is not a font server or a complete |
---|
| 66 | text-rendering library. |
---|
| 67 | |
---|
| 68 | %package -n compat32-%{name}-devel |
---|
| 69 | Summary: Header files and static library for development with FreeType. |
---|
| 70 | Group: Development/Libraries |
---|
| 71 | Requires: compat32-%{name} = %{version} |
---|
| 72 | %description -n compat32-%{name}-devel |
---|
| 73 | The freetype-devel package contains the header files and static |
---|
| 74 | library needed to develop or compile applications which use the |
---|
| 75 | FreeType TrueType font rendering library. |
---|
| 76 | |
---|
| 77 | Install freetype-devel if you want to develop FreeType |
---|
| 78 | applications. If you simply want to run existing applications, you |
---|
| 79 | won't need this package. |
---|
[1228] | 80 | %endif |
---|
[521] | 81 | |
---|
| 82 | %prep |
---|
| 83 | %setup -q |
---|
| 84 | mkdir ttmkfdir |
---|
| 85 | tar xz -C ttmkfdir -f %{SOURCE1} |
---|
| 86 | %patch0 -p1 -b .fixpath |
---|
| 87 | %patch1 -p1 -b .foundrynames |
---|
| 88 | %patch2 -p1 -b .ftdump-gcc3 |
---|
| 89 | %patch3 -p1 -b .config.sub-x86_64 |
---|
| 90 | %if %{build_compat32} |
---|
| 91 | %patch4 -p1 -b .ltconfig-compat32 |
---|
| 92 | %endif |
---|
| 93 | |
---|
| 94 | %build |
---|
| 95 | %if %{build_compat32} |
---|
| 96 | export CC='gcc -m32' |
---|
| 97 | %endif |
---|
| 98 | ##libtoolize --copy --force |
---|
| 99 | ./configure --prefix=%{_prefix} \ |
---|
| 100 | --with-cflags="$RPM_OPT_FLAGS" \ |
---|
| 101 | --disable-debug \ |
---|
| 102 | --enable-static --enable-shared \ |
---|
| 103 | --with-locale-dir=%{_localedir} \ |
---|
| 104 | --libdir=%{_libdir} \ |
---|
[1228] | 105 | --x-libraries=%{_libdir} \ |
---|
[521] | 106 | --target=%{_target_platform} |
---|
| 107 | |
---|
| 108 | make |
---|
| 109 | |
---|
| 110 | %if 0 |
---|
| 111 | make -C ttmkfdir CC="gcc $RPM_OPT_FLAGS" |
---|
| 112 | |
---|
| 113 | (cd contrib/ttf2pk |
---|
| 114 | ./configure --prefix=%{_prefix} \ |
---|
| 115 | --mandir=%{_mandir} \ |
---|
| 116 | --with-cflags="$RPM_OPT_FLAGS" |
---|
| 117 | make |
---|
| 118 | ) |
---|
| 119 | %endif |
---|
| 120 | |
---|
| 121 | # --libdir=$RPM_BUILD_ROOT%{_libdir} \ |
---|
| 122 | %install |
---|
| 123 | rm -rf $RPM_BUILD_ROOT |
---|
| 124 | make prefix=$RPM_BUILD_ROOT%{_prefix} \ |
---|
| 125 | libdir=$RPM_BUILD_ROOT%{_libdir} \ |
---|
| 126 | install \ |
---|
| 127 | gnulocaledir=$RPM_BUILD_ROOT%{_localedir} |
---|
| 128 | %if 0 |
---|
| 129 | install -m 755 ttmkfdir/ttmkfdir $RPM_BUILD_ROOT%{_bindir} |
---|
| 130 | %endif |
---|
| 131 | |
---|
| 132 | (cd $RPM_BUILD_ROOT%{_includedir} |
---|
| 133 | for i in freetype/*.h |
---|
| 134 | do |
---|
| 135 | ln -sf $i . |
---|
| 136 | done |
---|
| 137 | ) |
---|
| 138 | |
---|
| 139 | %if 0 |
---|
| 140 | (cd contrib/ttf2pk |
---|
| 141 | make prefix=$RPM_BUILD_ROOT%{_prefix} \ |
---|
| 142 | mandir=$RPM_BUILD_ROOT%{_mandir} \ |
---|
| 143 | install |
---|
| 144 | mkdir -p $RPM_BUILD_ROOT%{_datadir}/ttf2pk |
---|
| 145 | cp data/* $RPM_BUILD_ROOT%{_datadir}/ttf2pk |
---|
| 146 | ) |
---|
| 147 | %endif |
---|
| 148 | |
---|
| 149 | # remove unpackaged files |
---|
| 150 | rm -rf $RPM_BUILD_ROOT%{_bindir} |
---|
| 151 | |
---|
| 152 | %post -p /sbin/ldconfig |
---|
| 153 | |
---|
| 154 | %postun -p /sbin/ldconfig |
---|
| 155 | |
---|
| 156 | %if %{build_compat32} |
---|
| 157 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
| 158 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
| 159 | %endif |
---|
| 160 | |
---|
| 161 | %clean |
---|
| 162 | rm -rf $RPM_BUILD_ROOT |
---|
| 163 | |
---|
| 164 | %files |
---|
| 165 | %defattr(-,root,root) |
---|
| 166 | %{_libdir}/libttf.la |
---|
| 167 | %{_libdir}/libttf.so.* |
---|
| 168 | %{_datadir}/locale/*/LC_MESSAGES/* |
---|
| 169 | %doc README announce docs |
---|
| 170 | |
---|
| 171 | %if 0 |
---|
| 172 | %files utils |
---|
| 173 | %defattr(-,root,root) |
---|
| 174 | %{_bindir}/* |
---|
| 175 | %{_mandir}/man1/* |
---|
| 176 | %{_datadir}/ttf2pk/ |
---|
| 177 | %endif |
---|
| 178 | |
---|
| 179 | %files devel |
---|
| 180 | %defattr(-,root,root) |
---|
| 181 | %{_includedir}/* |
---|
| 182 | %{_libdir}/libttf.so |
---|
| 183 | %{_libdir}/libttf.a |
---|
| 184 | |
---|
| 185 | ## to build compat32 for x86_64 architecture support |
---|
| 186 | %if %{build_compat32} |
---|
| 187 | %files -n compat32-%{name} |
---|
| 188 | %defattr(-,root,root) |
---|
| 189 | %{_libdir}/libttf.la |
---|
| 190 | %{_libdir}/libttf.so.* |
---|
| 191 | |
---|
| 192 | %files -n compat32-%{name}-devel |
---|
| 193 | %defattr(-,root,root) |
---|
| 194 | %{_libdir}/libttf.so |
---|
| 195 | %{_libdir}/libttf.a |
---|
| 196 | %endif |
---|
| 197 | |
---|
| 198 | %changelog |
---|
[5718] | 199 | * Mon Feb 20 2012 <munepi@vinelinux.org> 1.5.1-8 |
---|
| 200 | - rebuild |
---|
| 201 | |
---|
[1228] | 202 | * Mon Jun 21 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.5.1-7 |
---|
| 203 | - add Requires: %{name} = %{version}-%{release} (devel package) |
---|
| 204 | - add BuildRequires: libX11-devel, libXt-devel, imake |
---|
| 205 | - change configure option |
---|
| 206 | (from "--x-libraries=%{_prefix}/X11R6/%{_lib}" to "--x-libraries=%{_libdir}") |
---|
| 207 | |
---|
[521] | 208 | * Wed Mar 26 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.5.1-6 |
---|
| 209 | - obsolete freetype-utils |
---|
| 210 | |
---|
| 211 | * Thu Feb 23 2006 Shu KONNO <owa@bg.wakwak.com> 1.3.1-5vl5 |
---|
| 212 | - fixed libdir to configure and to make install |
---|
| 213 | |
---|
| 214 | * Mon Feb 13 2006 Shu KONNO <owa@bg.wakwak.com> 1.3.1-5vl4 |
---|
| 215 | - dropt libtoolize |
---|
| 216 | - added freetype-1.3.1-ftdump-gcc3.patch |
---|
| 217 | - added freetype-1.3.1-config.sub-x86_64.patch |
---|
| 218 | - added freetype-1.3.1-ltconfig-compat32.patch |
---|
| 219 | - added options --libdir, --x-libraries, --target to configure |
---|
| 220 | - added URL |
---|
| 221 | - changed Copyright to License |
---|
| 222 | - changed direct path strings to macros |
---|
| 223 | |
---|
| 224 | * Sat Mar 15 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.3.1-5vl3 |
---|
| 225 | - rebuilt with new toolchains |
---|
| 226 | |
---|
| 227 | * Mon Jun 11 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org> |
---|
| 228 | - 1.3.1-5vl2 |
---|
| 229 | - rebuilt with new %%{_mandir} for VineSeed |
---|
| 230 | |
---|
| 231 | * Wed Aug 2 2000 Jun Nishii <jun@vinelinux.org> |
---|
| 232 | - 1.3.1-5vl1 |
---|
| 233 | - follow RHL62 |
---|
| 234 | |
---|
| 235 | * Sat Jan 22 2000 Jun Nishii <jun@vinelinux.org> |
---|
| 236 | - added %defattr |
---|
| 237 | |
---|
| 238 | * Tue Jan 11 2000 Jun Nishii <jun@vinelinux.org> |
---|
| 239 | - added bins from contrib/ttf2pk |
---|
| 240 | |
---|
| 241 | * Tue Nov 23 1999 Norihito Ohmori <ohmori@flatout.org> |
---|
| 242 | - modified for Vine Linux |
---|
| 243 | |
---|
| 244 | * Wed Nov 10 1999 Norihito Ohmori <nono@kondara.org> |
---|
| 245 | - add /usr/bin/{ftmetric,ftsbit,ftstrtto} to freetype-utils (jitterbug #88) |
---|
| 246 | |
---|
| 247 | * Mon Nov 8 1999 Toru Hoshina <t@kondara.org> |
---|
| 248 | - be a NoSrc :-P |
---|
| 249 | |
---|
| 250 | * Wed Oct 14 1999 Norihito Ohmori <nono@kondara.org> |
---|
| 251 | - freetype-current dated Oct 12 1999. |
---|
| 252 | |
---|
| 253 | * Sat Oct 9 1999 Toru Hoshina <t@kondara.org> |
---|
| 254 | - freetype-current dated Oct 3 1999. |
---|
| 255 | |
---|
| 256 | * Thu Aug 19 1999 Preston Brown <pbrown@redhat.com> |
---|
| 257 | - newer ttmkfdir that works better, moved ttmkfdir to /usr/bin from /usr/sbin |
---|
| 258 | - freetype utilities moved to subpkg, X dependency removed from main pkg |
---|
| 259 | - libttf.so symlink moved to devel pkg |
---|
| 260 | |
---|
| 261 | * Mon Mar 22 1999 Preston Brown <pbrown@redhat.com> |
---|
| 262 | - strip binaries |
---|
| 263 | |
---|
| 264 | * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> |
---|
| 265 | - auto rebuild in the new build environment (release 5) |
---|
| 266 | |
---|
| 267 | * Thu Mar 18 1999 Cristian Gafton <gafton@redhat.com> |
---|
| 268 | - fixed the %doc file list |
---|
| 269 | |
---|
| 270 | * Wed Feb 24 1999 Preston Brown <pbrown@redhat.com> |
---|
| 271 | - Injected new description and group. |
---|
| 272 | |
---|
| 273 | * Mon Feb 15 1999 Preston Brown <pbrown@redhat.com> |
---|
| 274 | - added ttmkfdir |
---|
| 275 | |
---|
| 276 | * Tue Feb 02 1999 Preston Brown <pbrown@redhat.com> |
---|
| 277 | - update to 1.2 |
---|
| 278 | |
---|
| 279 | * Thu Jan 07 1999 Cristian Gafton <gafton@redhat.com> |
---|
| 280 | - call libtoolize to sanitize config.sub and get ARM support |
---|
| 281 | - dispoze of the patch (not necessary anymore) |
---|
| 282 | |
---|
| 283 | * Wed Oct 21 1998 Preston Brown <pbrown@redhat.com> |
---|
| 284 | - post/postun sections for ldconfig action. |
---|
| 285 | |
---|
| 286 | * Tue Oct 20 1998 Preston Brown <pbrown@redhat.com> |
---|
| 287 | - initial RPM, includes normal and development packages. |
---|