public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Cristian Le <git@lecris.dev>
To: git-commits@fedoraproject.org
Subject: [rpms/test-drive] rawhide: Update to version 0.6.1 (rhbz#2494937)
Date: Thu, 23 Jul 2026 14:29:32 GMT	[thread overview]
Message-ID: <178481697239.1.4710215976480011410.rpms-test-drive-98c10621cd4a@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/test-drive
            Branch : rawhide
            Commit : 98c10621cd4aefcb78d948f11b2dba208cc305fe
            Author : Cristian Le <git@lecris.dev>
            Date   : 2026-07-23T16:19:25+02:00
            Stats  : +57/-12 in 4 file(s)
            URL    : https://src.fedoraproject.org/rpms/test-drive/c/98c10621cd4aefcb78d948f11b2dba208cc305fe?branch=rawhide

            Log:
            Update to version 0.6.1 (rhbz#2494937)

- Enable missing tests
- Minor spec file cleanups

---
diff --git a/.gitignore b/.gitignore
index ea5706b..9078641 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 /test-drive-0.4.0.tar.gz
+/test-drive-0.6.1.tar.gz

diff --git a/69.patch b/69.patch
new file mode 100644
index 0000000..f36f2e7
--- /dev/null
+++ b/69.patch
@@ -0,0 +1,29 @@
+From 94a963b54392a1068e12ecb681e0909a0c2515fc Mon Sep 17 00:00:00 2001
+From: Cristian Le <git@lecris.dev>
+Date: Tue, 30 Jun 2026 13:12:25 +0200
+Subject: [PATCH] Allow users to configure the module-dir install path
+
+---
+ config/CMakeLists.txt | 8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+diff --git a/config/CMakeLists.txt b/config/CMakeLists.txt
+index dd07e9a..c1c4935 100644
+--- a/config/CMakeLists.txt
++++ b/config/CMakeLists.txt
+@@ -15,8 +15,14 @@ option(BUILD_SHARED_LIBS "Whether the libraries built should be shared" FALSE)
+ option(TESTDRIVE_BUILD_TESTING "Enable testing for this project" ON)
+ 
+ set(
+-  module-dir
++  "${PROJECT_NAME}-module-dir"
+   "${PROJECT_NAME}/${CMAKE_Fortran_COMPILER_ID}-${CMAKE_Fortran_COMPILER_VERSION}"
++  CACHE STRING
++  "Subdirectory to install generated module files to"
++)
++set(
++  module-dir
++  "${${PROJECT_NAME}-module-dir}"
+ )
+ set(module-dir "${module-dir}" PARENT_SCOPE)
+ 

diff --git a/sources b/sources
index 62a6c23..4ff50ef 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (test-drive-0.4.0.tar.gz) = c5c0b64aa370a59d1b04504419cdb62dbbc639b61a7efb9f557bc85f088a63afa24c4cbd1f7455ad57487fba87b1e291fc7a16706ddeaacff498f8019eaec729
+SHA512 (test-drive-0.6.1.tar.gz) = ab6988fc326233cde1b8edd34533855022a2cf99cc8397ea6a2323072b36bfce7433b0e4e22a3cc7828190283ee8dab260d730c247ae889578157d59af42e18a

diff --git a/test-drive.spec b/test-drive.spec
index 4d75c21..0cc0041 100644
--- a/test-drive.spec
+++ b/test-drive.spec
@@ -1,12 +1,16 @@
+%global soversion 0
+
 Name:           test-drive
-Version:        0.4.0
+Version:        0.6.1
 Release:        %autorelease
 Summary:        The simple testing framework
-# Automatically converted from old format: ASL 2.0 or MIT - review is highly recommended.
-License:        Apache-2.0 OR LicenseRef-Callaway-MIT
+License:        MIT OR Apache-2.0
 URL:            https://github.com/fortran-lang/test-drive
 Source0:        https://github.com/fortran-lang/test-drive/archive/v%{version}/%{name}-%{version}.tar.gz
 
+# Better control of the module dir install path
+Patch:          https://github.com/fortran-lang/test-drive/pull/69.patch
+
 BuildRequires:  gcc-gfortran
 BuildRequires:  cmake
 
@@ -22,30 +26,41 @@ Requires:       %{name}%{?_isa} = %{version}-%{release}
 The %{name}-devel package contains libraries and header files for
 developing applications that use %{name}.
 
+
 %prep
-%setup -q
+%autosetup -p1
+
+
+%conf
+# TODO: Account for absolute path CMAKE_INSTALL_INCLUDEDIR so we can use %%{_fmoddir}
+%cmake \
+  -DCMAKE_INSTALL_INCLUDEDIR:PATH=%{_lib}/gfortran/modules \
+  -Dtest-drive-module-dir:STRING=test-drive
+
 
 %build
-%cmake
 %cmake_build
 
+
 %install
 %cmake_install
-# Move module files
-mkdir -p %{buildroot}%{_fmoddir}
-mv %{buildroot}%{_includedir}/test-drive/*/*.mod %{buildroot}%{_fmoddir}
-rm -rf %{buildroot}%{_includedir}/test-drive/
+
+
+%check
+%ctest
+
 
 %files
 %license LICENSE-Apache LICENSE-MIT
 %doc README.md
-%{_libdir}/libtest-drive.so.0*
+%{_libdir}/libtest-drive.so.%{soversion}{,.*}
 
 %files devel
-%{_fmoddir}/testdrive*.mod
+%{_fmoddir}/test-drive/
 %{_libdir}/pkgconfig/test-drive.pc
 %{_libdir}/cmake/test-drive/
 %{_libdir}/libtest-drive.so
 
+
 %changelog
 %autochangelog

                 reply	other threads:[~2026-07-23 14:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178481697239.1.4710215976480011410.rpms-test-drive-98c10621cd4a@fedoraproject.org \
    --to=git@lecris.dev \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox