SHA256
1
0
forked from pool/doxygen
doxygen/doxygen.spec

101 lines
3.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package doxygen
#
# Copyright (c) 2015 SUSE LINUX 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/
#
Name: doxygen
Version: 1.8.9.1
Release: 0
Summary: Automated C, C++, and Java Documentation Generator
License: GPL-2.0+
Group: Development/Tools/Doc Generators
Url: http://www.stack.nl/~dimitri/doxygen/
Source0: http://ftp.stack.nl/pub/users/dimitri/doxygen-%{version}.src.tar.gz
Patch0: %{name}-1.5.9-64archs.patch
Patch3: %{name}-1.5.9-man.patch
Patch4: %{name}-1.7.0-modify_footer.patch
Patch5: %{name}-no-lowercase-man-names.patch
BuildRequires: bison
BuildRequires: fdupes
BuildRequires: flex
BuildRequires: gcc-c++
BuildRequires: graphviz
BuildRequires: libpng-devel
BuildRequires: python-base
BuildRequires: python-xml
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Doxygen is a documentation system for C, C++, Java, and IDL. It can
generate an online class browser (in HTML) and an offline reference
manual (in LaTeX) from a set of documented source files. The
documentation is extracted directly from the sources. Doxygen is
developed on a Linux platform, but it runs on most other UNIX flavors
as well. An executable for Windows 95/NT is also available.
%package doc
Summary: Documentation for %{name}
Group: Documentation
%description doc
Doxygen is a documentation system for C, C++, Java, and IDL. It can
generate an online class browser (in HTML) and an offline reference
manual (in LaTeX) from a set of documented source files. The
documentation is extracted directly from the sources. Doxygen is
developed on a Linux platform, but it runs on most other UNIX flavors
as well. An executable for Windows 95/NT is also available.
This package contains only documentation
%prep
%setup -q
%patch0
%patch3
%patch4
%patch5 -p1
%build
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 --prefix %{_prefix} --install %{_bindir}/install
make %{?_smp_mflags}
# generate html documentation
./bin/doxygen
%install
install -d -m 755 %{buildroot}%{_docdir}/doxygen
make install INSTALL=%{buildroot}/usr DOCDIR=%{buildroot}%{_docdir}/doxygen
install -m 644 LICENSE LANGUAGE.HOWTO PLATFORMS README.md VERSION %{buildroot}%{_docdir}/doxygen
cp -a doxygen_docs/html %{buildroot}%{_docdir}/%{name}-doc
%fdupes -s %{buildroot}%{_docdir}/%{name}-doc
%files
%defattr(-,root,root)
%doc LICENSE
%attr(444,root,root) %doc %{_mandir}/man1/doxygen.1.*
%attr(755,root,root) %{_bindir}/*
%files doc
%defattr(-,root,root)
%doc %{_docdir}/%{name}-doc
%changelog