Changeset 1650


Ignore:
Timestamp:
Jun 12, 2019, 7:14:04 PM (6 years ago)
Author:
Silvan Scherrer
Message:

spec: doxygen: Release version 1.8.15-1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified spec/trunk/SPECS/doxygen.spec

    r940 r1650  
    1 #define svn_url     e:/trees/doxygen/trunk
    2 %define svn_url     http://svn.netlabs.org/repos/ports/doxygen/trunk
    3 %define svn_rev     1956
    4 
    51# set this to 1 to enable
    62%global with_docs 0
    7 %global with_search 0
     3%global with_latex 0
     4%global xapian_core_support OFF
    85
    96
    107Summary: A documentation system for C/C++
    118Name:    doxygen
    12 Version: 1.8.13
    13 Release: 2%{?dist}
     9Version: 1.8.15
     10Release: 1%{?dist}
    1411
    1512# No version is specified.
    1613License: GPL+
    17 Url: http://www.stack.nl/~dimitri/doxygen/index.html
     14Url: http://www.doxygen.nl
    1815Vendor: bww bitwise works GmbH
    19 Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
     16%scm_source  github http://github.com/bitwiseworks/%{name}-os2 %{version}-os2
    2017
     18BuildRequires: %{_bindir}/python2
    2119
    22 BuildRequires: perl
     20BuildRequires: gcc perl
    2321%if %{with_docs}
    2422BuildRequires: tex(dvips)
     
    3331BuildRequires: /@unixroot/usr/bin/epstopdf
    3432BuildRequires: texlive-epstopdf
     33BuildRequires: graphviz
    3534%endif
    3635BuildRequires: ghostscript
     
    3938BuildRequires: bison
    4039BuildRequires: cmake
    41 #BuildRequires: graphviz
    42 %if %{with_search}
     40%if %{xapian_core_support} == "ON"
    4341BuildRequires: xapian-core-devel
     42BuildRequires: zlib-devel
    4443%endif
    4544Requires: perl
     45#Requires: graphviz
    4646
    4747%description
     
    5656Requires: %{name} = %{version}-%{release}
    5757BuildRequires: libqt4-devel
     58
    5859%description doxywizard
    5960Doxywizard is a GUI for creating and editing configuration files that
    6061are used by doxygen.
    6162
     63%if %{with_latex}
     64%package latex
     65Summary: Support for producing latex/pdf output from doxygen
     66Requires: %{name} = %{epoch}:%{version}-%{release}
     67Requires: tex(latex)
     68Requires: tex(multirow.sty)
     69Requires: tex(sectsty.sty)
     70Requires: tex(tocloft.sty)
     71Requires: tex(xtab.sty)
     72Requires: tex(import.sty)
     73Requires: tex(tabu.sty)
     74Requires: tex(appendix.sty)
     75Requires: tex(newunicodechar.sty)
     76Requires: texlive-epstopdf-bin 
     77
     78%description latex
     79%{summary}.
     80%endif
    6281
    6382%debug_package
     
    6584
    6685%prep
    67 %if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{!?svn_rev):0}
    68 %setup -q
    69 %else
    70 %setup -n "%{name}-%{version}" -Tc
    71 svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
    72 rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
    73 (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
    74 %endif
     86%scm_setup
    7587
    7688
     
    7991export VENDOR="%{vendor}"
    8092
    81 mkdir -p build
    82 cd build
     93mkdir -p %{_build}
     94cd %{_build}
    8395#      -DBUILD_SHARED_LIBS=OFF \
    8496%cmake \
     97%if %{with_docs}
     98      -Dbuild_doc=ON \
     99%lse
     100      -Dbuild_doc=OFF \
     101%endif
    85102      -Dbuild_wizard=ON \
    86103      -Dbuild_xmlparser=ON \
     104      -Dbuild_search=%{xapian_core_support} \
    87105      -DMAN_INSTALL_DIR=%{_mandir}/man1 \
    88106      -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
    89 %if %{with_docs}
    90       -Dbuild_doc=ON \
    91 %endif
    92 %if %{with_search}
    93       -Dbuild_search=ON \
    94 %endif
    95107      ..
    96108cd ..
    97109
    98110%if %{with_docs}
    99 make docs -C build
     111make docs -C %{_build}
    100112%endif
    101 make -C build
     113make -C %{_build}
    102114
    103115
    104116%install
    105 make install DESTDIR=%{buildroot} -C build
     117make install DESTDIR=%{buildroot} -C %{_build}
    106118
    107119# install man pages
    108 %if %{with_docs}
    109120mkdir -p %{buildroot}/%{_mandir}/man1
    110121cp doc/*.1 %{buildroot}/%{_mandir}/man1/
     122
     123%if %{xapian_core_support} == "OFF"
     124rm -f %{buildroot}/%{_mandir}/man1/doxyindexer.1* %{buildroot}/%{_mandir}/man1/doxysearch.1*
    111125%endif
    112126
     
    114128rm -rf %{buildroot}/%{_docdir}/packages
    115129
     130%check
     131#still disabled as we dont have bibtext tools. and one test needs it
     132#make tests -C %{_build}
    116133
    117134%files
    118135%doc LANGUAGE.HOWTO README.md
     136%license LICENSE
    119137%if %{with_docs}
    120 %doc build/latex/doxygen_manual.pdf
    121 %doc build/html
     138%if %{xapian_core_support} == "ON"
     139%{_bindir}/doxyindexer.exe
     140%{_bindir}/doxysearch*
     141%exclude %{_bindir}/*.dbg
     142%endif
    122143%endif
    123144%{_bindir}/doxygen.exe
    124 %if %{with_docs}
    125 %{_bindir}/doxyindexer.exe
    126 %{_bindir}/doxysearch*.cgi
    127 %endif
    128 %if %{with_docs}
    129145%{_mandir}/man1/doxygen.1*
     146%if %{xapian_core_support} == "ON"
    130147%{_mandir}/man1/doxyindexer.1*
    131148%{_mandir}/man1/doxysearch.1*
     
    135152%files doxywizard
    136153%{_bindir}/doxywizard.exe
    137 %if %{with_docs}
    138154%{_mandir}/man1/doxywizard*
     155
     156%if %{with_latex}
     157%files latex
     158# intentionally left blank
    139159%endif
    140160
     161%changelog
     162* Wed Jun 12 2019 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.8.15-1
     163- move source to github
     164- use scm_ macros
     165- update to version 1.8.15
    141166
    142 %changelog
    143167* Fri Jan 27 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.8.13-2
    144168- add buildlevel to the exe
Note: See TracChangeset for help on using the changeset viewer.