Ralf S. Engelschall 15 éve
szülő
commit
14f7620e65
2 módosított fájl, 112 hozzáadás és 0 törlés
  1. 31 0
      woff/woff.patch
  2. 81 0
      woff/woff.spec

+ 31 - 0
woff/woff.patch

@@ -0,0 +1,31 @@
+Index: Makefile
+--- Makefile.orig	2009-08-27 19:59:54.000000000 +0200
++++ Makefile	2010-03-14 15:31:58.000000000 +0100
+@@ -1,5 +1,8 @@
+ all: sfnt2woff woff2sfnt
+ 
++.c.o:
++	$(CC) $(CFLAGS) -o $@ -c $<
++
+ sfnt2woff: sfnt2woff.o woff.o woff.h Makefile
+ 	$(CC) $(LDFLAGS) -o $@ $< woff.o -lz
+ 
+Index: woff-private.h
+--- woff-private.h.orig	2009-09-16 14:08:54.000000000 +0200
++++ woff-private.h	2010-03-14 15:33:29.000000000 +0100
+@@ -77,8 +77,6 @@
+                          (uint16_t) ((uint8_t*)&(x))[1]          )
+ #endif
+ 
+-#pragma pack(push,1)
+-
+ typedef struct {
+   uint32_t version;
+   uint16_t numTables;
+@@ -146,6 +144,4 @@
+   uint16_t newIndex;
+ } tableOrderRec;
+ 
+-#pragma pack(pop)
+-
+ #endif

+ 81 - 0
woff/woff.spec

@@ -0,0 +1,81 @@
+##
+##  woff.spec -- OpenPKG RPM Package Specification
+##  Copyright (c) 2000-2010 OpenPKG Foundation e.V. <http://openpkg.net/>
+##
+##  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:         woff
+Summary:      WOFF Font Format Tools
+URL:          http://people.mozilla.org/~jkew/woff/
+Vendor:       Jonathan Kew
+Packager:     OpenPKG Foundation e.V.
+Distribution: OpenPKG Community
+Class:        EVAL
+Group:        Graphics
+License:      MPL/GPL
+Version:      20091004
+Release:      20100314
+
+#   list of sources
+Source0:      http://download.openpkg.org/components/versioned/woff/woff-code-%{version}.zip
+Patch0:       woff.patch
+
+#   build information
+BuildPreReq:  OpenPKG, openpkg >= 20100101
+PreReq:       OpenPKG, openpkg >= 20100101
+BuildPreReq:  zlib
+PreReq:       zlib
+
+%description
+    This is a small utility to convert existing TrueType/OpenType fonts
+    (based on the SFNT format) to Mozilla's new Web Open Font Format
+    (WOFF) format.
+
+%track
+    prog woff = {
+        version   = %{version}
+        url       = http://download.openpkg.org/components/versioned/woff/
+        regex     = woff-code-(__VER__)\.zip
+    }
+
+%prep
+    %setup -q -c
+    %patch -p0
+
+%build
+    %{l_make} %{l_mflags} \
+        CC="%{l_cc}" \
+        CFLAGS="%{l_cflags -O} %{l_cppflags}" \
+        LDFLAGS="%{l_ldflags}"
+
+%install
+    %{l_shtool} mkdir -f -p -m 755 \
+        $RPM_BUILD_ROOT%{l_prefix}/bin
+    %{l_shtool} install -c -s -m 755 \
+        sfnt2woff $RPM_BUILD_ROOT%{l_prefix}/bin/
+    %{l_shtool} install -c -s -m 755 \
+        woff2sfnt $RPM_BUILD_ROOT%{l_prefix}/bin/
+    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
+
+%files -f files
+
+%clean
+