Reformat .spec

Related: RHEL-82790
This commit is contained in:
Marián Konček 2025-04-01 15:42:18 +02:00
parent 69fe8d5130
commit d776ceee71

View File

@ -51,15 +51,15 @@ 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
Provides: pgjdbc = %version-%release
BuildArch: noarch BuildArch: noarch
ExclusiveArch: %{java_arches} noarch ExclusiveArch: %{java_arches} noarch
BuildRequires: java-devel >= 1.8
Provides: pgjdbc = %version-%release
BuildRequires: maven-local BuildRequires: maven-local
BuildRequires: java-devel >= 1.8
BuildRequires: maven-enforcer-plugin BuildRequires: maven-enforcer-plugin
BuildRequires: maven-plugin-bundle BuildRequires: maven-plugin-bundle
BuildRequires: classloader-leak-test-framework BuildRequires: classloader-leak-test-framework
@ -86,14 +86,12 @@ 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: