2006-08-16 16:57:06 +00:00
|
|
|
# Copyright (c) 2000-2005, JPackage Project
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# Redistribution and use in source and binary forms, with or without
|
|
|
|
# modification, are permitted provided that the following conditions
|
|
|
|
# are met:
|
|
|
|
#
|
|
|
|
# 1. Redistributions of source code must retain the above copyright
|
|
|
|
# notice, this list of conditions and the following disclaimer.
|
|
|
|
# 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
# notice, this list of conditions and the following disclaimer in the
|
|
|
|
# documentation and/or other materials provided with the
|
|
|
|
# distribution.
|
|
|
|
# 3. Neither the name of the JPackage Project nor the names of its
|
|
|
|
# contributors may be used to endorse or promote products derived
|
|
|
|
# from this software without specific prior written permission.
|
|
|
|
#
|
|
|
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
|
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
#
|
|
|
|
|
2010-01-05 17:13:54 +00:00
|
|
|
%global _gcj_support 1
|
2006-08-16 18:14:05 +00:00
|
|
|
|
2010-01-05 17:13:54 +00:00
|
|
|
%global gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}}
|
2006-08-16 16:57:06 +00:00
|
|
|
|
2010-01-05 17:13:54 +00:00
|
|
|
%global section devel
|
|
|
|
%global upstreamver 8.4-701
|
2006-02-16 21:10:22 +00:00
|
|
|
|
|
|
|
Summary: JDBC driver for PostgreSQL
|
|
|
|
Name: postgresql-jdbc
|
2009-08-18 04:00:50 +00:00
|
|
|
Version: 8.4.701
|
2009-11-24 19:42:51 +00:00
|
|
|
Release: 3%{?dist}
|
|
|
|
# ASL 2.0 applies only to postgresql-jdbc.pom file, the rest is BSD
|
2009-11-23 16:32:13 +00:00
|
|
|
License: BSD and ASL 2.0
|
2006-02-16 21:10:22 +00:00
|
|
|
Group: Applications/Databases
|
|
|
|
URL: http://jdbc.postgresql.org/
|
|
|
|
|
|
|
|
Source0: http://jdbc.postgresql.org/download/%{name}-%{upstreamver}.src.tar.gz
|
2009-11-23 16:32:13 +00:00
|
|
|
# originally http://repo2.maven.org/maven2/postgresql/postgresql/8.4-701.jdbc4/postgresql-8.4-701.jdbc4.pom:
|
|
|
|
Source1: postgresql-jdbc.pom
|
2009-08-18 04:00:50 +00:00
|
|
|
Patch1: postgresql-jdbc-bogus-import.patch
|
2006-02-16 21:10:22 +00:00
|
|
|
|
2006-08-16 16:57:06 +00:00
|
|
|
%if ! %{gcj_support}
|
2006-02-16 21:10:22 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
|
|
|
BuildRequires: jpackage-utils >= 0:1.5
|
|
|
|
BuildRequires: ant >= 0:1.6.2
|
|
|
|
BuildRequires: ant-junit >= 0:1.6.2
|
|
|
|
BuildRequires: junit >= 0:3.7
|
2009-04-21 18:20:39 +00:00
|
|
|
BuildRequires: findutils
|
|
|
|
# gettext is only needed if we try to update translations
|
|
|
|
#BuildRequires: gettext
|
2006-02-16 21:10:22 +00:00
|
|
|
%if %{gcj_support}
|
|
|
|
BuildRequires: gcc-java
|
2006-08-16 21:56:22 +00:00
|
|
|
Requires(post): /usr/bin/rebuild-gcj-db
|
|
|
|
Requires(postun): /usr/bin/rebuild-gcj-db
|
2006-02-16 21:10:22 +00:00
|
|
|
%endif
|
2009-11-23 16:32:13 +00:00
|
|
|
Requires(post): jpackage-utils >= 0:1.7.2
|
|
|
|
Requires(postun): jpackage-utils >= 0:1.7.2
|
2007-08-12 22:40:35 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
2006-02-16 21:10:22 +00:00
|
|
|
|
|
|
|
Obsoletes: rh-postgresql-jdbc
|
|
|
|
|
|
|
|
%description
|
|
|
|
PostgreSQL is an advanced Object-Relational database management
|
|
|
|
system. The postgresql-jdbc package includes the .jar files needed for
|
|
|
|
Java programs to access a PostgreSQL database.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -c -q
|
|
|
|
mv -f %{name}-%{upstreamver}.src/* .
|
|
|
|
rm -f %{name}-%{upstreamver}.src/.cvsignore
|
|
|
|
rmdir %{name}-%{upstreamver}.src
|
|
|
|
|
|
|
|
# remove any binary libs
|
|
|
|
find -name "*.jar" -or -name "*.class" | xargs rm -f
|
|
|
|
|
2008-02-12 17:09:37 +00:00
|
|
|
%patch1 -p1
|
|
|
|
|
2006-02-16 21:10:22 +00:00
|
|
|
%build
|
|
|
|
export OPT_JAR_LIST="ant/ant-junit junit"
|
|
|
|
export CLASSPATH=
|
2009-04-21 18:20:39 +00:00
|
|
|
|
|
|
|
# Ideally we would run "sh update-translations.sh" here, but that results
|
|
|
|
# in inserting the build timestamp into the generated messages_*.class
|
|
|
|
# files, which makes rpmdiff complain about multilib conflicts if the
|
|
|
|
# different platforms don't build in the same minute. For now, rely on
|
|
|
|
# upstream to have updated the translations files before packaging.
|
|
|
|
|
2006-02-16 21:10:22 +00:00
|
|
|
ant
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
|
|
|
install -d $RPM_BUILD_ROOT%{_javadir}
|
|
|
|
# Per jpp conventions, jars have version-numbered names and we add
|
|
|
|
# versionless symlinks.
|
|
|
|
install -m 644 jars/postgresql.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
|
|
|
|
|
|
|
|
pushd $RPM_BUILD_ROOT%{_javadir}
|
|
|
|
ln -s %{name}-%{version}.jar %{name}.jar
|
|
|
|
# Also, for backwards compatibility with our old postgresql-jdbc packages,
|
|
|
|
# add these symlinks. (Probably only the jdbc3 symlink really makes sense?)
|
|
|
|
ln -s postgresql-jdbc.jar postgresql-jdbc2.jar
|
|
|
|
ln -s postgresql-jdbc.jar postgresql-jdbc2ee.jar
|
|
|
|
ln -s postgresql-jdbc.jar postgresql-jdbc3.jar
|
|
|
|
popd
|
|
|
|
|
|
|
|
%if %{gcj_support}
|
|
|
|
aot-compile-rpm
|
|
|
|
%endif
|
|
|
|
|
2009-11-24 19:42:51 +00:00
|
|
|
# Install the pom after inserting the correct version number
|
|
|
|
sed 's/UPSTREAM_VERSION/%{upstreamver}/g' %{SOURCE1} >JPP-postgresql-jdbc.pom
|
2009-11-23 16:32:13 +00:00
|
|
|
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms/
|
2009-11-24 19:42:51 +00:00
|
|
|
install -m 644 JPP-postgresql-jdbc.pom $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-postgresql-jdbc.pom
|
2009-11-23 16:32:13 +00:00
|
|
|
%add_to_maven_depmap postgresql postgresql %{version} JPP postgresql-jdbc
|
|
|
|
|
2006-02-16 21:10:22 +00:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%if %{gcj_support}
|
|
|
|
|
|
|
|
%post
|
|
|
|
/usr/bin/rebuild-gcj-db
|
2009-11-23 16:32:13 +00:00
|
|
|
%update_maven_depmap
|
2006-02-16 21:10:22 +00:00
|
|
|
|
|
|
|
%postun
|
|
|
|
/usr/bin/rebuild-gcj-db
|
2009-11-23 16:32:13 +00:00
|
|
|
%update_maven_depmap
|
2006-02-16 21:10:22 +00:00
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2006-12-15 23:39:09 +00:00
|
|
|
%doc LICENSE README doc/*
|
2006-02-16 21:10:22 +00:00
|
|
|
%{_javadir}/*
|
|
|
|
%if %{gcj_support}
|
|
|
|
%dir %{_libdir}/gcj/%{name}
|
|
|
|
%{_libdir}/gcj/%{name}/*.jar.so
|
|
|
|
%{_libdir}/gcj/%{name}/*.jar.db
|
|
|
|
%endif
|
2009-11-23 16:32:13 +00:00
|
|
|
%{_sysconfdir}/maven/fragments/%{name}
|
|
|
|
%{_datadir}/maven2/poms/JPP-%{name}.pom
|
2006-02-16 21:10:22 +00:00
|
|
|
|
|
|
|
%changelog
|
2009-11-24 19:42:51 +00:00
|
|
|
* Tue Nov 24 2009 Tom Lane <tgl@redhat.com> 8.4.701-3
|
|
|
|
- Seems the .pom file *must* have a package version number in it, sigh
|
|
|
|
Resolves: #538487
|
|
|
|
|
2009-11-23 16:32:13 +00:00
|
|
|
* Mon Nov 23 2009 Tom Lane <tgl@redhat.com> 8.4.701-2
|
|
|
|
- Add a .pom file to ease use by maven-based packages (courtesy Deepak Bhole)
|
|
|
|
Resolves: #538487
|
|
|
|
|
2009-08-18 04:00:50 +00:00
|
|
|
* Tue Aug 18 2009 Tom Lane <tgl@redhat.com> 8.4.701-1
|
|
|
|
- Update to build 8.4-701
|
|
|
|
|
2009-07-26 19:15:30 +00:00
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:8.3.603-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-04-21 18:20:39 +00:00
|
|
|
* Tue Apr 21 2009 Tom Lane <tgl@redhat.com> 8.3.603-3
|
|
|
|
- Avoid multilib conflict caused by overeager attempt to rebuild translations
|
|
|
|
|
2009-02-27 01:46:35 +00:00
|
|
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:8.3.603-2.1
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-07-09 21:51:55 +00:00
|
|
|
* Wed Jul 9 2008 Tom "spot" Callaway <tcallawa@redhat.com> 8.3.603-1.1
|
|
|
|
- drop repotag
|
|
|
|
|
2008-02-12 17:09:37 +00:00
|
|
|
* Tue Feb 12 2008 Tom Lane <tgl@redhat.com> 8.3.603-1jpp
|
|
|
|
- Update to build 8.3-603
|
|
|
|
|
2007-08-12 22:40:35 +00:00
|
|
|
* Sun Aug 12 2007 Tom Lane <tgl@redhat.com> 8.2.506-1jpp
|
|
|
|
- Update to build 8.2-506
|
|
|
|
|
2007-04-24 17:58:19 +00:00
|
|
|
* Tue Apr 24 2007 Tom Lane <tgl@redhat.com> 8.2.505-1jpp
|
2007-04-23 22:28:57 +00:00
|
|
|
- Update to build 8.2-505
|
2007-04-24 17:58:19 +00:00
|
|
|
- Work around 1.4 vs 1.5 versioning inconsistency
|
2007-04-23 22:28:57 +00:00
|
|
|
|
2006-12-15 23:39:09 +00:00
|
|
|
* Fri Dec 15 2006 Tom Lane <tgl@redhat.com> 8.2.504-1jpp
|
|
|
|
- Update to build 8.2-504
|
|
|
|
|
2006-08-16 21:56:22 +00:00
|
|
|
* Wed Aug 16 2006 Tom Lane <tgl@redhat.com> 8.1.407-1jpp.4
|
|
|
|
- Fix Requires: for rebuild-gcj-db (bz #202544)
|
|
|
|
|
2006-08-16 16:57:06 +00:00
|
|
|
* Wed Aug 16 2006 Fernando Nasser <fnasser@redhat.com> 8.1.407-1jpp.3
|
|
|
|
- Merge with upstream
|
|
|
|
|
2006-07-22 08:45:07 +00:00
|
|
|
* Sat Jul 22 2006 Jakub Jelinek <jakub@redhat.com> 8.1.407-1jpp.2
|
|
|
|
- Rebuilt
|
|
|
|
|
2006-07-12 07:52:10 +00:00
|
|
|
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0:8.1.407-1jpp.1
|
|
|
|
- rebuild
|
|
|
|
|
2006-06-14 20:25:18 +00:00
|
|
|
* Wed Jun 14 2006 Tom Lane <tgl@redhat.com> 8.1.407-1jpp
|
|
|
|
- Update to build 8.1-407
|
|
|
|
|
2006-03-27 21:41:47 +00:00
|
|
|
* Mon Mar 27 2006 Tom Lane <tgl@redhat.com> 8.1.405-2jpp
|
|
|
|
- Back-patch upstream fix to support unspecified-type strings.
|
|
|
|
|
2006-02-16 21:10:22 +00:00
|
|
|
* Thu Feb 16 2006 Tom Lane <tgl@redhat.com> 8.1.405-1jpp
|
|
|
|
- Split postgresql-jdbc into its own SRPM (at last).
|
|
|
|
- Build it from source. Add support for gcj compilation.
|