]> git.pld-linux.org Git - packages/doctest.git/commitdiff
- build as noarch master auto/th/doctest-2.4.11-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 27 Jan 2024 18:19:17 +0000 (19:19 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 27 Jan 2024 18:19:17 +0000 (19:19 +0100)
doctest.spec

index 84b7a5d230d938dee9473cc0855018acf7ea689c..4ab0c4861d5113da7a98a1e6639acc65ccdebec2 100644 (file)
@@ -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
This page took 0.120108 seconds and 4 git commands to generate.