Wed, 13 Feb 2013 21:38:42 +0100
Update package version to upstream vendor new release.
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@218 | 35 | Release: 20091001 |
michael@218 | 36 | |
michael@218 | 37 | # build options |
michael@218 | 38 | %option with_qt no |
michael@217 | 39 | |
michael@217 | 40 | # list of sources |
michael@217 | 41 | Source0: ftp://ftp.stack.nl/pub/users/dimitri/doxygen-%{version}.src.tar.gz |
michael@217 | 42 | |
michael@217 | 43 | # build information |
michael@217 | 44 | Prefix: %{l_prefix} |
michael@217 | 45 | BuildRoot: %{l_buildroot} |
michael@217 | 46 | BuildPreReq: OpenPKG, openpkg >= 20040130, make, flex, bison, perl, gcc, gcc::with_cxx = yes |
michael@217 | 47 | PreReq: OpenPKG, openpkg >= 20040130 |
michael@217 | 48 | BuildPreReq: libiconv |
michael@217 | 49 | PreReq: libiconv |
michael@218 | 50 | %if "%{with_qt}" == "yes" |
michael@218 | 51 | BuildPreReq: qt >= 4 |
michael@218 | 52 | PreReq: qt >= 4 |
michael@218 | 53 | %endif |
michael@217 | 54 | AutoReq: no |
michael@217 | 55 | AutoReqProv: no |
michael@217 | 56 | |
michael@217 | 57 | %description |
michael@217 | 58 | Doxygen is a documentation system for C, C++, Java, and IDL. |
michael@217 | 59 | |
michael@217 | 60 | %track |
michael@217 | 61 | prog doxygen = { |
michael@217 | 62 | version = %{version} |
michael@217 | 63 | url = ftp://ftp.stack.nl/pub/users/dimitri/ |
michael@217 | 64 | regex = doxygen-(\d+\.\d+(\.\d+)?)\.src\.tar\.gz |
michael@217 | 65 | } |
michael@217 | 66 | |
michael@217 | 67 | %prep |
michael@217 | 68 | %setup -q |
michael@218 | 69 | %{l_shtool} subst \ |
michael@218 | 70 | -e 's;\(\$(INSTALL)\);$(DESTDIR)/\1;g' \ |
michael@218 | 71 | addon/doxywizard/Makefile.in |
michael@218 | 72 | %{l_shtool} subst \ |
michael@218 | 73 | -e 's;\($(DESTDIR)\)/;\1;g' \ |
michael@218 | 74 | addon/doxywizard/Makefile.in \ |
michael@218 | 75 | Makefile.in |
michael@217 | 76 | |
michael@217 | 77 | %build |
michael@217 | 78 | opt="" |
michael@217 | 79 | case "%{l_platform -t}" in |
michael@217 | 80 | *-freebsd* ) opt="--platform freebsd-g++" ;; |
michael@217 | 81 | *-linux* ) opt="--platform linux-g++" ;; |
michael@217 | 82 | *-sunos* ) opt="--platform solaris-g++" ;; |
michael@217 | 83 | esac |
michael@217 | 84 | CC="%{l_cc}" \ |
michael@217 | 85 | CXX="%{l_cxx}" \ |
michael@217 | 86 | CFLAGS="%{l_cflags -O}" \ |
michael@217 | 87 | CXXFLAGS="%{l_cxxflags -O}" \ |
michael@218 | 88 | %if "%{with_qt}" == "yes" |
michael@218 | 89 | QTDIR="%{l_prefix}" \ |
michael@218 | 90 | %endif |
michael@217 | 91 | %{l_bash} ./configure \ |
michael@217 | 92 | --prefix %{l_prefix} \ |
michael@217 | 93 | --perl %{l_prefix}/bin/perl \ |
michael@217 | 94 | --make %{l_prefix}/bin/make \ |
michael@217 | 95 | --install %{l_prefix}/bin/install \ |
michael@217 | 96 | --release \ |
michael@217 | 97 | --english-only \ |
michael@218 | 98 | %if "%{with_qt}" == "yes" |
michael@218 | 99 | --with-doxywizard \ |
michael@218 | 100 | %endif |
michael@217 | 101 | $opt |
michael@217 | 102 | ( cd src |
michael@217 | 103 | %{l_make} %{l_mflags} Makefile.libdoxycfg Makefile.doxygen |
michael@217 | 104 | ) || exit $? |
michael@217 | 105 | %{l_shtool} subst \ |
michael@217 | 106 | -e 's;\(INCPATH[ ]=.*\)$;\1 %{l_cppflags};' \ |
michael@217 | 107 | src/Makefile.libdoxycfg |
michael@217 | 108 | %{l_shtool} subst \ |
michael@217 | 109 | -e 's;\(LIBS[ ]=.*\)$;\1 %{l_ldflags} -liconv;' \ |
michael@217 | 110 | src/Makefile.doxygen |
michael@217 | 111 | %{l_make} %{l_mflags -O} |
michael@217 | 112 | |
michael@217 | 113 | %install |
michael@217 | 114 | rm -rf $RPM_BUILD_ROOT |
michael@217 | 115 | %{l_make} %{l_mflags} install \ |
michael@218 | 116 | DESTDIR=$RPM_BUILD_ROOT \ |
michael@218 | 117 | INSTALL=%{l_prefix} \ |
michael@218 | 118 | MAN1DIR=man/man1 \ |
michael@218 | 119 | INSTTOOL="%{l_shtool} install -c" || true |
michael@217 | 120 | strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true |
michael@217 | 121 | %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
michael@217 | 122 | |
michael@217 | 123 | %files -f files |
michael@217 | 124 | |
michael@217 | 125 | %clean |
michael@217 | 126 | rm -rf $RPM_BUILD_ROOT |
michael@217 | 127 |