public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ledger] f43: feat: re-enable python (fixes rh#2405078)
@ 2026-07-16 12:29 Ankur Sinha
  0 siblings, 0 replies; only message in thread
From: Ankur Sinha @ 2026-07-16 12:29 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/ledger
Branch : f43
Commit : c63f58b6e1b2bc5ff9fa73acddd534c3bcb3406b
Author : Ankur Sinha (Ankur Sinha Gmail) <sanjay.ankur@gmail.com>
Date   : 2026-07-16T11:08:23+00:00
Stats  : +15/-6 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/ledger/c/c63f58b6e1b2bc5ff9fa73acddd534c3bcb3406b?branch=f43

Log:
feat: re-enable python (fixes rh#2405078)

---
diff --git a/ledger.spec b/ledger.spec
index 84d12d0..50a097b 100644
--- a/ledger.spec
+++ b/ledger.spec
@@ -18,6 +18,7 @@ BuildRequires:    gmp-devel
 BuildRequires:    libedit-devel
 BuildRequires:    mpfr-devel
 BuildRequires:    utf8cpp-devel
+BuildRequires:    python3-devel
 
 # For building documentation.
 BuildRequires:    doxygen
@@ -37,10 +38,16 @@ their data, there really is no alternative.
 
 %package devel
 Summary: Libraries and header files for %{name} development
-Requires: %{name} = %{version}-%{release}
+Requires: %{name}%{?_isa} = %{version}-%{release}
 %description devel
 Libraries and header files for %{name} development.
 
+%package -n python3-%{name}
+Summary:  Python library for %{name}
+Requires: %{name}%{?_isa} = %{version}-%{release}
+%description -n python3-%{name}
+Python library for %{ledger}.
+
 %prep
 %autosetup -n %{name}-%{version} -p1
 # Avoid texinfo errors on EL7.
@@ -54,7 +61,7 @@ rm -r lib/utfcpp
 %cmake \
        -DCMAKE_INSTALL_PREFIX=%{_prefix} \
        -DCMAKE_SKIP_RPATH:BOOL=ON \
-       -DUSE_PYTHON:BOOL=OFF \
+       -DUSE_PYTHON:BOOL=ONF \
        -DUSE_DOXYGEN:BOOL=ON \
        -DBUILD_WEB_DOCS:BOOL=ON
 
@@ -88,10 +95,9 @@ for i in demo.ledger divzero.dat drewr3.dat drewr.dat sample.dat standard.dat tr
     install -p -m0644 test/input/${i} %{buildroot}%{_pkgdocdir}/samples/${i}
 done
 
-# Tests are disabled for the time being since they seem to require Python 2
-#%%check
-# Tests all fail when removing rpath.
-#LD_LIBRARY_PATH=$PWD %%ctest
+%check
+export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
+%ctest
 
 %files
 %doc README.md doc/GLOSSARY.md NEWS.md
@@ -108,6 +114,9 @@ done
 %config(noreplace) %{_sysconfdir}/bash_completion.d/ledger
 %license LICENSE.md
 
+%files -n python3-%{name}
+%{python3_sitearch}/%{name}.so
+
 %files devel
 %{_includedir}/ledger
 %{_libdir}/libledger.so

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-16 12:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-16 12:29 [rpms/ledger] f43: feat: re-enable python (fixes rh#2405078) Ankur Sinha

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox