summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCoprDistGit <copr-devel@lists.fedorahosted.org>2023-02-25 18:49:27 +0000
committerCoprDistGit <copr-devel@lists.fedorahosted.org>2023-02-25 18:49:27 +0000
commite8e92c88182f3f8d3fa919b4fd6d3bdf8b4a3a0c (patch)
tree8c15923b51489db6925814b1704b54bc109ef456
parent9a728369424a891864f25e0b5ec5d1eaf75c91c1 (diff)
automatic import of mepackHEADmasterf38f37f36
-rw-r--r--mepack.spec11
1 files changed, 10 insertions, 1 deletions
diff --git a/mepack.spec b/mepack.spec
index 4bbbf6b..cac200f 100644
--- a/mepack.spec
+++ b/mepack.spec
@@ -18,6 +18,7 @@ BuildRequires: make, cmake
BuildRequires: gcc, gcc-fortran
BuildRequires: flexiblas-devel
BuildRequires: hdf5-devel
+BuildRequires: doxygen
%global _description %{expand:
MEPACK is a software library focused on solving dense Sylvester-like
@@ -52,13 +53,18 @@ This package contains the development headers and libraries.
%prep
%autosetup -p1 -n %{name}-release-v%{version}
+sed -i 's/GENERATE_HTML[ \t]*= YES/GENERATE_HTML = NO/g' doc/Doxyfile.in
+sed -i 's/GENERATE_MAN [ \t]*= NO/GENERATE_MAN = YES/g' doc/Doxyfile.in
%build
%cmake -B build \
-DCMAKE_INSTALL_MODULEDIR=%{_fmoddir}/%{name} \
-DINTEGER8=OFF \
- -DEXAMPLES=ON
+ -DEXAMPLES=ON \
+ -DDOC=ON
%make_build -C build
+%make_build -C build doc
+find build/doc -type f -size -50c -delete
%if 0%{?__isa_bits} == 64
%cmake -B build64 \
-DCMAKE_INSTALL_MODULEDIR=%{_fmoddir}/%{name}64 \
@@ -69,6 +75,8 @@ This package contains the development headers and libraries.
%install
%make_install -C build
+install -d -m 0755 %{buildroot}%{_mandir}
+cp -R build/doc/man/man3 %{buildroot}%{_mandir}
%if 0%{?__isa_bits} == 64
%make_install -C build64
%endif
@@ -96,6 +104,7 @@ make -C build64 test
%endif
%files devel
+%{_mandir}/man3/*.3*
%{_includedir}/%{name}
%{_fmoddir}/%{name}
%{_libdir}/cmake/%{name}