[packages/doctest] - build as noarch
qboosh
qboosh at pld-linux.org
Sat Jan 27 19:39:14 CET 2024
commit 129d2f2ee5be8d80d2d5d88ca1278ac4b7a35397
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Jan 27 19:19:17 2024 +0100
- build as noarch
doctest.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/doctest.spec b/doctest.spec
index 84b7a5d..4ab0c48 100644
--- a/doctest.spec
+++ b/doctest.spec
@@ -16,6 +16,7 @@ URL: https://github.com/doctest/doctest
BuildRequires: cmake >= 3.0
BuildRequires: libstdc++-devel >= 6:4.7
Requires: libstdc++-devel >= 6:4.7
+BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -41,7 +42,9 @@ uruchamiania testów.
%build
install -d build
cd build
+# use arch-independent LIBDIR for cmake files, so that package can be noarch
%cmake .. \
+ -DCMAKE_INSTALL_LIBDIR=%{_datadir} \
%{!?with_tests:-DDOCTEST_WITH_TESTS=OFF}
%{__make}
@@ -59,4 +62,4 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc CHANGELOG.md LICENSE.txt README.md doc/markdown/*.md
%{_includedir}/doctest
-%{_libdir}/cmake/doctest
+%{_datadir}/cmake/doctest
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/doctest.git/commitdiff/129d2f2ee5be8d80d2d5d88ca1278ac4b7a35397
More information about the pld-cvs-commit
mailing list