From d4f18e6015806a22c315cf80a3f378ac24e45b6a Mon Sep 17 00:00:00 2001 From: "Jean-Marc Pigeon (Delson)" Date: Wed, 25 Jun 2025 13:11:56 -0400 Subject: [PATCH] Improving spec file --- Makefile | 3 +++ mailleur.spec.in | 5 +++++ sql/Makefile | 6 ++++-- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4e04aba..bc45542 100644 --- a/Makefile +++ b/Makefile @@ -230,6 +230,9 @@ install : @ cp -a \ sysconfig \ $(DESTDIR)/$(ETCDIR)/ + @ cp -a \ + sql \ + $(DESTDIR)/$(DATADIR)/$(APPN)/ #-------------------------------------------------------------------- SUBDIR = \ diff --git a/mailleur.spec.in b/mailleur.spec.in index bb8fc0c..b671b13 100644 --- a/mailleur.spec.in +++ b/mailleur.spec.in @@ -49,6 +49,11 @@ search about email exchange within time and transaction context. %attr(0754,root,root) %{_libdir}/%{name}/support/dummy-cert.sh %attr(0754,root,root) %{_libdir}/%{name}/support/starting.sh %attr(0755,%{name},mail) %dir %{spooldir}/%{name}/{in-logs,mails,queue,out-logs} +%attr(0640,root,root) %{_datadir}/%{name}/sql/Makefile +%attr(0644,root,root) %{_datadir}/%{name}/sql/datatest.def +%attr(0644,root,root) %{_datadir}/%{name}/sql/*.sql +%exclude %{_datadir}/%{name}/sql/%{name}.mysql +%exclude %{_datadir}/%{name}/sql/%{name}.postg #----------------------------------------------------------------------------- %preun diff --git a/sql/Makefile b/sql/Makefile index 3243dd2..7e1ca5b 100644 --- a/sql/Makefile +++ b/sql/Makefile @@ -14,11 +14,13 @@ prepdb : debug deltest newtest mailleur.postg \ : mailleur.sql - @ cpp -P -DPOSTGRESQL mailleur.sql > mailleur.postg + @ cpp -P -DPOSTGRESQL \ + mailleur.sql > mailleur.postg mailleur.mysql \ : mailleur.sql - @ cpp -P -DMYSQL mailleur.sql > mailleur.mysql + @ cpp -P -DMYSQL \ + mailleur.sql > mailleur.mysql dbmysql : mailleur.mysql @ - ( \ -- 2.47.3