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
1 changed files with 8 additions and 10 deletions

View File

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