Removed the docdir work around (no longer needed)

This commit is contained in:
Denis Arnaud 2020-08-10 01:49:56 +02:00
parent 698ef08cda
commit 54bde1e0f3

View File

@ -1,6 +1,4 @@
#
%global mydocs __tmp_docdir
#
Name: sevmgr
Version: 1.00.5
Release: 5%{?dist}
@ -25,7 +23,7 @@ functions, exclusively targeting simulation purposes.
%{name} makes an extensive use of existing open-source libraries for
increased functionality, speed and accuracy. In particular the
Boost (C++ Standard Extensions: http://www.boost.org) library is used.
Boost (C++ Standard Extensions: https://www.boost.org) library is used.
Install the %{name} package if you need a library of basic C++ objects
for the discrete event queue management of your simulation project.
@ -66,20 +64,20 @@ online (http://%{name}.org).
%install
%cmake_install
mkdir -p %{mydocs}
mv $RPM_BUILD_ROOT%{_docdir}/%{name}/html %{mydocs}
rm -f %{mydocs}/html/installdox
# Remove the Doxygen installer
rm -f %{buildroot}%{_docdir}/%{name}/html/installdox
# Remove additional documentation files (those files are already available
# in the project top directory)
rm -f $RPM_BUILD_ROOT%{_docdir}/%{name}/{NEWS,README.md,AUTHORS}
rm -f %{buildroot}%{_docdir}/%{name}/{NEWS,README.md,AUTHORS}
%check
#ctest
%files
%doc AUTHORS ChangeLog COPYING NEWS README.md
%doc AUTHORS ChangeLog NEWS README.md
%license COPYING
%{_bindir}/%{name}
%{_bindir}/%{name}_demo
%{_libdir}/lib%{name}.so.*
@ -98,8 +96,8 @@ rm -f $RPM_BUILD_ROOT%{_docdir}/%{name}/{NEWS,README.md,AUTHORS}
%{_mandir}/man3/%{name}-library.3.*
%files doc
%doc %{mydocs}/html
%doc COPYING
%doc %{_docdir}/%{name}/html
%license COPYING
%changelog