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