public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/mdbtools] rawhide: [Fedora 45 Change] Ship drop-in snippet for ODBC driver self-registration
@ 2026-07-29 11:45 Michal Schorm
0 siblings, 0 replies; only message in thread
From: Michal Schorm @ 2026-07-29 11:45 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/mdbtools
Branch : rawhide
Commit : ce92c8f68bf042719b9fcbcdf71f1d4a7cc4c71e
Author : Michal Schorm <mschorm@redhat.com>
Date : 2026-07-20T02:30:27+02:00
Stats : +16/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/mdbtools/c/ce92c8f68bf042719b9fcbcdf71f1d4a7cc4c71e?branch=rawhide
Log:
[Fedora 45 Change] Ship drop-in snippet for ODBC driver self-registration
Install '10-mdbtools.ini' to '/usr/lib/odbc/odbcinst.d/' so
the unixODBC file trigger automatically registers the driver
in '/etc/odbcinst.ini'. Uses bare library name 'libmdbodbcW.so'
resolved via the compiled-in MODULEDIR.
Snippet directory layout:
- Snippets are installed to '%{_prefix}/lib/odbc/odbcinst.d/' rather
than directly to '%{_prefix}/lib/odbc/' to separate configuration
from content — on multilib systems, '%{_prefix}/lib/odbc/' may also
contain 32-bit driver '.so' files, and the RPM file triggers that
watch the snippet directory would fire spuriously on '.so' installs
- Both '%{_prefix}/lib/odbc/' and '%{_prefix}/lib/odbc/odbcinst.d/'
are co-owned by this package per Fedora directory ownership guidelines
Co-Authored-By: Claude AI <noreply@anthropic.com>
This commit is part of a Fedora 45 Self Contained Change:
https://fedoraproject.org/wiki/Changes/ODBC_stack_modernization
---
diff --git a/10-mdbtools.ini b/10-mdbtools.ini
new file mode 100644
index 0000000..ca45353
--- /dev/null
+++ b/10-mdbtools.ini
@@ -0,0 +1,4 @@
+[MDBTools]
+Description = MDB Tools ODBC (Microsoft Access)
+Driver = libmdbodbcW.so
+FileUsage = 2
diff --git a/mdbtools.spec b/mdbtools.spec
index c1a6a71..fc6264e 100644
--- a/mdbtools.spec
+++ b/mdbtools.spec
@@ -1,10 +1,11 @@
Name: mdbtools
Version: 1.0.1
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Access data stored in Microsoft Access databases
License: GPL-2.0-or-later
URL: https://github.com/mdbtools/mdbtools/
Source0: https://github.com/mdbtools/mdbtools/releases/download/v%{version}/mdbtools-%{version}.tar.gz
+Source3: 10-mdbtools.ini
BuildRequires: make gcc
BuildRequires: libxml2-devel glib2-devel unixODBC-devel readline-devel gettext-devel
BuildRequires: bison flex txt2man rarian-compat bash-completion
@@ -62,6 +63,10 @@ autoreconf -vif
%make_install
find %{buildroot} -type f -name "*.la" -delete
+# ODBC driver registration drop-in snippet
+mkdir -p %{buildroot}%{_prefix}/lib/odbc/odbcinst.d
+install -m644 %{SOURCE3} %{buildroot}%{_prefix}/lib/odbc/odbcinst.d/
+
%ldconfig_scriptlets libs
@@ -85,9 +90,15 @@ find %{buildroot} -type f -name "*.la" -delete
%files odbc
%{_libdir}/odbc
+%dir %{_prefix}/lib/odbc
+%dir %{_prefix}/lib/odbc/odbcinst.d
+%{_prefix}/lib/odbc/odbcinst.d/10-mdbtools.ini
%changelog
+* Mon Jul 20 2026 Michal Schorm <mschorm@redhat.com> - 1.0.1-3
+- Ship drop-in snippet for ODBC driver self-registration
+
* Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-29 11:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-29 11:45 [rpms/mdbtools] rawhide: [Fedora 45 Change] Ship drop-in snippet for ODBC driver self-registration Michal Schorm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox