]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Adjusting spec file to use shared library
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Mon, 16 Jun 2025 23:43:02 +0000 (19:43 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Mon, 16 Jun 2025 23:43:02 +0000 (19:43 -0400)
Makefile
Makefile.dist
mailleur.spec.in

index 8b9b9aa3d74070c1b32ab14f3aa06c4399231b7d..7274ac7752208f0825d003b423b6b911c5353d06 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -192,6 +192,9 @@ install     :
                shell                                   \
                support                                 \
                $(DESTDIR)/$(LIBDIR)/$(APPN)/
+          @ cp -a                                      \
+               shared/lib*                             \
+               $(DESTDIR)/$(LIBDIR)/$(APPN)/
 
 #--------------------------------------------------------------------
 SUBDIR =                                               \
index 1378a7c325d8e4ce435acb1bed2416bea1890de4..1a6ee1682e9ca34a0cea652206021ac487ec4717 100644 (file)
@@ -33,6 +33,7 @@ tarfile       : clean
                $(APLV)/bin                                     \
                $(APLV)/lib                                     \
                $(APLV)/linux                                   \
+               $(APLV)/shared                                  \
                $(APLV)/shell                                   \
                $(APLV)/support                                 \
                $(APLV)
@@ -45,6 +46,9 @@ tarfile       : clean
          @ cp -a                                               \
                shell/getsysos.sh                               \
                $(APLV)/shell/
+         @ cp -a                                               \
+               shared/*                                        \
+               $(APLV)/shared/
          @ cp -a support/*.sh                                  \
                $(APLV)/support
          @ cp -a app/Makefile  $(APLV)/app/Makefile
index 597c6cc6bf8e0269a31655147d6d3b0a811953cc..30c210759443a2699f7b1cf95086b42f056fa8c4 100644 (file)
@@ -33,6 +33,7 @@ search about email exchange within time and transaction context.
 %attr(0755,root,root) %{_datadir}/%{name}/linux/osukiss/receiver
 %attr(0755,root,root) %{_datadir}/%{name}/linux/osukiss/sorter
 %{_sbindir}/chkspf
+%{_sbindir}/feeder
 %{_sbindir}/receiver
 %{_sbindir}/sender
 %{_sbindir}/sorter
@@ -132,6 +133,8 @@ case "$OS" in
 Summary                :       mailleur using postgresql as Data-base
 
 #-----------------------------------------------------------------------------
+
+Requires       :       %{name}
 Requires       :       postgresql-server
 
 #-----------------------------------------------------------------------------
@@ -141,7 +144,7 @@ Requires    :       postgresql-server
 #-----------------------------------------------------------------------------
 %files                 postgresql
 %defattr(-,root,root,-)
-%{_sbindir}/feeder
+%{_libdir}/%{name}/libposql.so.1*
 
 #=============================================================================
 %prep