## ## cufon-fonts.spec -- OpenPKG RPM Package Specification ## Copyright (c) 2000-2020 OpenPKG Project ## ## Permission to use, copy, modify, and distribute this software for ## any purpose with or without fee is hereby granted, provided that ## the above copyright notice and this permission notice appear in all ## copies. ## ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ## SUCH DAMAGE. ## # package information Name: cufon-fonts Summary: Free Fonts in Cufon Format URL: http://openpkg.org/ Vendor: Ralf S. Engelschall Packager: OpenPKG Project Distribution: OpenPKG Community Class: EVAL Group: Graphics License: OpenPKG Version: 0 Release: 20140510 # list of sources # build information BuildPreReq: OpenPKG, openpkg >= 20160101, cufon, fonts-free PreReq: OpenPKG, openpkg >= 20160101 %description This packages provides a few free fonts in Cufon format. %track prog cufon-fonts = { disabled version = %{version} url = http://download.openpkg.org/ regex = .* } %prep %setup -q -T -c %build for spec in \ Liberation/LiberationMono-Bold.ttf:LiberationMono-Bold.cufon.js \ Liberation/LiberationMono-BoldItalic.ttf:LiberationMono-BoldItalic.cufon.js \ Liberation/LiberationMono-Italic.ttf:LiberationMono-Italic.cufon.js \ Liberation/LiberationMono-Regular.ttf:LiberationMono-Regular.cufon.js \ Liberation/LiberationSans-Bold.ttf:LiberationSans-Bold.cufon.js \ Liberation/LiberationSans-BoldItalic.ttf:LiberationSans-BoldItalic.cufon.js \ Liberation/LiberationSans-Italic.ttf:LiberationSans-Italic.cufon.js \ Liberation/LiberationSans-Regular.ttf:LiberationSans-Regular.cufon.js \ Liberation/LiberationSerif-Bold.ttf:LiberationSerif-Bold.cufon.js \ Liberation/LiberationSerif-BoldItalic.ttf:LiberationSerif-BoldItalic.cufon.js \ Liberation/LiberationSerif-Italic.ttf:LiberationSerif-Italic.cufon.js \ Liberation/LiberationSerif-Regular.ttf:LiberationSerif-Regular.cufon.js \ ; do ttf=`echo "$spec" | sed -e 's;:.*$;;'` js=`echo "$spec" | sed -e 's;^.*:;;'` %{l_prefix}/bin/cufon %{l_prefix}/share/fonts-free/$ttf -u "U+??" >$js || exit $? done %install %{l_shtool} mkdir -f -p -m 755 \ $RPM_BUILD_ROOT%{l_prefix}/share/cufon/fonts %{l_shtool} install -c -m 644 \ *.cufon.js $RPM_BUILD_ROOT%{l_prefix}/share/cufon/fonts/ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} %files -f files %clean