doxygen/doxywizard.spec

147 lines
4.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package doxywizard
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: doxywizard
BuildRequires: bison flex gcc-c++ libjpeg-devel
- update to 1.7.5: * id 641904: Function in the call graphs are now shown based on first appearance rather then alphabetical order. * id 616213: When customizing the HTML header $title now only generates the title excluding the project name (which can still be added using $projectname) * Improved the look of the class index: all items now have equal spacing. * New option INTERACTIVE_SVG which when set to YES in combination with DOT_IMAGE_FORMAT=svg will make doxygen generate interactive SVG diagrams that support zooming and panning via the mouse (only for large graphs). * Added support for the Tcl programming language (thanks to Rene Zaumseil and Samuel Bentley for the patch). * Added @copyright command. * added option MATHJAX_EXTENSIONS to provide additional extensions for MathJax (thanks to David Munger for the patch). * added option INLINE_SIMPLE_STRUCTS which when enabled shows the fields of simple classes and structs (with only public data fields) as a table and inline in context (file/group/namespace/class) provided this context is documented. * When using the server based search engine (SEARCHENGINE=YES and SERVER_BASED_SEARCH=YES) doxygen now advertises a opensearch provider for your project, that allows integrating the search directly in the search field of the browser (thanks to Phil Lello for the patch). * id 503239: Added new option CITE_BIB_FILES and LATEX_BIB_STYLE and a new command \cite, allowing you to make references to literature (as defined in one or more .bib files). This also works for output formats other than LaTeX. The tool bibtex is required for this to work though. Thanks to David Munger for the initial patch upon which this feature is based. * PHP namespaces are now shown as A\B in the output. OBS-URL: https://build.opensuse.org/package/show/devel:tools/doxygen?expand=0&rev=32
2011-08-15 11:38:04 +02:00
Version: 1.7.5
Release: 2
Requires: doxygen = %{version}
License: GPLv2+
Group: Development/Tools/Doc Generators
Summary: Graphical User Interface for Doxygen
Url: http://www.stack.nl/~dimitri/doxygen/
Source: doxygen-%{version}.src.tar.bz2
Source1: doxywizard.desktop
Patch: doxygen-1.5.9-64archs.patch
Patch2: %{name}-1.5.9-flex.patch
Patch4: doxygen-1.5.9-arm.patch
Patch5: doxygen-1.5.9-man.patch
Patch6: doxygen-1.7.1-qtdir.patch
Patch100: doxygen-1.7.0-warnings.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#########################################################################################
# SuSE, openSUSE
#########################################################################################
%if 0%{?suse_version}
BuildRequires: libqt4-devel >= 4.3
BuildRequires: update-desktop-files
%define man_ext gz
%endif
#########################################################################################
# Fedora, RHEL or CentOS
#########################################################################################
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
BuildRequires: qt4-devel >= 4.3.0
BuildRequires: desktop-file-utils
%define man_ext gz
%endif
#########################################################################################
# Mandrake, Mandriva
#########################################################################################
%if 0%{?mandriva_version} || 0%{?mdkversion}
BuildRequires: libqt4-devel >= 4.3
Requires(post): desktop-file-utils
Requires(postun): desktop-file-utils
%define man_ext lzma
%endif
%description
Doxywizard is a graphical front-end to read/edit/write doxygen
configuration files.
Authors:
--------
Dimitri van Heesch <dimitri@stack.nl>
%prep
%setup -q -n doxygen-%{version}
%patch
%patch2
%patch4
%patch5
%if 0%{?suse_version}
%patch6
%endif
%patch100
%build
%if 0%{?suse_version}
export QTDIR=/usr
%endif
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
export QTDIR=%{_libdir}/qt4/
export PATH=${QTDIR}/bin:${PATH}
%endif
%if 0%{?mandriva_version} || 0%{?mdkversion}
export QTDIR=/usr/lib/qt4/
%if 0%{?mandriva_version} <= 2009 || 0%{?mdkversion} <= 200900
export PATH=${QTDIR}/bin:${PATH}
%endif
%endif
mintoc=
%ifarch ppc64
mintoc="-DENGLISH_ONLY"
%endif
sed -i~ "/^TMAKE_CFLAGS_RELEASE.*/s@^.*@TMAKE_CFLAGS_RELEASE = $RPM_OPT_FLAGS $mintoc@" tmake/lib/linux-g++/tmake.conf
./configure --with-doxywizard
make %{?jobs:-j%jobs}
%install
make install INSTALL=$RPM_BUILD_ROOT/usr
rm -f $RPM_BUILD_ROOT/usr/bin/{doxygen,doxytag}
%if 0%{?suse_version}
%suse_update_desktop_file -i doxywizard Development Documentation
%endif
%if 0%{?fedora_version}
desktop-file-install --dir=%{buildroot}%{_datadir}/applications/ --add-category Development --add-category Documentation %{SOURCE1}
%endif
%if 0%{?mandriva_version} || 0%{?mdkversion}
install -d -m 755 %{buildroot}%{_datadir}/applications/
install %{SOURCE1} %{buildroot}%{_datadir}/applications/
%endif
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{doxygen,doxytag}.1
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%attr(755,root,root) /usr/bin/doxywizard
%{_datadir}/applications/doxywizard.desktop
%attr(444,root,root) %doc %{_mandir}/man1/doxywizard.1.%{man_ext}
%if 0%{?mandriva_version} || 0%{?mdkversion}
%post
%update_menus
%{update_desktop_database}
%endif
%if 0%{?mandriva_version} || 0%{?mdkversion}
%postun
%clean_menus
%{clean_desktop_database}
%endif
%changelog