SHA256
8
0
forked from pool/doxygen

- updated to 1.8.10

* Change the build system to use cmake.
  * Add support for basic XML syntax highlighting
  * Added documentation for ``` style fenced code block and more 
    robust parsing
  * Added function arguments to the LaTeX toc
  * Added support for language codes
  * etc. see http://www.stack.nl/~dimitri/doxygen/manual/changelog.html
- removed unneded patches:
  - doxygen-1.5.9-64archs.patch
  - doxygen-1.5.9-man.patch
  - doxygen-1.7.0-modify_footer.patch renamed to doxygen-modify_footer.patch

- updated to 1.8.10, see doxygen.changes
- move tests to doxygen.spec
- remove doxywizard-1.5.9-flex.patch

OBS-URL: https://build.opensuse.org/package/show/devel:tools/doxygen?expand=0&rev=87
This commit is contained in:
2015-08-17 16:12:41 +00:00
committed by Git OBS Bridge
parent 402355f25d
commit b94a24c634
9 changed files with 100 additions and 195 deletions

View File

@@ -17,7 +17,7 @@
Name: doxywizard
Version: 1.8.9.1
Version: 1.8.10
Release: 0
Summary: Graphical User Interface for Doxygen
License: GPL-2.0+
@@ -25,32 +25,15 @@ Group: Development/Tools/Doc Generators
Url: http://www.stack.nl/~dimitri/doxygen/
Source: http://ftp.stack.nl/pub/users/dimitri/doxygen-%{version}.src.tar.gz
Source1: doxywizard.desktop
Patch0: doxygen-1.5.9-64archs.patch
Patch2: %{name}-1.5.9-flex.patch
Patch5: doxygen-1.5.9-man.patch
BuildRequires: bison
BuildRequires: cmake
BuildRequires: flex
BuildRequires: gcc-c++
BuildRequires: libjpeg-devel
Requires: doxygen = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version}
BuildRequires: libqt4-devel >= 4.3
BuildRequires: update-desktop-files
%endif
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
BuildRequires: desktop-file-utils
BuildRequires: qt4-devel >= 4.3.0
%endif
%if 0%{?mandriva_version} || 0%{?mdkversion}
BuildRequires: libqt4-devel >= 4.3
Requires(post): desktop-file-utils
Requires(postun): desktop-file-utils
%endif
%if 0%{?suse_version} > 1230 && 0%{?suse_version} != 1315
BuildRequires: libxml2-tools
BuildRequires: texlive-bibtex
%endif
%description
Doxywizard is a graphical front-end to read/edit/write doxygen
@@ -58,69 +41,27 @@ configuration files.
%prep
%setup -q -n doxygen-%{version}
%patch0
%patch2
%patch5
%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=%{_libexecdir}/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 = %{optflags} $mintoc@" tmake/lib/linux-g++/tmake.conf
# custom configure script
./configure --with-doxywizard
mkdir build
pushd build
cmake -G "Unix Makefiles" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=%{buildroot}/usr \
-Dbuild_wizard=ON \
..
make %{?_smp_mflags}
%if 0%{?suse_version} > 1230 && 0%{?suse_version} != 1315
%check
make test %{?_smp_mflags}
%endif
popd
%install
make install INSTALL=%{buildroot}/usr
rm -f %{buildroot}%{_bindir}/{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 %{buildroot}%{_mandir}/man1/{doxygen,doxytag}.1
cd build
make install %{?_smp_mflags}
rm %{buildroot}%{_bindir}/doxygen
%suse_update_desktop_file -i doxywizard Development Documentation
%files
%defattr(-,root,root)
%attr(755,root,root) %{_bindir}/doxywizard
%{_datadir}/applications/doxywizard.desktop
%attr(444,root,root) %doc %{_mandir}/man1/doxywizard.1.*
%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