public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/bacula] epel10.3: Reduce patching
@ 2026-11-08 17:46 Simone Caronni
0 siblings, 0 replies; only message in thread
From: Simone Caronni @ 2026-11-08 17:46 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/bacula
Branch : epel10.3
Commit : 38c6a8bdedd98e0679a5926632186cebfeb3f1f5
Author : Simone Caronni <negativo17@gmail.com>
Date : 2026-11-08T18:44:52+01:00
Stats : +11/-92 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/bacula/c/38c6a8bdedd98e0679a5926632186cebfeb3f1f5?branch=epel10.3
Log:
Reduce patching
---
diff --git a/bacula-desktop.patch b/bacula-desktop.patch
deleted file mode 100644
index f42bfcb..0000000
--- a/bacula-desktop.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-diff -Naur bacula-15.0.2.old/scripts/bacula-tray-monitor.desktop.in bacula-15.0.2/scripts/bacula-tray-monitor.desktop.in
---- bacula-15.0.2.old/scripts/bacula-tray-monitor.desktop.in 2024-06-02 10:15:16.941968209 +0200
-+++ bacula-15.0.2/scripts/bacula-tray-monitor.desktop.in 2024-06-02 10:15:17.524968587 +0200
-@@ -5,6 +5,5 @@
- Exec=@sbindir@/bacula-tray-monitor -c @sysconfdir@/bacula-tray-monitor.conf
- Terminal=false
- Type=Application
--Encoding=UTF-8
- X-Desktop-File-Install-Version=0.3
--Categories=System;Application;Utility;X-Red-Hat-Base;
-+Categories=System;Utility;
-diff -Naur bacula-15.0.2.old/scripts/bat.desktop.in bacula-15.0.2/scripts/bat.desktop.in
---- bacula-15.0.2.old/scripts/bat.desktop.in 2024-06-02 10:15:16.944968211 +0200
-+++ bacula-15.0.2/scripts/bat.desktop.in 2024-06-02 10:15:17.524968587 +0200
-@@ -5,7 +5,6 @@
- Exec=@sbindir@/bat -c @sysconfdir@/bat.conf
- Terminal=false
- Type=Application
--Encoding=UTF-8
- StartupNotify=true
- X-Desktop-File-Install-Version=0.3
--Categories=System;Application;Utility;X-Red-Hat-Base;
-+Categories=System;Utility;
diff --git a/bacula-install.patch b/bacula-install.patch
index 6a646c6..39bf4f5 100644
--- a/bacula-install.patch
+++ b/bacula-install.patch
@@ -10,19 +10,6 @@ diff -Naur bacula-15.0.2.old/autoconf/config.rpath bacula-15.0.2/autoconf/config
# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator="$hardcode_libdir_separator"
-diff -Naur bacula-15.0.2.old/examples/nagios/check_bacula/Makefile.in bacula-15.0.2/examples/nagios/check_bacula/Makefile.in
---- bacula-15.0.2.old/examples/nagios/check_bacula/Makefile.in 2024-06-02 10:15:17.112968320 +0200
-+++ bacula-15.0.2/examples/nagios/check_bacula/Makefile.in 2024-06-02 10:15:17.473968554 +0200
-@@ -72,7 +72,8 @@
- (cd $(srcdir); $(RMF) Makefile)
-
- install: all
-- $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) check_bacula $(DESTDIR)$(sbindir)/check_bacula
-+ $(MKDIR) $(DESTDIR)$(libdir)/nagios/plugins
-+ $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) .libs/check_bacula $(DESTDIR)$(libdir)/nagios/plugins/check_bacula
-
- uninstall:
- (cd $(DESTDIR)$(sbindir); $(RMF) check_bacula)
diff -Naur bacula-15.0.2.old/scripts/logwatch/logfile.bacula.conf.in bacula-15.0.2/scripts/logwatch/logfile.bacula.conf.in
--- bacula-15.0.2.old/scripts/logwatch/logfile.bacula.conf.in 2024-06-02 10:15:16.943968210 +0200
+++ bacula-15.0.2/scripts/logwatch/logfile.bacula.conf.in 2024-06-02 10:15:17.473968554 +0200
@@ -31,17 +18,6 @@ diff -Naur bacula-15.0.2.old/scripts/logwatch/logfile.bacula.conf.in bacula-15.0
-LogFile = @logdir@/bacula.log
+LogFile = @logdir@/*.log
-diff -Naur bacula-15.0.2.old/scripts/Makefile.in bacula-15.0.2/scripts/Makefile.in
---- bacula-15.0.2.old/scripts/Makefile.in 2024-06-02 10:15:16.944968211 +0200
-+++ bacula-15.0.2/scripts/Makefile.in 2024-06-02 10:15:17.473968554 +0200
-@@ -74,7 +74,6 @@
- $(MV) -f ${DESTDIR}${scriptdir}/baculabackupreport ${DESTDIR}${scriptdir}/baculabackupreport.old; \
- fi
- $(INSTALL_SCRIPT) baculabackupreport $(DESTDIR)$(scriptdir)/baculabackupreport
-- $(INSTALL_SCRIPT) bacula-tray-monitor.desktop $(DESTDIR)$(scriptdir)/bacula-tray-monitor.desktop
- chmod 0644 $(DESTDIR)$(scriptdir)/btraceback.gdb \
- $(DESTDIR)$(scriptdir)/btraceback.dbx \
- $(DESTDIR)$(scriptdir)/btraceback.mdb
diff -Naur bacula-15.0.2.old/src/cats/make_sqlite3_tables.in bacula-15.0.2/src/cats/make_sqlite3_tables.in
--- bacula-15.0.2.old/src/cats/make_sqlite3_tables.in 2024-06-02 10:15:16.949968214 +0200
+++ bacula-15.0.2/src/cats/make_sqlite3_tables.in 2024-06-02 10:15:17.473968554 +0200
@@ -107,43 +83,3 @@ diff -Naur bacula-15.0.2.old/src/plugins/fd/docker/Makefile bacula-15.0.2/src/pl
docker-fd.la: Makefile $(DOCKEROBJ) $(PLUGINLIBDIR)/pluginlib.lo $(DOCKERSRCH)
@echo "Linking $(@:.la=.so) ..."
-diff -Naur bacula-15.0.2.old/src/qt-console/bat.pro.in bacula-15.0.2/src/qt-console/bat.pro.in
---- bacula-15.0.2.old/src/qt-console/bat.pro.in 2024-06-02 10:15:17.471968553 +0200
-+++ bacula-15.0.2/src/qt-console/bat.pro.in 2024-06-02 10:15:17.474968555 +0200
-@@ -12,10 +12,10 @@
-
- datarootdir = @datarootdir@
- bins.path = /$(DESTDIR)@sbindir@
--bins.files = bat
-+bins.files = .libs/bat
- confs.path = /$(DESTDIR)@sysconfdir@
- confs.commands = ./install_conf_file
--help.path = /$(DESTDIR)@docdir@
-+help.path = /$(DESTDIR)@htmldir@
- help.files = help/*.html images/status.png images/mail-message-new.png
-
- TEMPLATE = app
-diff -Naur bacula-15.0.2.old/src/qt-console/tray-monitor/tray-monitor.pro.in bacula-15.0.2/src/qt-console/tray-monitor/tray-monitor.pro.in
---- bacula-15.0.2.old/src/qt-console/tray-monitor/tray-monitor.pro.in 2024-06-02 10:15:17.471968553 +0200
-+++ bacula-15.0.2/src/qt-console/tray-monitor/tray-monitor.pro.in 2024-06-02 10:15:17.474968555 +0200
-@@ -26,7 +26,7 @@
-
-
- bins.path = /$(DESTDIR)@sbindir@
--bins.files = bacula-tray-monitor
-+bins.files = .libs/bacula-tray-monitor
- confs.path = /$(DESTDIR)@sysconfdir@
- confs.commands = ./install_conf_file
-
-diff -Naur bacula-15.0.2.old/src/stored/Makefile.in bacula-15.0.2/src/stored/Makefile.in
---- bacula-15.0.2.old/src/stored/Makefile.in 2024-06-02 12:42:09.932685743 +0200
-+++ bacula-15.0.2/src/stored/Makefile.in 2024-06-02 15:15:18.389591566 +0200
-@@ -380,7 +380,7 @@
- install-tune-dde: tune-dde
- $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) tune-dde $(DESTDIR)$(sbindir)/tune-dde
-
--install: all @LIBTOOL_INSTALL_TARGET@ $(CLOUD_INSTALL_TARGETS)
-+install: all @LIBTOOL_INSTALL_TARGET@ $(CLOUD_INSTALL_TARGETS) install-aligned
- $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) bacula-sd $(DESTDIR)$(sbindir)/bacula-sd
- $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) bsdjson $(DESTDIR)$(sbindir)/bsdjson
- $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) bls $(DESTDIR)$(sbindir)/bls
diff --git a/bacula.spec b/bacula.spec
index caf2078..7d2b8b8 100644
--- a/bacula.spec
+++ b/bacula.spec
@@ -51,7 +51,6 @@ Patch3: %{name}-non-free-code.patch
Patch4: %{name}-traceback-man.patch
Patch5: %{name}-compile-options.patch
Patch6: %{name}-install.patch
-Patch7: %{name}-desktop.patch
Patch8: %{name}-docker-plugin.patch
# Original patch removed by mistake, upstream is not willing to add it again:
# http://www.bacula.org/git/cgit.cgi/bacula/commit/?h=Branch-7.0&id=51b3b98fb77ab3c0decee455cc6c4d2eb3c5303a
@@ -353,7 +352,9 @@ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%install
%make_install
-%make_install -C examples/nagios/check_bacula
+# Not part of the default install target
+%{__make} -C src/stored install-aligned DESTDIR=%{buildroot} INSTALL="%{__install} -p"
+install -p -m 755 -D examples/nagios/check_bacula/.libs/check_bacula %{buildroot}%{_libdir}/nagios/plugins/check_bacula
# Remove unused unversioned Storage Daemon plugins
rm -f %{buildroot}%{_libdir}/%{name}/%{name}-sd-*-driver.so
@@ -367,14 +368,19 @@ rm -f %{buildroot}%{_libexecdir}/%{name}/baculabackupreport
# Bat
install -p -m 644 -D src/qt-console/images/bat_icon.png %{buildroot}%{_datadir}/pixmaps/bat_icon.png
-install -p -m 644 -D scripts/bat.desktop %{buildroot}%{_datadir}/applications/bat.desktop
install -p -m 755 -D src/qt-console/.libs/bat %{buildroot}%{_sbindir}/bat
install -p -m 644 -D manpages/bacula-tray-monitor.1 %{buildroot}%{_mandir}/man1/bacula-tray-monitor.1
install -p -m 644 -D %{SOURCE19} %{buildroot}%{_datadir}/pixmaps/bacula-tray-monitor.png
-install -p -m 644 -D scripts/bacula-tray-monitor.desktop %{buildroot}%{_datadir}/applications/bacula-tray-monitor.desktop
install -p -m 755 -D src/qt-console/tray-monitor/.libs/bacula-tray-monitor %{buildroot}%{_sbindir}/bacula-tray-monitor
+desktop-file-install \
+ --dir %{buildroot}%{_datadir}/applications \
+ --remove-key=Encoding \
+ --remove-category=Application \
+ --remove-category=X-Red-Hat-Base \
+ scripts/bat.desktop scripts/bacula-tray-monitor.desktop
+
# Logrotate
mkdir -p %{buildroot}%{_localstatedir}/log/bacula
install -p -m 644 -D %{SOURCE6} %{buildroot}%{_sysconfdir}/logrotate.d/bacula
@@ -404,7 +410,7 @@ install -p -m 644 -D %{SOURCE7} %{buildroot}%{_prefix}/lib/firewalld/services/ba
install -p -m 644 -D %{SOURCE8} %{buildroot}%{_prefix}/lib/firewalld/services/bacula-director.xml
# Remove stuff we do not need
-rm -f %{buildroot}%{_libexecdir}/bacula/{bacula,bacula-ctl-*,startmysql,stopmysql,bconsole,make_catalog_backup}
+rm -f %{buildroot}%{_libexecdir}/bacula/{bacula,bacula-ctl-*,bacula-tray-monitor.desktop,startmysql,stopmysql,bconsole,make_catalog_backup}
rm -f %{buildroot}%{_sbindir}/bacula
rm -f %{buildroot}%{_mandir}/man8/bacula.8.gz
rm -f %{buildroot}%{_libdir}/*.la
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-08 17:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-08 17:46 [rpms/bacula] epel10.3: Reduce patching Simone Caronni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox