OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall Root: /v/openpkg/cvs Email: [EMAIL PROTECTED] Module: openpkg-src Date: 22-Jun-2006 15:38:18 Branch: HEAD Handle: 2006062214381800 Added files: openpkg-src/lcdf-typetools lcdf-typetools.spec Log: new package: lcdf-typetools 2.38 (LCDF Typegraphy Tools) Summary: Revision Changes Path 1.1 +148 -0 openpkg-src/lcdf-typetools/lcdf-typetools.spec ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-src/lcdf-typetools/lcdf-typetools.spec ============================================================================ $ cvs diff -u -r0 -r1.1 lcdf-typetools.spec --- /dev/null 2006-06-22 15:38:13 +0200 +++ lcdf-typetools.spec 2006-06-22 15:38:18 +0200 @@ -0,0 +1,148 @@ +## +## lcdf-typetools.spec -- OpenPKG RPM Package Specification +## Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/> +## Copyright (c) 2000-2006 Ralf S. Engelschall <http://engelschall.com/> +## +## 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 version +%define V_typetools 2.38 +%define V_t1utils 1.32 +%define V_autofont 0.94 + +# package information +Name: lcdf-typetools +Summary: LCDF Typegraphy Tools +URL: http://www.lcdf.org/type/ +Vendor: Eddie Kohler +Packager: OpenPKG +Distribution: OpenPKG +Class: EVAL +Group: Text +License: GPL+MIT-style +Version: %{V_typetools} +Release: 20060622 + +# list of sources +Source0: http://www.lcdf.org/type/lcdf-typetools-%{V_typetools}.tar.gz +Source1: http://www.lcdf.org/type/t1utils-%{V_t1utils}.tar.gz +Source2: http://www.lcdf.org/type/Autofont-%{V_autofont}.tar.gz + +# build information +Prefix: %{l_prefix} +BuildRoot: %{l_buildroot} +BuildPreReq: OpenPKG, openpkg >= 20040130, perl, perl-openpkg, gcc +PreReq: OpenPKG, openpkg >= 20040130, perl +AutoReq: no +AutoReqProv: no + +%description + The LCDF Typetools package contains several command-line programs + for manipulating PostScript Type 1 and PostScript-flavored + OpenType fonts. It also contains additional command-line tools for + dealing with Type 1 fonts from a revision of I. Lee Hetheringtons + beloved t1utils. Finally, it contains Autofont, a set of tools for + automating the font generation for TeX. + +%track + prog lcdf-typetools:typetools = { + version = %{V_typetools} + url = http://www.lcdf.org/type/ + regex = lcdf-typetools-(__VER__)\.tar\.gz + } + prog lcdf-typetools:t1utils = { + version = %{V_t1utils} + url = http://www.lcdf.org/type/ + regex = t1utils-(__VER__)\.tar\.gz + } + prog lcdf-typetools:autofont = { + version = %{V_autofont} + url = http://www.lcdf.org/type/ + regex = Autofont-(__VER__)\.tar\.gz + } + +%prep + %setup -q -c + %setup -q -T -D -a1 + %setup -q -T -D -a2 + +%build + # build LCDF TypeTools + ( cd lcdf-typetools-%{V_typetools} + CC="%{l_cc}" \ + CXX="%{l_cxx}" \ + CFLAGS="%{l_cflags -O}" \ + CXXFLAGS="%{l_cxxflags -O}" \ + CPPFLAGS="%{l_cppflags}" \ + LDFLAGS="%{l_ldflags}" \ + ./configure \ + --prefix=%{l_prefix} + %{l_make} %{l_mflags -O} + ) || exit $? + + # build LCDF T1Utils + ( cd t1utils-%{V_t1utils} + CC="%{l_cc}" \ + CFLAGS="%{l_cflags -O}" \ + CPPFLAGS="%{l_cppflags}" \ + LDFLAGS="%{l_ldflags}" \ + ./configure \ + --prefix=%{l_prefix} + %{l_make} %{l_mflags -O} + ) || exit $? + + # build LCDF AutoFont + %{l_prefix}/bin/perl-openpkg prepare + ( cd Autofont-%{V_autofont} + %{l_prefix}/bin/perl-openpkg configure + %{l_prefix}/bin/perl-openpkg build + ) || exit $? + +%install + rm -rf $RPM_BUILD_ROOT + + # install LCDF TypeTools + ( cd lcdf-typetools-%{V_typetools} + %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" + ) || exit $? + + # install LCDF T1Utils + ( cd t1utils-%{V_t1utils} + %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" + ) || exit $? + + # install LCDF AutoFont + ( cd Autofont-%{V_autofont} + %{l_prefix}/bin/perl-openpkg install + ) || exit $? + + # post-adjust installation area + %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup + strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true + + # determine installation files + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ + %{l_files_std} `cat perl-openpkg-files` + +%files -f files + +%clean + rm -rf $RPM_BUILD_ROOT + @@ . ______________________________________________________________________ The OpenPKG Project www.openpkg.org CVS Repository Commit List openpkg-cvs@openpkg.org