doxygen/doxygen.spec

Sat, 03 Oct 2009 16:12:58 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Oct 2009 16:12:58 +0200
changeset 217
ccd470e665aa
child 218
11637477f8ce
permissions
-rw-r--r--

Import package vendor original spec for necessary manipulations.

michael@217 1 ##
michael@217 2 ## doxygen.spec -- OpenPKG RPM Package Specification
michael@217 3 ## Copyright (c) 2000-2009 OpenPKG Foundation e.V. <http://openpkg.net/>
michael@217 4 ##
michael@217 5 ## Permission to use, copy, modify, and distribute this software for
michael@217 6 ## any purpose with or without fee is hereby granted, provided that
michael@217 7 ## the above copyright notice and this permission notice appear in all
michael@217 8 ## copies.
michael@217 9 ##
michael@217 10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
michael@217 11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
michael@217 12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
michael@217 13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
michael@217 14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
michael@217 15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
michael@217 16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
michael@217 17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
michael@217 18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
michael@217 19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
michael@217 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
michael@217 21 ## SUCH DAMAGE.
michael@217 22 ##
michael@217 23
michael@217 24 # package information
michael@217 25 Name: doxygen
michael@217 26 Summary: Source Code Documentation Extraction Tool
michael@217 27 URL: http://www.doxygen.org/
michael@217 28 Vendor: Dimitri van Heesch
michael@217 29 Packager: OpenPKG Foundation e.V.
michael@217 30 Distribution: OpenPKG Community
michael@217 31 Class: PLUS
michael@217 32 Group: Development
michael@217 33 License: GPL
michael@217 34 Version: 1.6.1
michael@217 35 Release: 20090825
michael@217 36
michael@217 37 # list of sources
michael@217 38 Source0: ftp://ftp.stack.nl/pub/users/dimitri/doxygen-%{version}.src.tar.gz
michael@217 39 Patch0: doxygen.patch
michael@217 40
michael@217 41 # build information
michael@217 42 Prefix: %{l_prefix}
michael@217 43 BuildRoot: %{l_buildroot}
michael@217 44 BuildPreReq: OpenPKG, openpkg >= 20040130, make, flex, bison, perl, gcc, gcc::with_cxx = yes
michael@217 45 PreReq: OpenPKG, openpkg >= 20040130
michael@217 46 BuildPreReq: libiconv
michael@217 47 PreReq: libiconv
michael@217 48 AutoReq: no
michael@217 49 AutoReqProv: no
michael@217 50
michael@217 51 %description
michael@217 52 Doxygen is a documentation system for C, C++, Java, and IDL.
michael@217 53
michael@217 54 %track
michael@217 55 prog doxygen = {
michael@217 56 version = %{version}
michael@217 57 url = ftp://ftp.stack.nl/pub/users/dimitri/
michael@217 58 regex = doxygen-(\d+\.\d+(\.\d+)?)\.src\.tar\.gz
michael@217 59 }
michael@217 60
michael@217 61 %prep
michael@217 62 %setup -q
michael@217 63 %patch -p0
michael@217 64
michael@217 65 %build
michael@217 66 opt=""
michael@217 67 case "%{l_platform -t}" in
michael@217 68 *-freebsd* ) opt="--platform freebsd-g++" ;;
michael@217 69 *-linux* ) opt="--platform linux-g++" ;;
michael@217 70 *-sunos* ) opt="--platform solaris-g++" ;;
michael@217 71 esac
michael@217 72 CC="%{l_cc}" \
michael@217 73 CXX="%{l_cxx}" \
michael@217 74 CFLAGS="%{l_cflags -O}" \
michael@217 75 CXXFLAGS="%{l_cxxflags -O}" \
michael@217 76 %{l_bash} ./configure \
michael@217 77 --prefix %{l_prefix} \
michael@217 78 --perl %{l_prefix}/bin/perl \
michael@217 79 --make %{l_prefix}/bin/make \
michael@217 80 --install %{l_prefix}/bin/install \
michael@217 81 --release \
michael@217 82 --english-only \
michael@217 83 $opt
michael@217 84 ( cd src
michael@217 85 %{l_make} %{l_mflags} Makefile.libdoxycfg Makefile.doxygen
michael@217 86 ) || exit $?
michael@217 87 %{l_shtool} subst \
michael@217 88 -e 's;\(INCPATH[ ]=.*\)$;\1 %{l_cppflags};' \
michael@217 89 src/Makefile.libdoxycfg
michael@217 90 %{l_shtool} subst \
michael@217 91 -e 's;\(LIBS[ ]=.*\)$;\1 %{l_ldflags} -liconv;' \
michael@217 92 src/Makefile.doxygen
michael@217 93 %{l_make} %{l_mflags -O}
michael@217 94
michael@217 95 %install
michael@217 96 rm -rf $RPM_BUILD_ROOT
michael@217 97 %{l_make} %{l_mflags} install \
michael@217 98 INSTALL=$RPM_BUILD_ROOT%{l_prefix} \
michael@217 99 INSTTOOL="%{l_shtool} install" || true
michael@217 100 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
michael@217 101 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
michael@217 102
michael@217 103 %files -f files
michael@217 104
michael@217 105 %clean
michael@217 106 rm -rf $RPM_BUILD_ROOT
michael@217 107

mercurial