OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /e/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   27-Jun-2004 13:07:42
  Branch: HEAD                             Handle: -NONE-

  Modified files:
    openpkg-src/js          js.spec

  Log:
    add fdlibm part and provide pkgconfig glue

  Summary:
    Revision    Changes     Path
    1.2         +23 -2      openpkg-src/js/js.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/js/js.spec
  ============================================================================
  $ cvs diff -u -r1.1 -r1.2 js.spec
  --- openpkg-src/js/js.spec    27 Jun 2004 10:25:40 -0000      1.1
  +++ openpkg-src/js/js.spec    27 Jun 2004 11:07:41 -0000      1.2
  @@ -42,6 +42,7 @@
   
   #   list of sources
   Source0:      
http://ftp.mozilla.org/pub/mozilla.org/js/js-%{V_major}-%{V_minor}.tar.gz
  +Source1:      js.pc
   
   #   build information
   Prefix:       %{l_prefix}
  @@ -71,6 +72,7 @@
   
   %build
       ( cd js/src
  +      #   prepare build environment
         cp Makefile.ref Makefile
         case "%{l_platform -t}" in
             *-freebsd* ) cp config/Linux_All.mk config/`uname -s``uname -r`.mk ;;
  @@ -78,6 +80,8 @@
         %{l_shtool} subst \
             -e 's;^\(TARGETS.*\)$(SHARED_LIBRARY)\(.*\)$;\1\2;' \
             rules.mk
  +
  +      #   build components
         %{l_make} %{l_mflags} \
             CC="%{l_cc}" \
             XCFLAGS="%{l_cppflags} %{l_cflags -O}" \
  @@ -87,11 +91,15 @@
       ) || exit $?
   
   %install
  +    #   create installation hierarchy
       rm -rf $RPM_BUILD_ROOT
       %{l_shtool} mkdir -f -p -m 755 \
           $RPM_BUILD_ROOT%{l_prefix}/bin \
           $RPM_BUILD_ROOT%{l_prefix}/include/js \
  -        $RPM_BUILD_ROOT%{l_prefix}/lib
  +        $RPM_BUILD_ROOT%{l_prefix}/lib \
  +        $RPM_BUILD_ROOT%{l_prefix}/lib/pkgconfig
  +
  +    #   install vendor components
       ( cd js/src
         %{l_shtool} install -c -s -m 755 \
             *.OBJ/js $RPM_BUILD_ROOT%{l_prefix}/bin/
  @@ -102,8 +110,21 @@
             %{l_shtool} install -c -m 644 \
                 $h $RPM_BUILD_ROOT%{l_prefix}/include/js/
         done
  +      %{l_shtool} install -c -m 644 \
  +          fdlibm/*.OBJ/libfdm.a $RPM_BUILD_ROOT%{l_prefix}/lib/libjsfdlibm.a
  +      %{l_shtool} install -c -m 644 \
  +          fdlibm/fdlibm.h $RPM_BUILD_ROOT%{l_prefix}/include/js/
       ) || exit $?
  -    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  +
  +    #   install pkgconfig(1) file
  +    %{l_shtool} install -c -m 644 %{l_value -s -a} \
  +        -e 's;@version@;%{version};' \
  +        %{SOURCE js.pc} $RPM_BUILD_ROOT%{l_prefix}/lib/pkgconfig/
  +
  +    #   determine installation files
  +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  +        %{l_files_std} \
  +        '%not %dir %{l_prefix}/lib/pkgconfig'
   
   %files -f files
   
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to