6
0

3 Commits

Author SHA256 Message Date
cc901d561d Accepting request 1266252 from Java:packages
OBS-URL: https://build.opensuse.org/request/show/1266252
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ongres-stringprep?expand=0&rev=4
2025-04-02 15:14:46 +00:00
5a503137a0 OBS-URL: https://build.opensuse.org/package/show/Java:packages/ongres-stringprep?expand=0&rev=11 2025-04-01 15:49:58 +00:00
f65fe8f8fa - Version 2.2
- Fix `Stringprep::getProvider` was not working on the module
    path.
  - The Profile interface now has overloaded methods with `char[]`
    versions.
  - The Java modules profiles `com.ongres.saslprep` and
    `com.ongres.nameprep` have implied readability with
    `com.ongres.stringprep`.
  - Exports the packages of the profiles in the module declaration
    to allow creating instances without the ServiceLoader lookup.
  - Introduce the annotation `@ProfileName` to declare the name of
    the profile used for ServiceLoader lookup.
  - Full rewrite of the `stringprep` implementation, this release
    is compatible with Java 8+.
  - The stringprep profiles can be created by implementing the
    `Profile` interface.
  - New module `nameprep` implementing the stringprep `Profile`.
  - Create Multi-release Modular JARs, the modules names are:
    - `com.ongres.stringprep`
    - `com.ongres.saslprep`
    - `com.ongres.nameprep`
  - Refactor of the `stringprep` implementation to make it
    extensible and modular, now this implemenation is considered
    feature-complete.
  - Change the module `saslprep` to implement the stringprep
    `Profile` interface.
  Removed: fix-dir-create.patch
- include parent and saslprep into main package
- exclude codegenerator

OBS-URL: https://build.opensuse.org/package/show/Java:packages/ongres-stringprep?expand=0&rev=10
2025-04-01 15:09:50 +00:00
2 changed files with 6 additions and 8 deletions

View File

@@ -1,9 +1,3 @@
-------------------------------------------------------------------
Thu Jul 3 15:01:27 UTC 2025 - Fridrich Strba <fstrba@suse.com>
- Do not create multirelease jar if the only Java 9+ class file is
module-info.class
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Apr 1 12:14:21 UTC 2025 - Michael Calmer <mc@suse.com> Tue Apr 1 12:14:21 UTC 2025 - Michael Calmer <mc@suse.com>

View File

@@ -26,7 +26,7 @@ License: BSD-2-Clause
URL: https://github.com/ongres/%{upstream_name} URL: https://github.com/ongres/%{upstream_name}
Source0: https://github.com/ongres/%{upstream_name}/archive/%{upstream_version}/%{upstream_name}-%{upstream_version}.tar.gz Source0: https://github.com/ongres/%{upstream_name}/archive/%{upstream_version}/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: java-devel >= 9 BuildRequires: java-devel >= 11
BuildRequires: maven-local BuildRequires: maven-local
Provides: ongres-stringprep-parent = %{upstream_version} Provides: ongres-stringprep-parent = %{upstream_version}
Obsoletes: ongres-stringprep-parent < %{upstream_version} Obsoletes: ongres-stringprep-parent < %{upstream_version}
@@ -58,7 +58,11 @@ find \( -name '*.jar' -o -name '*.class' \) -delete
# codegen is only needed for specific build profile that we do not use # codegen is only needed for specific build profile that we do not use
rm -r codegen rm -r codegen
%pom_xpath_remove 'pom:plugin[pom:artifactId="maven-compiler-plugin"]/pom:executions/pom:execution/pom:configuration/pom:multiReleaseOutput' parent %pom_xpath_inject 'pom:plugin[pom:artifactId="maven-jar-plugin"]/pom:configuration/pom:archive' '
<manifestEntries>
<Multi-Release>true</Multi-Release>
</manifestEntries>
' parent
%build %build
%{mvn_build} -f %{mvn_build} -f