2007-01-16 00:10:37 +01:00
|
|
|
#
|
2011-03-30 09:18:47 +02:00
|
|
|
# spec file for package doxywizard
|
2007-01-16 00:10:37 +01:00
|
|
|
#
|
2013-01-22 09:19:21 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:10:37 +01:00
|
|
|
#
|
2009-01-13 18:42:16 +01:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:10:37 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: doxywizard
|
2012-07-13 10:46:49 +02:00
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libjpeg-devel
|
2013-05-20 18:44:15 +02:00
|
|
|
Version: 1.8.4
|
2012-07-13 10:46:49 +02:00
|
|
|
Release: 0
|
2007-01-16 00:10:37 +01:00
|
|
|
Requires: doxygen = %{version}
|
2012-07-13 10:46:49 +02:00
|
|
|
Summary: Graphical User Interface for Doxygen
|
2011-12-05 10:58:31 +01:00
|
|
|
License: GPL-2.0+
|
2007-01-16 00:10:37 +01:00
|
|
|
Group: Development/Tools/Doc Generators
|
2007-10-31 16:52:10 +01:00
|
|
|
Url: http://www.stack.nl/~dimitri/doxygen/
|
2013-03-26 09:28:59 +01:00
|
|
|
Source: http://ftp.stack.nl/pub/users/dimitri/doxygen-%{version}.src.tar.gz
|
2007-01-16 00:10:37 +01:00
|
|
|
Source1: doxywizard.desktop
|
2010-01-08 17:30:01 +01:00
|
|
|
Patch: doxygen-1.5.9-64archs.patch
|
|
|
|
Patch2: %{name}-1.5.9-flex.patch
|
|
|
|
Patch5: doxygen-1.5.9-man.patch
|
2007-01-16 00:10:37 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-01-08 17:30:01 +01:00
|
|
|
#########################################################################################
|
|
|
|
# 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: desktop-file-utils
|
2012-07-13 10:46:49 +02:00
|
|
|
BuildRequires: qt4-devel >= 4.3.0
|
2010-01-08 17:30:01 +01:00
|
|
|
%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
|
2007-01-16 00:10:37 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Doxywizard is a graphical front-end to read/edit/write doxygen
|
|
|
|
configuration files.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n doxygen-%{version}
|
|
|
|
%patch
|
|
|
|
%patch2
|
|
|
|
%patch5
|
|
|
|
|
|
|
|
%build
|
2010-01-08 17:30:01 +01:00
|
|
|
%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
|
2009-02-09 12:29:16 +01:00
|
|
|
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
|
2011-09-20 17:57:54 +02:00
|
|
|
# custom configure script
|
2009-01-13 18:42:16 +01:00
|
|
|
./configure --with-doxywizard
|
2011-09-20 17:57:54 +02:00
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:10:37 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
make install INSTALL=$RPM_BUILD_ROOT/usr
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/bin/{doxygen,doxytag}
|
2010-01-08 17:30:01 +01:00
|
|
|
%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
|
2007-01-16 00:10:37 +01:00
|
|
|
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{doxygen,doxytag}.1
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%attr(755,root,root) /usr/bin/doxywizard
|
2010-01-08 17:30:01 +01:00
|
|
|
%{_datadir}/applications/doxywizard.desktop
|
|
|
|
%attr(444,root,root) %doc %{_mandir}/man1/doxywizard.1.%{man_ext}
|
|
|
|
|
|
|
|
%if 0%{?mandriva_version} || 0%{?mdkversion}
|
2010-07-30 12:41:43 +02:00
|
|
|
|
2010-06-15 17:01:06 +02:00
|
|
|
%post
|
2010-01-08 17:30:01 +01:00
|
|
|
%update_menus
|
|
|
|
%{update_desktop_database}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?mandriva_version} || 0%{?mdkversion}
|
2010-07-30 12:41:43 +02:00
|
|
|
|
2010-06-15 17:01:06 +02:00
|
|
|
%postun
|
2010-01-08 17:30:01 +01:00
|
|
|
%clean_menus
|
|
|
|
%{clean_desktop_database}
|
|
|
|
%endif
|
2008-02-28 01:54:14 +01:00
|
|
|
|
2007-03-29 13:58:33 +02:00
|
|
|
%changelog
|