Thread: Small JDBC housekeeping
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