Add README.md to %%doc

This commit is contained in:
Björn Esser 2017-04-14 18:04:06 +02:00
parent d9a65fd1b7
commit 4901626a6f

View File

@ -14,7 +14,7 @@
Name: lib%{libsuffix} Name: lib%{libsuffix}
Version: 3.3.1 Version: 3.3.1
Release: 3%{?dist} Release: 4%{?dist}
Summary: GUI-abstraction library Summary: GUI-abstraction library
License: (LGPLv2 or LGPLv3) and MIT License: (LGPLv2 or LGPLv3) and MIT
@ -104,14 +104,14 @@ EOF
%{__rm} -rf %{buildroot}%{_defaultdocdir} \ %{__rm} -rf %{buildroot}%{_defaultdocdir} \
../examples/CMake* doc/html/*.m* ../examples/CMake* doc/html/*.m*
# Hard-link documentation.
%{_sbindir}/hardlink -cv doc/html
# Install documentation. # Install documentation.
%{__mkdir} -p %{buildroot}%{?_pkgdocdir} %{__mkdir} -p %{buildroot}%{?_pkgdocdir}
%{__cp} -a ../package/libyui.changes \ %{__cp} -a ../README.md ../package/libyui.changes \
../examples/ doc/html/ \ ../examples/ doc/html/ \
%{buildroot}%{?_pkgdocdir} %{buildroot}%{?_pkgdocdir}
# Hard-link documentation.
%{_sbindir}/hardlink -cv %{buildroot}%{?_pkgdocdir}/html
popd popd
@ -124,6 +124,7 @@ popd
%dir %{_datadir}/%{name}/theme %dir %{_datadir}/%{name}/theme
%dir %{_libdir}/%{libsuffix} %dir %{_libdir}/%{libsuffix}
%doc %dir %{?_pkgdocdir} %doc %dir %{?_pkgdocdir}
%doc %{?_pkgdocdir}/README.md
%license COPYING* %license COPYING*
%{_libdir}/%{name}.so.%{major_so_ver}* %{_libdir}/%{name}.so.%{major_so_ver}*
@ -145,6 +146,9 @@ popd
%changelog %changelog
* Fri Apr 14 2017 Björn Esser <besser82@fedoraproject.org> - 3.3.1-4
- Add README.md to %%doc
* Fri Apr 14 2017 Björn Esser <besser82@fedoraproject.org> - 3.3.1-3 * Fri Apr 14 2017 Björn Esser <besser82@fedoraproject.org> - 3.3.1-3
- Updated patches - Updated patches
- Add some rpm-macros to macros-file - Add some rpm-macros to macros-file