1 | %define jdbcver 9.0 |
---|
2 | %define jdbcrel 801 |
---|
3 | %global gcj_support 0 |
---|
4 | Summary: JDBC driver for PostgreSQL |
---|
5 | Summary(ja): PostgreSQL データベースにアクセスする Java プログラムのために必要なファイル群 |
---|
6 | Group: Applications/Databases |
---|
7 | Name: postgresql-jdbc |
---|
8 | Version: %{jdbcver}.%{jdbcrel} |
---|
9 | Release: 1%{?_dist_release} |
---|
10 | License: BSD and ASL 2.0 |
---|
11 | URL: http://www.postgresql.org/ |
---|
12 | Source0: http://jdbc.postgresql.org/download/%{name}-%{jdbcver}-%{jdbcrel}.src.tar.gz |
---|
13 | Source1: postgresql-jdbc.pom |
---|
14 | Buildrequires: perl build-essential |
---|
15 | Buildrequires: ant >= 0:1.6.2 |
---|
16 | |
---|
17 | #%if ! %{gcj_support} |
---|
18 | #BuildArch: noarch |
---|
19 | #%endif |
---|
20 | |
---|
21 | # ant (1.8.1-1vl6) |
---|
22 | # ecj (3.6-1vl6) |
---|
23 | # gcc-java (4.4.3-9vl6) |
---|
24 | # java-1.5.0-gcj (1.5.0.0-36vl6) |
---|
25 | # java-1.5.0-gcj-devel (1.5.0.0-36vl6) |
---|
26 | # libgcj (4.4.3-9vl6) |
---|
27 | # libgcj-devel (4.4.3-9vl6) |
---|
28 | # libgcj-src (4.4.3-9vl6) |
---|
29 | # xerces-j2 (2.9.0-5vl6) |
---|
30 | |
---|
31 | %if %{gcj_support} |
---|
32 | BuildRequires: java-1.5.0-gcj-devel |
---|
33 | Requires(post): java-1.5.0-gcj |
---|
34 | Requires(postun): java-1.5.0-gcj |
---|
35 | %endif |
---|
36 | |
---|
37 | Requires(post): jpackage-utils >= 0:1.7.2 |
---|
38 | Requires(postun): jpackage-utils >= 0:1.7.2 |
---|
39 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
40 | Obsoletes: postgresql7-jdbc |
---|
41 | Conflicts: postgresql8-jdbc |
---|
42 | Conflicts: postgresql-jdbc < %{jdbcver} |
---|
43 | |
---|
44 | %description |
---|
45 | PostgreSQL is an advanced Object-Relational database management |
---|
46 | system. The postgresql-jdbc package includes the .jar file needed for |
---|
47 | Java programs to access a PostgreSQL database. |
---|
48 | |
---|
49 | |
---|
50 | %prep |
---|
51 | #%setup -q -n postgresql-jdbc-%{jdbcver}-%{jdbcrel}.src |
---|
52 | %setup -c -q |
---|
53 | mv -f %{name}-%{jdbcver}-%{jdbcrel}.src/* . |
---|
54 | rm -f %{name}-%{jdbcver}-%{jdbcrel}.src/.cvsignore |
---|
55 | rmdir %{name}-%{jdbcver}-%{jdbcrel}.src |
---|
56 | |
---|
57 | |
---|
58 | %build |
---|
59 | export OPT_JAR_LIST="ant/ant-junit junit" |
---|
60 | export CLASSPATH= |
---|
61 | |
---|
62 | # Ideally we would run "sh update-translations.sh" here, but that results |
---|
63 | # in inserting the build timestamp into the generated messages_*.class |
---|
64 | # files, which makes rpmdiff complain about multilib conflicts if the |
---|
65 | # different platforms don't build in the same minute. For now, rely on |
---|
66 | # upstream to have updated the translations files before packaging. |
---|
67 | |
---|
68 | ant |
---|
69 | |
---|
70 | |
---|
71 | %install |
---|
72 | rm -rf $RPM_BUILD_ROOT |
---|
73 | install -d $RPM_BUILD_ROOT%{_javadir} |
---|
74 | # Per jpp conventions, jars have version-numbered names and we add |
---|
75 | # versionless symlinks. |
---|
76 | install -m 644 jars/postgresql.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar |
---|
77 | |
---|
78 | pushd $RPM_BUILD_ROOT%{_javadir} |
---|
79 | ln -s %{name}-%{version}.jar %{name}.jar |
---|
80 | # Also, for backwards compatibility with our old postgresql-jdbc packages, |
---|
81 | # add these symlinks. (Probably only the jdbc3 symlink really makes sense?) |
---|
82 | ln -s postgresql-jdbc.jar postgresql-jdbc2.jar |
---|
83 | ln -s postgresql-jdbc.jar postgresql-jdbc2ee.jar |
---|
84 | ln -s postgresql-jdbc.jar postgresql-jdbc3.jar |
---|
85 | popd |
---|
86 | |
---|
87 | %if %{gcj_support} |
---|
88 | %{_bindir}/aot-compile-rpm |
---|
89 | %endif |
---|
90 | |
---|
91 | # Install the pom after inserting the correct version number |
---|
92 | sed 's/UPSTREAM_VERSION/%{upstreamver}/g' %{SOURCE1} >JPP-postgresql-jdbc.pom |
---|
93 | install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms/ |
---|
94 | install -m 644 JPP-postgresql-jdbc.pom $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-postgresql-jdbc.pom |
---|
95 | %add_to_maven_depmap postgresql postgresql %{version} JPP postgresql-jdbc |
---|
96 | |
---|
97 | |
---|
98 | ### Java/JDBC |
---|
99 | ### The user will have to set a CLASSPATH to find it here, but not sure where else to put it... |
---|
100 | ### JDBC jars |
---|
101 | ##install -m 755 %{SOURCE10} $RPM_BUILD_ROOT%{_datadir}/pgsql |
---|
102 | ##install -m 755 %{SOURCE11} $RPM_BUILD_ROOT%{_datadir}/pgsql |
---|
103 | ##install -m 755 %{SOURCE12} $RPM_BUILD_ROOT%{_datadir}/pgsql |
---|
104 | ##install -m 755 %{SOURCE13} $RPM_BUILD_ROOT%{_datadir}/pgsql |
---|
105 | |
---|
106 | %{_bindir}/aot-compile-rpm |
---|
107 | |
---|
108 | %post |
---|
109 | %update_maven_depmap |
---|
110 | %if %{gcj_support} |
---|
111 | if [ -x %{_bindir}/rebuild-gcj-db ] |
---|
112 | then |
---|
113 | %{_bindir}/rebuild-gcj-db |
---|
114 | fi |
---|
115 | %endif |
---|
116 | |
---|
117 | %postun |
---|
118 | %update_maven_depmap |
---|
119 | %if %{gcj_support} |
---|
120 | if [ -x %{_bindir}/rebuild-gcj-db ] |
---|
121 | then |
---|
122 | %{_bindir}/rebuild-gcj-db |
---|
123 | fi |
---|
124 | %endif |
---|
125 | |
---|
126 | |
---|
127 | %clean |
---|
128 | rm -rf $RPM_BUILD_ROOT |
---|
129 | |
---|
130 | %files |
---|
131 | %defattr(-,root,root) |
---|
132 | %{_sysconfdir}/maven/fragments/postgresql-jdbc |
---|
133 | %{_libdir}/gcj/postgresql-jdbc/postgresql-jdbc-9.0.801.jar.db |
---|
134 | %{_libdir}/gcj/postgresql-jdbc/postgresql-jdbc-9.0.801.jar.so |
---|
135 | %{_datadir}/java/postgresql-jdbc-9.0.801.jar |
---|
136 | %{_datadir}/java/postgresql-jdbc.jar |
---|
137 | %{_datadir}/java/postgresql-jdbc2.jar |
---|
138 | %{_datadir}/java/postgresql-jdbc2ee.jar |
---|
139 | %{_datadir}/java/postgresql-jdbc3.jar |
---|
140 | %{_datadir}/maven2/poms/JPP-postgresql-jdbc.pom |
---|
141 | |
---|
142 | %changelog |
---|
143 | * Mon Apr 11 2011 Shu KONNO <owa@bg.wakwak.com> 9.0-801-1vl6 |
---|
144 | - initial build for VineSeed |
---|
145 | |
---|
146 | * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.0.801-2 |
---|
147 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
148 | |
---|
149 | * Wed Dec 29 2010 Tom Lane <tgl@redhat.com> 9.0.801-1 |
---|
150 | - Update to build 9.0-801 |
---|
151 | |
---|
152 | * Mon May 31 2010 Tom Lane <tgl@redhat.com> 8.4.701-4 |
---|
153 | - Update gcj_support sections to meet Packaging/GCJGuidelines; |
---|
154 | fixes FTBFS in F-14 rawhide |
---|
155 | |
---|
156 | * Tue Nov 24 2009 Tom Lane <tgl@redhat.com> 8.4.701-3 |
---|
157 | - Seems the .pom file *must* have a package version number in it, sigh |
---|
158 | Resolves: #538487 |
---|
159 | |
---|
160 | * Mon Nov 23 2009 Tom Lane <tgl@redhat.com> 8.4.701-2 |
---|
161 | - Add a .pom file to ease use by maven-based packages (courtesy Deepak Bhole) |
---|
162 | Resolves: #538487 |
---|
163 | |
---|
164 | * Tue Aug 18 2009 Tom Lane <tgl@redhat.com> 8.4.701-1 |
---|
165 | - Update to build 8.4-701 |
---|
166 | |
---|
167 | * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:8.3.603-4 |
---|
168 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
169 | |
---|
170 | * Tue Apr 21 2009 Tom Lane <tgl@redhat.com> 8.3.603-3 |
---|
171 | - Avoid multilib conflict caused by overeager attempt to rebuild translations |
---|
172 | |
---|
173 | * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:8.3.603-2.1 |
---|
174 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
175 | |
---|
176 | * Wed Jul 9 2008 Tom "spot" Callaway <tcallawa@redhat.com> 8.3.603-1.1 |
---|
177 | - drop repotag |
---|
178 | |
---|
179 | * Tue Feb 12 2008 Tom Lane <tgl@redhat.com> 8.3.603-1jpp |
---|
180 | - Update to build 8.3-603 |
---|
181 | |
---|
182 | * Sun Aug 12 2007 Tom Lane <tgl@redhat.com> 8.2.506-1jpp |
---|
183 | - Update to build 8.2-506 |
---|
184 | |
---|
185 | * Tue Apr 24 2007 Tom Lane <tgl@redhat.com> 8.2.505-1jpp |
---|
186 | - Update to build 8.2-505 |
---|
187 | - Work around 1.4 vs 1.5 versioning inconsistency |
---|
188 | |
---|
189 | * Fri Dec 15 2006 Tom Lane <tgl@redhat.com> 8.2.504-1jpp |
---|
190 | - Update to build 8.2-504 |
---|
191 | |
---|
192 | * Wed Aug 16 2006 Tom Lane <tgl@redhat.com> 8.1.407-1jpp.4 |
---|
193 | - Fix Requires: for rebuild-gcj-db (bz #202544) |
---|
194 | |
---|
195 | * Wed Aug 16 2006 Fernando Nasser <fnasser@redhat.com> 8.1.407-1jpp.3 |
---|
196 | - Merge with upstream |
---|
197 | |
---|
198 | * Sat Jul 22 2006 Jakub Jelinek <jakub@redhat.com> 8.1.407-1jpp.2 |
---|
199 | - Rebuilt |
---|
200 | |
---|
201 | * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0:8.1.407-1jpp.1 |
---|
202 | - rebuild |
---|
203 | |
---|
204 | * Wed Jun 14 2006 Tom Lane <tgl@redhat.com> 8.1.407-1jpp |
---|
205 | - Update to build 8.1-407 |
---|
206 | |
---|
207 | * Mon Mar 27 2006 Tom Lane <tgl@redhat.com> 8.1.405-2jpp |
---|
208 | - Back-patch upstream fix to support unspecified-type strings. |
---|
209 | |
---|
210 | * Thu Feb 16 2006 Tom Lane <tgl@redhat.com> 8.1.405-1jpp |
---|
211 | - Split postgresql-jdbc into its own SRPM (at last). |
---|
212 | - Build it from source. Add support for gcj compilation. |
---|