Small JDBC housekeeping - Mailing list pgsql-pkg-yum

From John Harvey
Subject Small JDBC housekeeping
Date
Msg-id CABcP5fgwGFAhWVczKbFLC3tWvwsFzMYm_g=XzHp0AvRpU7xPbw@mail.gmail.com
Whole thread Raw
List pgsql-pkg-yum
Hi Devrim,

Sorry to overload on JDBC changes, but I made a few tweaks that may be of interest.

The patch file is attached.

In the event that someone changes the Name field, certain items break.  I tried to change the macros around a bit to fix it.

1) If the Name is changed, these ln commands should follow, since they change too:
-%{__ln_s} postgresql-jdbc.jar postgresql-jdbc2.jar
-%{__ln_s} postgresql-jdbc.jar postgresql-jdbc2ee.jar
-%{__ln_s} postgresql-jdbc.jar postgresql-jdbc3.jar
+%{__ln_s} %{name}.jar postgresql-jdbc2.jar
+%{__ln_s} %{name}.jar postgresql-jdbc2ee.jar
+%{__ln_s} %{name}.jar postgresql-jdbc3.jar

2) If the Name is changed, these files needs to follow suit:
-%{_javadir}/postgresql-jdbc.jar
+%{_javadir}/%{name}.jar
-%{_datadir}/maven2/poms/JPP-postgresql-jdbc.pom
+%{_datadir}/maven2/poms/JPP-%{name}.pom

3) If the Name changes, these are static file names that do not change, so they should not use the macro:
-%{_javadir}/%{name}2.jar
-%{_javadir}/%{name}2ee.jar
-%{_javadir}/%{name}3.jar
+%{_javadir}/postgresql-jdbc2.jar
+%{_javadir}/postgresql-jdbc2ee.jar
+%{_javadir}/postgresql-jdbc3.jar

These aren't a big deal to trigger a new RPM or anything; just some housekeeping.  I hope they are helpful.

Regards,
  -John
Attachment

pgsql-pkg-yum by date:

Previous
From: Сергей Нагайцев
Date:
Subject: How to install PostgreSQL 9.5 to Amazon Linux 2015.09 ?
Next
From: Giulio Calacoci
Date:
Subject: Barman 1.6.0 Released