Reformat .spec
Related: RHEL-82790
This commit is contained in:
parent
69fe8d5130
commit
d776ceee71
@ -43,57 +43,55 @@
|
|||||||
|
|
||||||
%{!?runselftest:%global runselftest 1}
|
%{!?runselftest:%global runselftest 1}
|
||||||
|
|
||||||
%global section devel
|
%global section devel
|
||||||
%global source_path pgjdbc/src/main/java/org/postgresql
|
%global source_path pgjdbc/src/main/java/org/postgresql
|
||||||
|
|
||||||
Summary: JDBC driver for PostgreSQL
|
Summary: JDBC driver for PostgreSQL
|
||||||
Name: postgresql-jdbc
|
Name: postgresql-jdbc
|
||||||
Version: 42.7.1
|
Version: 42.7.1
|
||||||
Release: 7%{?dist}
|
Release: 7%{?dist}
|
||||||
License: BSD-2-Clause
|
License: BSD-2-Clause
|
||||||
URL: http://jdbc.postgresql.org/
|
URL: https://jdbc.postgresql.org/
|
||||||
|
Source0: https://repo1.maven.org/maven2/org/postgresql/postgresql/%{version}/postgresql-%{version}-jdbc-src.tar.gz
|
||||||
Source0: https://repo1.maven.org/maven2/org/postgresql/postgresql/%{version}/postgresql-%{version}-jdbc-src.tar.gz
|
BuildArch: noarch
|
||||||
Provides: pgjdbc = %version-%release
|
|
||||||
|
|
||||||
BuildArch: noarch
|
|
||||||
ExclusiveArch: %{java_arches} noarch
|
ExclusiveArch: %{java_arches} noarch
|
||||||
BuildRequires: java-devel >= 1.8
|
|
||||||
BuildRequires: maven-local
|
|
||||||
BuildRequires: maven-enforcer-plugin
|
|
||||||
BuildRequires: maven-plugin-bundle
|
|
||||||
BuildRequires: classloader-leak-test-framework
|
|
||||||
|
|
||||||
BuildRequires: mvn(com.ongres.scram:client)
|
Provides: pgjdbc = %version-%release
|
||||||
BuildRequires: mvn(org.apache.maven.surefire:surefire-junit-platform)
|
|
||||||
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-api)
|
BuildRequires: maven-local
|
||||||
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-engine)
|
BuildRequires: java-devel >= 1.8
|
||||||
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-params)
|
BuildRequires: maven-enforcer-plugin
|
||||||
BuildRequires: mvn(org.junit.vintage:junit-vintage-engine)
|
BuildRequires: maven-plugin-bundle
|
||||||
|
BuildRequires: classloader-leak-test-framework
|
||||||
|
|
||||||
|
BuildRequires: mvn(com.ongres.scram:client)
|
||||||
|
BuildRequires: mvn(org.apache.maven.surefire:surefire-junit-platform)
|
||||||
|
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-api)
|
||||||
|
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-engine)
|
||||||
|
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-params)
|
||||||
|
BuildRequires: mvn(org.junit.vintage:junit-vintage-engine)
|
||||||
|
|
||||||
%if %runselftest
|
%if %runselftest
|
||||||
BuildRequires: postgresql-contrib
|
BuildRequires: postgresql-contrib
|
||||||
BuildRequires: postgresql-test-rpm-macros
|
BuildRequires: postgresql-test-rpm-macros
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# gettext is only needed if we try to update translations
|
# gettext is only needed if we try to update translations
|
||||||
#BuildRequires: gettext
|
#BuildRequires: gettext
|
||||||
|
|
||||||
Obsoletes: %{name}-parent-poms < 42.2.2-2
|
Obsoletes: %{name}-parent-poms < 42.2.2-2
|
||||||
|
|
||||||
%description
|
%description
|
||||||
PostgreSQL is an advanced Object-Relational database management
|
PostgreSQL is an advanced Object-Relational database management
|
||||||
system. The postgresql-jdbc package includes the .jar files needed for
|
system. The postgresql-jdbc package includes the .jar files needed for
|
||||||
Java programs to access a PostgreSQL database.
|
Java programs to access a PostgreSQL database.
|
||||||
|
|
||||||
|
|
||||||
%package javadoc
|
%package javadoc
|
||||||
Summary: API docs for %{name}
|
Summary: API docs for %{name}
|
||||||
|
|
||||||
%description javadoc
|
%description javadoc
|
||||||
This package contains the API Documentation for %{name}.
|
This package contains the API Documentation for %{name}.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -c -q
|
%setup -c -q
|
||||||
|
|
||||||
@ -122,7 +120,6 @@ rm src/test/java/org/postgresql/test/jdbc2/DriverTest.java \
|
|||||||
src/test/java/org/postgresql/jdbcurlresolver/PgPassParserTest.java \
|
src/test/java/org/postgresql/jdbcurlresolver/PgPassParserTest.java \
|
||||||
src/test/java/org/postgresql/util/StubEnvironmentAndProperties.java
|
src/test/java/org/postgresql/util/StubEnvironmentAndProperties.java
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# Ideally we would run "sh update-translations.sh" here, but that results
|
# Ideally we would run "sh update-translations.sh" here, but that results
|
||||||
# in inserting the build timestamp into the generated messages_*.class
|
# in inserting the build timestamp into the generated messages_*.class
|
||||||
@ -158,20 +155,16 @@ opts="-f"
|
|||||||
|
|
||||||
%mvn_build $opts --xmvn-javadoc
|
%mvn_build $opts --xmvn-javadoc
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%mvn_install
|
%mvn_install
|
||||||
|
|
||||||
|
|
||||||
%files -f .mfiles
|
%files -f .mfiles
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.md
|
%doc README.md
|
||||||
|
|
||||||
|
|
||||||
%files javadoc -f .mfiles-javadoc
|
%files javadoc -f .mfiles-javadoc
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 42.7.1-7
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 42.7.1-7
|
||||||
- Bump release for October 2024 mass rebuild:
|
- Bump release for October 2024 mass rebuild:
|
||||||
|
Loading…
Reference in New Issue
Block a user