[packages/crystal] package examples and manual
glen
glen at pld-linux.org
Sat Feb 23 00:53:09 CET 2019
commit 5fff94d7ce5c4a73ac66015fad15dc8c6d0a8e60
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sat Feb 23 01:52:52 2019 +0200
package examples and manual
crystal.spec | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/crystal.spec b/crystal.spec
index 8a378bb..82e185b 100644
--- a/crystal.spec
+++ b/crystal.spec
@@ -29,7 +29,7 @@ BuildRequires: pcre-devel
BuildRequires: pkgconfig
BuildRequires: readline-devel
BuildRequires: yaml-devel
-%if %{with tests}
+%if %{with tests} || %{without bootstrap}
BuildRequires: gc-devel
%endif
ExclusiveArch: %{x8664}
@@ -72,8 +72,12 @@ CXXFLAGS="%{rpmcxxflags}" \
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_bindir}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
install -p .build/crystal $RPM_BUILD_ROOT%{_bindir}/crystal
+cp -p man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a samples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%clean
rm -rf $RPM_BUILD_ROOT
@@ -82,3 +86,5 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc README.md CHANGELOG.md
%attr(755,root,root) %{_bindir}/crystal
+%{_mandir}/man1/crystal.1*
+%{_examplesdir}/%{name}-%{version}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/crystal.git/commitdiff/5fff94d7ce5c4a73ac66015fad15dc8c6d0a8e60
More information about the pld-cvs-commit
mailing list