forked from pool/doxygen
Accepting request 326432 from home:scarabeus_iv:branches:devel:tools
- Set proper minimal cmake version required - Use system stack for cmake params and obey cflags - Add patch to build required static libs: * doxygen-no-shared-libs.patch - Refresh patch: * doxygen-no-lowercase-man-names.patch - Add patch to avoid no-return-in-nonvoid function error: * vhdlparser-no-return.patch - Set proper minimal cmake version required - Use system stack for cmake params and obey cflags - Add patch to build required static libs: * doxygen-no-shared-libs.patch - Refresh patch: * doxygen-no-lowercase-man-names.patch - Add patch to avoid no-return-in-nonvoid function error: * vhdlparser-no-return.patch - Set proper minimal cmake version required - Use system stack for cmake params and obey cflags - Add patch to build required static libs: * doxygen-no-shared-libs.patch - Refresh patch: * doxygen-no-lowercase-man-names.patch - Add patch to avoid no-return-in-nonvoid function error: * vhdlparser-no-return.patch OBS-URL: https://build.opensuse.org/request/show/326432 OBS-URL: https://build.opensuse.org/package/show/devel:tools/doxygen?expand=0&rev=91
This commit is contained in:
@@ -24,8 +24,13 @@ 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
|
||||
# PATCH-FIX-UPSTREAM: declare static library where we don't want to provide
|
||||
# shared one
|
||||
Patch2: doxygen-no-shared-libs.patch
|
||||
# PATCH-FIX-UPSTREAM: add missing returns to non-void functions
|
||||
Patch3: vhdlparser-no-return.patch
|
||||
BuildRequires: bison
|
||||
BuildRequires: cmake
|
||||
BuildRequires: cmake >= 2.8.12
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: flex
|
||||
BuildRequires: gcc-c++
|
||||
@@ -64,35 +69,37 @@ 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.
|
||||
as well.
|
||||
|
||||
This package contains only documentation
|
||||
|
||||
%prep
|
||||
%setup -q -n doxygen-%{version}
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
|
||||
%build
|
||||
mkdir build
|
||||
pushd build
|
||||
cmake -G "Unix Makefiles" \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=%{buildroot}/usr \
|
||||
-Dbuild_doc=ON \
|
||||
-DDOC_INSTALL_DIR=share/doc/packages/%{name}-doc \
|
||||
..
|
||||
export CFLAGS="%{optflags} -fPIC"
|
||||
export CXXFLAGS="%{optflags} -fPIC"
|
||||
%cmake \
|
||||
-DDOC_INSTALL_DIR=share/doc/packages/%{name} \
|
||||
-Dbuild_doc=ON \
|
||||
-Dbuild_xmlparser=OFF \
|
||||
-Dbuild_search=OFF \
|
||||
-Dbuild_wizard=OFF \
|
||||
-DCMAKE_EXE_LINKER_FLAGS="-Wl,--as-needed -pie -Wl,-z,relro,-z,now" \
|
||||
-DCMAKE_MODULE_LINKER_FLAGS="-Wl,--as-needed -pie -Wl,-z,relro,-z,now" \
|
||||
-DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed -pie -Wl,-z,relro,-z,now"
|
||||
make docs %{?_smp_mflags}
|
||||
popd
|
||||
|
||||
%install
|
||||
pushd build
|
||||
make install docs %{?_smp_mflags}
|
||||
popd
|
||||
%cmake_install docs
|
||||
rm %{buildroot}%{_bindir}/doxygen
|
||||
rm -r %{buildroot}/usr/man/man1/
|
||||
%fdupes -s %{buildroot}%{_docdir}/%{name}-doc
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc %{_docdir}/%{name}-doc
|
||||
%doc %{_docdir}/%{name}
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user