Resolved FTBFS (#1799633)
This commit is contained in:
parent
85775da952
commit
309ebf43b7
@ -1,12 +1,11 @@
|
|||||||
Name: mariadb-java-client
|
Name: mariadb-java-client
|
||||||
Version: 2.4.3
|
Version: 2.4.3
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: Connects applications developed in Java to MariaDB and MySQL databases
|
Summary: Connects applications developed in Java to MariaDB and MySQL databases
|
||||||
# added BSD license because of https://bugzilla.redhat.com/show_bug.cgi?id=1291558#c13
|
# added BSD license because of https://bugzilla.redhat.com/show_bug.cgi?id=1291558#c13
|
||||||
License: BSD and LGPLv2+
|
License: BSD and LGPLv2+
|
||||||
URL: https://mariadb.com/kb/en/mariadb/about-mariadb-connector-j/
|
URL: https://mariadb.com/kb/en/mariadb/about-mariadb-connector-j/
|
||||||
Source0: https://github.com/MariaDB/mariadb-connector-j/archive/%{version}.tar.gz
|
Source0: https://github.com/MariaDB/mariadb-connector-j/archive/%{version}.tar.gz
|
||||||
|
|
||||||
# optional dependency not in Fedora
|
# optional dependency not in Fedora
|
||||||
Patch0: remove_waffle-jna.patch
|
Patch0: remove_waffle-jna.patch
|
||||||
|
|
||||||
@ -39,17 +38,6 @@ Summary: Javadoc for %{name}
|
|||||||
%description javadoc
|
%description javadoc
|
||||||
This package contains the API documentation for %{name}.
|
This package contains the API documentation for %{name}.
|
||||||
|
|
||||||
%package tests
|
|
||||||
Summary: Tests for %{name}
|
|
||||||
Requires: mvn(ch.qos.logback:logback-classic:pom:)
|
|
||||||
Requires: mvn(net.java.dev.jna:jna:pom:)
|
|
||||||
Requires: mvn(net.java.dev.jna:jna-platform:pom:)
|
|
||||||
BuildRequires: mvn(ch.qos.logback:logback-classic:pom:)
|
|
||||||
BuildRequires: mvn(com.zaxxer:HikariCP:pom:)
|
|
||||||
|
|
||||||
%description tests
|
|
||||||
This package contains JUnit tests for %{name}.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -qn mariadb-connector-j-%{version}
|
%setup -qn mariadb-connector-j-%{version}
|
||||||
|
|
||||||
@ -62,6 +50,10 @@ done
|
|||||||
|
|
||||||
# remove missing optional dependency waffle-jna
|
# remove missing optional dependency waffle-jna
|
||||||
%pom_remove_dep com.github.waffle:waffle-jna
|
%pom_remove_dep com.github.waffle:waffle-jna
|
||||||
|
%pom_remove_dep ch.qos.logback:logback-classic
|
||||||
|
%pom_remove_dep junit:junit
|
||||||
|
%pom_remove_dep com.zaxxer:HikariCP
|
||||||
|
|
||||||
# also remove the file using the removed plugin
|
# also remove the file using the removed plugin
|
||||||
rm -f src/main/java/org/mariadb/jdbc/internal/com/send/authentication/gssapi/WindowsNativeSspiAuthentication.java
|
rm -f src/main/java/org/mariadb/jdbc/internal/com/send/authentication/gssapi/WindowsNativeSspiAuthentication.java
|
||||||
# patch the sources so that the missing file is not making trouble
|
# patch the sources so that the missing file is not making trouble
|
||||||
@ -84,14 +76,6 @@ rm src/main/resources/META-INF/MANIFEST.MF
|
|||||||
%pom_xpath_set "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-jar-plugin']/pom:configuration/pom:archive/pom:manifestFile" '${project.build.outputDirectory}/META-INF/MANIFEST.MF'
|
%pom_xpath_set "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-jar-plugin']/pom:configuration/pom:archive/pom:manifestFile" '${project.build.outputDirectory}/META-INF/MANIFEST.MF'
|
||||||
%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-jar-plugin']/pom:configuration/pom:archive/pom:manifestEntries"
|
%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-jar-plugin']/pom:configuration/pom:archive/pom:manifestEntries"
|
||||||
|
|
||||||
%pom_xpath_inject "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-jar-plugin']" '
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<goals>
|
|
||||||
<goal>test-jar</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>'
|
|
||||||
|
|
||||||
%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.5.4 . '
|
%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.5.4 . '
|
||||||
<extensions>true</extensions>
|
<extensions>true</extensions>
|
||||||
@ -122,11 +106,10 @@ rm src/main/resources/META-INF/MANIFEST.MF
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
# tests are skipped, while they require running application server
|
# tests are skipped, while they require running application server
|
||||||
%mvn_build -- -DskipTests
|
%mvn_build -f
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%mvn_install
|
%mvn_install
|
||||||
cp target/%{name}-%{version}-tests.jar %{buildroot}/%{_jnidir}/%{name}-tests.jar
|
|
||||||
|
|
||||||
%files -f .mfiles
|
%files -f .mfiles
|
||||||
%doc documentation/* README.md
|
%doc documentation/* README.md
|
||||||
@ -135,11 +118,10 @@ cp target/%{name}-%{version}-tests.jar %{buildroot}/%{_jnidir}/%{name}-tests.jar
|
|||||||
%files javadoc -f .mfiles-javadoc
|
%files javadoc -f .mfiles-javadoc
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
|
||||||
%files tests
|
|
||||||
%{_jnidir}/%{name}-tests.jar
|
|
||||||
%license LICENSE
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Feb 19 2020 Ondrej Dubaj <odubaj@redhat.com> - 2.4.3-3
|
||||||
|
- Resolved FTBFS (#1799633)
|
||||||
|
|
||||||
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.3-2
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.3-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user