Sync from SUSE:SLFO:Main ongres-stringprep revision 73efdf812dd15d00998494faa313f07b
This commit is contained in:
commit
947476213c
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
15
fix-dir-create.patch
Normal file
15
fix-dir-create.patch
Normal file
@ -0,0 +1,15 @@
|
||||
Index: stringprep-1.1/codegenerator/src/main/java/com/ongres/stringprep/codegenerator/GeneratorCode.java
|
||||
===================================================================
|
||||
--- stringprep-1.1.orig/codegenerator/src/main/java/com/ongres/stringprep/codegenerator/GeneratorCode.java
|
||||
+++ stringprep-1.1/codegenerator/src/main/java/com/ongres/stringprep/codegenerator/GeneratorCode.java
|
||||
@@ -62,8 +62,8 @@ public class GeneratorCode {
|
||||
ctx.put("parser", parser);
|
||||
String path = args[0] + "/com/ongres/stringprep/StringPrep.java";
|
||||
File file = new File(path);
|
||||
- if (!file.getParentFile().mkdirs()) {
|
||||
- throw new IOException("The directory couldn't be created");
|
||||
+ if (!file.getParentFile().exists() && !file.getParentFile().mkdirs()) {
|
||||
+ throw new IOException("The directory couldn't be created:" + file.getParentFile());
|
||||
}
|
||||
Writer writer = new OutputStreamWriter(new FileOutputStream(file),StandardCharsets.UTF_8);
|
||||
template.merge(ctx, writer);
|
17
ongres-stringprep.changes
Normal file
17
ongres-stringprep.changes
Normal file
@ -0,0 +1,17 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 21 10:52:17 UTC 2024 - Gus Kenion <gus.kenion@suse.com>
|
||||
|
||||
- Use %patch -P N instead of deprecated %patchN.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 26 10:47:39 UTC 2023 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Build with source and target levels 8
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 3 15:53:57 UTC 2022 - Michael Calmer <mc@suse.com>
|
||||
|
||||
- ongres-stringprep 1.1 - initial package (bsc#1196693)
|
||||
(jsc#SLE-23993, jsc#SLE-23994)
|
||||
Add:
|
||||
* fix-dir-create.patch
|
99
ongres-stringprep.spec
Normal file
99
ongres-stringprep.spec
Normal file
@ -0,0 +1,99 @@
|
||||
#
|
||||
# spec file for package ongres-stringprep
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%global upstream_name stringprep
|
||||
%global upstream_version 1.1
|
||||
Name: ongres-%{upstream_name}
|
||||
Version: %(echo %{upstream_version} | sed 's/-/~/g')
|
||||
Release: 0
|
||||
Summary: Preparation of internationalized strings
|
||||
License: BSD-2-Clause
|
||||
URL: https://github.com/ongres/%{upstream_name}
|
||||
Source0: https://github.com/ongres/%{upstream_name}/archive/%{upstream_version}/%{upstream_name}-%{upstream_version}.tar.gz
|
||||
Patch0: fix-dir-create.patch
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: java-devel >= 1.8
|
||||
BuildRequires: maven-local
|
||||
BuildRequires: mvn(org.apache.velocity:velocity)
|
||||
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
|
||||
BuildRequires: mvn(org.codehaus.mojo:exec-maven-plugin)
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
StringPrep is the preparation of internationalized strings (stringprep, RFC 3454).
|
||||
|
||||
%package javadoc
|
||||
Summary: Javadoc for %{name}
|
||||
|
||||
%description javadoc
|
||||
This package contains javadoc for %{name}
|
||||
|
||||
%package saslprep
|
||||
Summary: SASLprep for %{name}
|
||||
|
||||
%description saslprep
|
||||
SaslPrep is a profile of stringprep for user names and passwords (saslprep, RFC 4013).
|
||||
|
||||
%package parent
|
||||
Summary: Developement files for %{name}
|
||||
|
||||
%description parent
|
||||
This package contains development files for %{name}
|
||||
|
||||
%package codegenerator
|
||||
Summary: Codegenerator
|
||||
|
||||
%description codegenerator
|
||||
This package contains a codegenerator for %{name}
|
||||
|
||||
%prep
|
||||
%setup -n %{upstream_name}-%{upstream_version}
|
||||
%patch -P 0 -p1
|
||||
find \( -name '*.jar' -o -name '*.class' \) -delete
|
||||
|
||||
%pom_remove_dep :velocity-tools codegenerator
|
||||
|
||||
%pom_remove_plugin :nexus-staging-maven-plugin
|
||||
%pom_remove_plugin :maven-source-plugin
|
||||
%pom_remove_plugin -r :maven-javadoc-plugin
|
||||
|
||||
%pom_xpath_set -r "pom:project/pom:properties/pom:java.version" "1.8"
|
||||
|
||||
%build
|
||||
%{mvn_build} -s -f -- -Dsource=8
|
||||
|
||||
%install
|
||||
%mvn_install
|
||||
%fdupes -s %{buildroot}%{_javadocdir}
|
||||
|
||||
%files -f .mfiles-stringprep
|
||||
%license LICENSE
|
||||
|
||||
%files parent -f .mfiles-parent
|
||||
%license LICENSE
|
||||
|
||||
%files saslprep -f .mfiles-saslprep
|
||||
%license LICENSE
|
||||
|
||||
%files codegenerator -f .mfiles-codegenerator
|
||||
%license LICENSE
|
||||
|
||||
%files javadoc -f .mfiles-javadoc
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
BIN
stringprep-1.1.tar.gz
(Stored with Git LFS)
Normal file
BIN
stringprep-1.1.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user