From: Jean-Marc Pigeon (Delson) Date: Wed, 25 Jun 2025 17:11:56 +0000 (-0400) Subject: Improving spec file X-Git-Tag: tag-0.10~31 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=d4f18e6015806a22c315cf80a3f378ac24e45b6a;p=jmp%2Fmailleur Improving spec file --- 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 @ - ( \