[packages/corrosion] - install FindRust.cmake and others under /usr/share/cmake/Modules
witekfl
witekfl at pld-linux.org
Tue Jun 16 16:03:55 CEST 2026
commit 83ddd24efae506bcae1e422d2a5db3e730f33cfb
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
Date: Tue Jun 16 16:03:12 2026 +0200
- install FindRust.cmake and others under /usr/share/cmake/Modules
Modules.patch | 10 ++++++++++
corrosion.spec | 11 ++++++-----
2 files changed, 16 insertions(+), 5 deletions(-)
---
diff --git a/corrosion.spec b/corrosion.spec
index e1519bc..521df50 100644
--- a/corrosion.spec
+++ b/corrosion.spec
@@ -13,6 +13,7 @@ License: MIT
Group: Libraries
Source0: https://github.com/corrosion-rs/corrosion/archive/v%{version}/%{name}-%{version}.tar.gz
# Source0-md5: 060ee79a6bf7c5a2e4e810370fbb7b61
+Patch0: Modules.patch
URL: http://www.kde.org/
BuildRequires: cmake >= 3.22
BuildRequires: ninja
@@ -31,6 +32,7 @@ integracji Rusta z istniejącymi projektami CMake.
%prep
%setup -q
+%patch -P0 -p1
%build
%cmake -B build \
@@ -55,8 +57,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc README.md
-%{_libdir}/cmake/Corrosion/CorrosionConfig.cmake
-%{_libdir}/cmake/Corrosion/CorrosionConfigVersion.cmake
-%{_datadir}/cmake/Corrosion.cmake
-%{_datadir}/cmake/CorrosionGenerator.cmake
-%{_datadir}/cmake/FindRust.cmake
+%{_libdir}/cmake/Corrosion
+%{_datadir}/cmake/Modules/Corrosion.cmake
+%{_datadir}/cmake/Modules/CorrosionGenerator.cmake
+%{_datadir}/cmake/Modules/FindRust.cmake
diff --git a/Modules.patch b/Modules.patch
new file mode 100644
index 0000000..0f1c704
--- /dev/null
+++ b/Modules.patch
@@ -0,0 +1,10 @@
+diff -up corrosion-0.6.1/CMakeLists.txt.old corrosion-0.6.1/CMakeLists.txt
+--- corrosion-0.6.1/CMakeLists.txt.old 2026-01-17 11:46:47.000000000 +0100
++++ corrosion-0.6.1/CMakeLists.txt 2026-06-16 16:01:01.523497114 +0200
+@@ -77,5 +77,5 @@ install(
+ cmake/CorrosionGenerator.cmake
+ cmake/FindRust.cmake
+ DESTINATION
+- "${CMAKE_INSTALL_FULL_DATADIR}/cmake"
++ "${CMAKE_INSTALL_FULL_DATADIR}/cmake/Modules"
+ )
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/corrosion.git/commitdiff/83ddd24efae506bcae1e422d2a5db3e730f33cfb
More information about the pld-cvs-commit
mailing list