[packages/erlang] - package erlang docs in -doc subpackage, moved erts docs to -doc
qboosh
qboosh at pld-linux.org
Tue Dec 15 15:22:12 CET 2020
commit 12cd90992a5594253a8bc692ee24c46f9d12f33f
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Dec 15 15:22:45 2020 +0100
- package erlang docs in -doc subpackage, moved erts docs to -doc
erlang.spec | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
---
diff --git a/erlang.spec b/erlang.spec
index 3ef5770..2a39a82 100644
--- a/erlang.spec
+++ b/erlang.spec
@@ -40,6 +40,7 @@ BuildRequires: ncurses-devel
BuildRequires: openssl-devel >= 0.9.7
BuildRequires: openssl-tools
BuildRequires: perl-base
+BuildRequires: rpmbuild(macros) >= 1.752
BuildRequires: xorg-lib-libX11-devel
%if %{with odbc}
BuildRequires: unixODBC-devel
@@ -62,6 +63,19 @@ Erlang to język programowania opracowany w Ericsson Computer Science
Laboratory. Open-source Erlang został wydany, aby pomóc w
rozpowszechnianiu Erlanga poza Ericssonem.
+%package doc
+Summary: Erlang documentation
+Summary(pl.UTF-8): Dokumentacja do Erlanga
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+%{?noarchpackage}
+
+%description doc
+Erlang documentation.
+
+%description doc -l pl.UTF-8
+Dokumentacja do Erlanga.
+
%prep
%setup -q -n otp-OTP-%{_version}
#%patch0 -p1
@@ -172,7 +186,6 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_libdir}/%{name}/bin/typer
%{_libdir}/%{name}/bin/start*.*
%dir %{_libdir}/%{name}/erts-*
-%{_libdir}/%{name}/erts-*/doc
%{_libdir}/%{name}/erts-*/man
%{_libdir}/%{name}/erts-*/src
%{_libdir}/%{name}/erts-*/include
@@ -202,3 +215,8 @@ rm -rf $RPM_BUILD_ROOT
%{systemdunitdir}/epmd.socket
%{systemdunitdir}/epmd at .service
%{systemdunitdir}/epmd at .socket
+
+%files doc
+%defattr(644,root,root,755)
+%{_libdir}/%{name}/doc
+%{_libdir}/%{name}/erts-*/doc
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/erlang.git/commitdiff/12cd90992a5594253a8bc692ee24c46f9d12f33f
More information about the pld-cvs-commit
mailing list