doxygen/doxygen.spec

changeset 217
ccd470e665aa
child 218
11637477f8ce
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/doxygen/doxygen.spec	Sat Oct 03 16:12:58 2009 +0200
     1.3 @@ -0,0 +1,107 @@
     1.4 +##
     1.5 +##  doxygen.spec -- OpenPKG RPM Package Specification
     1.6 +##  Copyright (c) 2000-2009 OpenPKG Foundation e.V. <http://openpkg.net/>
     1.7 +##
     1.8 +##  Permission to use, copy, modify, and distribute this software for
     1.9 +##  any purpose with or without fee is hereby granted, provided that
    1.10 +##  the above copyright notice and this permission notice appear in all
    1.11 +##  copies.
    1.12 +##
    1.13 +##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    1.14 +##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    1.15 +##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    1.16 +##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    1.17 +##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    1.18 +##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    1.19 +##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    1.20 +##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    1.21 +##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    1.22 +##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    1.23 +##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    1.24 +##  SUCH DAMAGE.
    1.25 +##
    1.26 +
    1.27 +#   package information
    1.28 +Name:         doxygen
    1.29 +Summary:      Source Code Documentation Extraction Tool
    1.30 +URL:          http://www.doxygen.org/
    1.31 +Vendor:       Dimitri van Heesch
    1.32 +Packager:     OpenPKG Foundation e.V.
    1.33 +Distribution: OpenPKG Community
    1.34 +Class:        PLUS
    1.35 +Group:        Development
    1.36 +License:      GPL
    1.37 +Version:      1.6.1
    1.38 +Release:      20090825
    1.39 +
    1.40 +#   list of sources
    1.41 +Source0:      ftp://ftp.stack.nl/pub/users/dimitri/doxygen-%{version}.src.tar.gz
    1.42 +Patch0:       doxygen.patch
    1.43 +
    1.44 +#   build information
    1.45 +Prefix:       %{l_prefix}
    1.46 +BuildRoot:    %{l_buildroot}
    1.47 +BuildPreReq:  OpenPKG, openpkg >= 20040130, make, flex, bison, perl, gcc, gcc::with_cxx = yes
    1.48 +PreReq:       OpenPKG, openpkg >= 20040130
    1.49 +BuildPreReq:  libiconv
    1.50 +PreReq:       libiconv
    1.51 +AutoReq:      no
    1.52 +AutoReqProv:  no
    1.53 +
    1.54 +%description
    1.55 +    Doxygen is a documentation system for C, C++, Java, and IDL.
    1.56 +
    1.57 +%track
    1.58 +    prog doxygen = {
    1.59 +        version   = %{version}
    1.60 +        url       = ftp://ftp.stack.nl/pub/users/dimitri/
    1.61 +        regex     = doxygen-(\d+\.\d+(\.\d+)?)\.src\.tar\.gz
    1.62 +    }
    1.63 +
    1.64 +%prep
    1.65 +    %setup -q
    1.66 +    %patch -p0
    1.67 +
    1.68 +%build
    1.69 +    opt=""
    1.70 +    case "%{l_platform -t}" in
    1.71 +        *-freebsd* ) opt="--platform freebsd-g++" ;;
    1.72 +        *-linux*   ) opt="--platform linux-g++"   ;;
    1.73 +        *-sunos*   ) opt="--platform solaris-g++" ;;
    1.74 +    esac
    1.75 +    CC="%{l_cc}" \
    1.76 +    CXX="%{l_cxx}" \
    1.77 +    CFLAGS="%{l_cflags -O}" \
    1.78 +    CXXFLAGS="%{l_cxxflags -O}" \
    1.79 +    %{l_bash} ./configure \
    1.80 +        --prefix %{l_prefix} \
    1.81 +        --perl %{l_prefix}/bin/perl \
    1.82 +        --make %{l_prefix}/bin/make \
    1.83 +        --install %{l_prefix}/bin/install \
    1.84 +        --release \
    1.85 +        --english-only \
    1.86 +        $opt
    1.87 +    ( cd src
    1.88 +      %{l_make} %{l_mflags} Makefile.libdoxycfg Makefile.doxygen
    1.89 +    ) || exit $?
    1.90 +    %{l_shtool} subst \
    1.91 +        -e 's;\(INCPATH[ 	]=.*\)$;\1 %{l_cppflags};' \
    1.92 +        src/Makefile.libdoxycfg
    1.93 +    %{l_shtool} subst \
    1.94 +        -e 's;\(LIBS[ 	]=.*\)$;\1 %{l_ldflags} -liconv;' \
    1.95 +        src/Makefile.doxygen
    1.96 +    %{l_make} %{l_mflags -O}
    1.97 +
    1.98 +%install
    1.99 +    rm -rf $RPM_BUILD_ROOT
   1.100 +    %{l_make} %{l_mflags} install \
   1.101 +        INSTALL=$RPM_BUILD_ROOT%{l_prefix} \
   1.102 +        INSTTOOL="%{l_shtool} install" || true
   1.103 +    strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
   1.104 +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
   1.105 +
   1.106 +%files -f files
   1.107 +
   1.108 +%clean
   1.109 +    rm -rf $RPM_BUILD_ROOT
   1.110 +

mercurial