Changeset 1640
- Timestamp:
- May 24, 2019, 3:54:46 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/freetype.spec
r1211 r1640 1 # no demos atm 2 %global with_demos 0 3 4 # no utf8 conversion 5 %global with_convert 0 1 6 2 7 Summary: A free and portable font rendering engine 3 8 Name: freetype 4 Version: 2. 8.09 Version: 2.10.0 5 10 Release: 1%{?dist} 6 11 License: (FTL or GPLv2+) and BSD and MIT and Public Domain and zlib with acknowledgement … … 9 14 10 15 Vendor: bww bitwise works GmbH 11 %scm_source svn http://svn.netlabs.org/repos/ports/freetype2/trunk 2215 12 #Source: http://download.savannah.gnu.org/releases/freetype/freetype-%{version}.tar.bz2 13 #Source1: http://download.savannah.gnu.org/releases/freetype/freetype-doc-%{version}.tar.bz2 14 #Source2: http://download.savannah.gnu.org/releases/freetype/ft2demos-%{version}.tar.bz2 16 %scm_source github http://github.com/bitwiseworks/%{name}-os2 %{version}-os2 17 Source1: http://download.savannah.gnu.org/releases/freetype/freetype-doc-%{version}.tar.bz2 18 %if %{with_demos} 19 Source2: http://download.savannah.gnu.org/releases/freetype/ft2demos-%{version}.tar.bz2 20 %endif 15 21 16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) 17 22 BuildRequires: gcc 18 23 BuildRequires: libpng-devel 19 24 BuildRequires: zlib-devel … … 21 26 22 27 Provides: %{name}-bytecode 28 Provides: %{name}-subpixel 23 29 24 30 %description … … 31 37 32 38 33 #%package demos 34 #Summary: A collection of FreeType demos 35 #Group: System Environment/Libraries 36 #Requires: %{name} = %{version}-%{release} 39 %if %{with_demos} 40 %package demos 41 Summary: A collection of FreeType demos 42 Group: System Environment/Libraries 43 Requires: %{name} = %{version}-%{release} 37 44 38 #%description demos39 #The FreeType engine is a free and portable font rendering40 #engine, developed to provide advanced font support for a variety of41 #platforms and environments. The demos package includes a set of useful42 #small utilities showing various capabilities of the FreeType library.43 45 %description demos 46 The FreeType engine is a free and portable font rendering 47 engine, developed to provide advanced font support for a variety of 48 platforms and environments. The demos package includes a set of useful 49 small utilities showing various capabilities of the FreeType library. 50 %endif 44 51 45 52 %package devel … … 47 54 Group: Development/Libraries 48 55 Requires: %{name} = %{version}-%{release} 56 Requires: pkgconf 49 57 50 58 %description devel … … 59 67 %prep 60 68 %scm_setup 69 %setup -T -D -b 1 61 70 autogen.sh 62 71 63 72 %build 64 73 rm -f config.mk 65 export LDFLAGS=" -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp "74 export LDFLAGS=" -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp -lcx" 66 75 export VENDOR="%{vendor}" 67 76 %configure --disable-static \ … … 69 78 --with-bzip2=yes \ 70 79 --with-png=yes \ 71 --with-harfbuzz=no 80 --with-harfbuzz=no \ 81 --enable-freetype-config 72 82 73 83 make %{?_smp_mflags} 74 84 85 %if %{with_demos} 86 # Build demos 87 pushd ft2demos-%{version} 88 make TOP_DIR=".." 89 popd 90 %endif 91 92 %if %{with_convert} 93 # Convert FTL.txt and example3.cpp to UTF-8 94 cd docs 95 iconv -f latin1 -t utf-8 < FTL.TXT > FTL.TXT.tmp && \ 96 touch -r FTL.TXT FTL.TXT.tmp && \ 97 mv FTL.TXT.tmp FTL.TXT 98 99 iconv -f iso-8859-1 -t utf-8 < "tutorial/example3.cpp" > "tutorial/example3.cpp.utf8" 100 touch -r tutorial/example3.cpp tutorial/example3.cpp.utf8 && \ 101 mv tutorial/example3.cpp.utf8 tutorial/example3.cpp 102 cd .. 103 %endif 104 75 105 76 106 %install 77 rm -rf $RPM_BUILD_ROOT78 107 79 108 %make_install gnulocaledir=$RPM_BUILD_ROOT%{_datadir}/locale 80 109 110 %if %{with_demos} 111 { 112 for ftdemo in ftbench ftchkwd ftmemchk ftpatchk fttimer ftdump ftlint ftmemchk ftvalid ; do 113 builds/unix/libtool --mode=install install -m 755 ft2demos-%{version}/bin/$ftdemo $RPM_BUILD_ROOT/%{_bindir} 114 done 115 } 116 117 { 118 for ftdemo in ftdiff ftgamma ftgrid ftmulti ftstring fttimer ftview ; do 119 builds/unix/libtool --mode=install install -m 755 ft2demos-%{version}/bin/$ftdemo $RPM_BUILD_ROOT/%{_bindir} 120 done 121 } 122 %endif 123 81 124 # Don't package static a or .la files 82 125 rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la 83 84 85 %clean86 rm -rf $RPM_BUILD_ROOT87 126 88 127 … … 95 134 96 135 97 #%files demos 98 #%{_bindir}/ftbench 99 #%{_bindir}/ftchkwd 100 #%{_bindir}/ftmemchk 101 #%{_bindir}/ftpatchk 102 #%{_bindir}/fttimer 103 #%{_bindir}/ftdump 104 #%{_bindir}/ftlint 105 #%{_bindir}/ftmemchk 106 #%{_bindir}/ftvalid 107 #%doc ChangeLog README 136 %if %{with_demos} 137 %files demos 138 %{_bindir}/ftbench 139 %{_bindir}/ftchkwd 140 %{_bindir}/ftmemchk 141 %{_bindir}/ftpatchk 142 %{_bindir}/fttimer 143 %{_bindir}/ftdump 144 %{_bindir}/ftlint 145 %{_bindir}/ftvalid 146 %doc ChangeLog README 147 %endif 108 148 109 149 110 150 %files devel 111 %doc docs/CHANGES docs/formats.txt 112 #%doc docs/ft2faq.html 151 %doc docs/CHANGES docs/formats.txt docs/ft2faq.html 113 152 %dir %{_includedir}/freetype2 114 153 %{_datadir}/aclocal/freetype2.m4 115 154 %{_includedir}/freetype2/* 116 %{_libdir}/freetype* .a155 %{_libdir}/freetype*_dll.a 117 156 %{_bindir}/freetype-config 118 157 %{_libdir}/pkgconfig/freetype2.pc 119 #%doc docs/design120 #%doc docs/glyphs158 %doc docs/design 159 %doc docs/glyphs 121 160 %doc docs/reference 122 #%doc docs/tutorial161 %doc docs/tutorial 123 162 %{_mandir}/man1/* 124 163 125 164 126 165 %changelog 166 * Fri May 24 2019 Silvan Scherrer <silvan.scherrer@aroa.ch> - 2.10.0-1 167 - updated source to 2.10.0 168 - moved source to github 169 - adjusted spec according to fedora 170 - deliver docs as well 171 127 172 * Wed Aug 09 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> - 2.8.0-1 128 173 - updated source to 2.8.0
Note:
See TracChangeset
for help on using the changeset viewer.