| From: | John Harvey <john(dot)harvey(at)crunchydata(dot)com> |
|---|---|
| To: | pgsql-pkg-yum <pgsql-pkg-yum(at)postgresql(dot)org> |
| Subject: | Small JDBC housekeeping |
| Date: | 2016-02-24 18:40:35 |
| Message-ID: | CABcP5fgwGFAhWVczKbFLC3tWvwsFzMYm_g=XzHp0AvRpU7xPbw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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 | Content-Type | Size |
|---|---|---|
| jdbc_new_small_tweaks.patch | application/octet-stream | 34.3 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Giulio Calacoci | 2016-02-29 09:16:36 | Barman 1.6.0 Released |
| Previous Message | Сергей Нагайцев | 2016-02-24 14:59:07 | How to install PostgreSQL 9.5 to Amazon Linux 2015.09 ? |