Description of problem: Please add Maven depmap fragments to the spec file as specified here: https://fedoraproject.org/wiki/Packaging/Java#maven This makes it possible for other packages that use Maven to build against the jakarta-commons-pool library. The appropriate call to %add_to_maven_depmap is probably: %add_to_maven_depmap postgresql postgresql %{version} JPP postgresql Version-Release number of selected component (if applicable): postgresql-jdbc-8.4.701-1.fc12.x86_64
A bit more testing indicates that the proper line should actually be %add_to_maven_depmap postgresql postgresql %{version} JPP postgresql-jdbc (the last item on the line refers to the actual filename of the .jar file)
Patch committed (with help from Deepak Bhole). Please test.
postgresql-jdbc-8.4.701-2.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/postgresql-jdbc-8.4.701-2.fc12
Created attachment 373191 [details] mvn-jpp output when building against the new postgresql I don't think things are quite right -- if I try to build a package that wants postgresql-jdbc (using mvn-jpp), I get the attached errors. If I move the .pom out of the way, things seem to work well with just the depmap fragment, though. Here's the fragment of the POM in question that requests postgresql: <dependency> <groupId>postgresql</groupId> <artifactId>postgresql</artifactId> <scope>provided</scope> </dependency>
Hey Deepak, what do you make of this? It looks to me like maybe removing the package version just doesn't work. If so I'd be inclined to "sed" the actual version into the file at package build time, rather than trying to maintain it manually. It seems like rather a poor design of a packaging system though.
Mary Ellen, does it work if you modify the .pom file like this? *** postgresql-jdbc.pom~ Tue Nov 24 11:20:47 2009 --- postgresql-jdbc.pom Tue Nov 24 11:22:27 2009 *************** *** 6,11 **** --- 6,12 ---- <packaging>jar</packaging> <name>PostgreSQL JDBC Driver</name> + <version>8.4-701</version> <url>http://jdbc.postgresql.org</url> <description>The PostgreSQL Driver JDBC4</description> <licenses>
Yes, my package builds clean with that patch. Weird ... still getting my head around how Maven/POM files/etc. work.
OK, I've updated the testing release to 8.4.701-3. Please check it and vote the karma up if OK.
postgresql-jdbc-8.4.701-3.fc12 has been pushed to the Fedora 12 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update postgresql-jdbc'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2009-12186
postgresql-jdbc-8.4.701-3.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report.