Sync from SUSE:SLFO:Main cal10n revision ca0407fddb7267f7675e603875f0b741
This commit is contained in:
commit
9bf8d22b29
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
_service
Normal file
15
_service
Normal file
@ -0,0 +1,15 @@
|
||||
<services>
|
||||
<service name="tar_scm" mode="disabled">
|
||||
<param name="scm">git</param>
|
||||
<param name="url">https://github.com/qos-ch/cal10n.git</param>
|
||||
<param name="revision">22c048801fb6d04c991a0c8c01bb6fb97ef50b37</param>
|
||||
<param name="match-tag">v_*</param>
|
||||
<param name="versionformat">@PARENT_TAG@.@TAG_OFFSET@</param>
|
||||
<param name="versionrewrite-pattern">v_(.*)</param>
|
||||
</service>
|
||||
<service name="recompress" mode="disabled">
|
||||
<param name="file">*.tar</param>
|
||||
<param name="compression">xz</param>
|
||||
</service>
|
||||
<service name="set_version" mode="disabled"/>
|
||||
</services>
|
BIN
cal10n-0.8.1.10.tar.xz
(Stored with Git LFS)
Normal file
BIN
cal10n-0.8.1.10.tar.xz
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
cal10n-build.tar.xz
(Stored with Git LFS)
Normal file
BIN
cal10n-build.tar.xz
(Stored with Git LFS)
Normal file
Binary file not shown.
99
cal10n.changes
Normal file
99
cal10n.changes
Normal file
@ -0,0 +1,99 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed May 11 13:18:07 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Fetch sources using source service from ch.qos git
|
||||
- Upgrade to the 10th commit after 0.8.1 calling it 0.8.1.10
|
||||
- Redo completely the packaging including the possibility to run
|
||||
tests if --with tests is specified
|
||||
- Add the cal10n-ant-task to built artifacts
|
||||
- Removed patch:
|
||||
* cal10n-0.7.7-sourcetarget.patch
|
||||
+ changes factored into the build system
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 21 17:06:43 UTC 2022 - David Anes <david.anes@suse.com>
|
||||
|
||||
- Update to 0.8.1:
|
||||
* This release adds JSR-269 support. In other words, verification
|
||||
of bundles can be performed at compilation time. See the related
|
||||
documentation for more details.
|
||||
* Fix issue with Eclipse not finding existing resources. With
|
||||
release 0.8.1, Eclipse will find bundles located under
|
||||
"src/main/resources" but still fail to find bundles located
|
||||
under "src/test/resources/".
|
||||
* When reading in bundles, the verify method in MessageKeyVerifier
|
||||
now uses the locale passed as parameter instead of always
|
||||
Locale.FR. This bug was reported by Dale Wijnand who also
|
||||
provided the releavant patch.
|
||||
|
||||
- Update build.xml-0.7.7.tar.xz to build.xml-0.8.1.tar.xz with
|
||||
references to version 0.8.1 to build correctly versioned jar
|
||||
files.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 18 09:14:38 UTC 2018 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Install the maven pom files in order to generate correctly the
|
||||
mvn(...) provides.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 16 09:00:43 UTC 2018 - fstrba@suse.com
|
||||
|
||||
- Modified patch:
|
||||
* cal10n-0.7.7-sourcetarget.patch
|
||||
+ Build with source and target 8 to prepare for a possible
|
||||
removal of 1.6 compatibility
|
||||
- Run fdupes on documentation
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 7 17:45:17 UTC 2017 - fstrba@suse.com
|
||||
|
||||
- Added patch:
|
||||
* cal10n-0.7.7-sourcetarget.patch
|
||||
- Force java source and target levels to 1.6 in order to allow
|
||||
building with jdk9
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 25 14:23:44 UTC 2014 - p.drouand@gmail.com
|
||||
|
||||
- Update to version 0.7.7
|
||||
+ Correctly read escaped ':', '#', '!', '=' characters. The behavior
|
||||
is documented in the Properties javadocs (http://tinyurl.com/bprdgnk).
|
||||
This fixes CAL-37 (http://jira.qos.ch/browse/CAL-37)
|
||||
- Update build.xml.tar.bz2, rename it to build.xml-$VERSION and
|
||||
recompress it in xz format
|
||||
- Add a requirement to xz
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 7 14:59:58 UTC 2014 - tchvatal@suse.com
|
||||
|
||||
- Depend on junit not junit4
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 9 11:05:36 UTC 2013 - tchvatal@suse.com
|
||||
|
||||
- Move from jpackage-utils to javapackage-tools
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 4 12:55:01 UTC 2012 - mvyskocil@suse.cz
|
||||
|
||||
- fix bnc#759912 - Manual for cal10n 0.7.4 uses CC-BY-SA-NC-2.5 license
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 27 10:01:26 UTC 2012 - mvyskocil@suse.cz
|
||||
|
||||
- format spec for Factory
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 12 17:38:54 UTC 2011 - dmacvicar@suse.de
|
||||
|
||||
- fix build.xml files to build in openSUSE 12.1 and newer.
|
||||
MANIFEST contained an absolute path in maven-build.xml
|
||||
- Fix group for javadoc subpackage
|
||||
- remove id generation for buildroot (used in Fedora)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 27 08:44:46 UTC 2011 - dmacvicar@suse.de
|
||||
|
||||
- Un-mavenize. Build with ant
|
||||
|
123
cal10n.spec
Normal file
123
cal10n.spec
Normal file
@ -0,0 +1,123 @@
|
||||
#
|
||||
# spec file for package cal10n
|
||||
#
|
||||
# Copyright (c) 2022 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/
|
||||
#
|
||||
|
||||
|
||||
%bcond_with tests
|
||||
Name: cal10n
|
||||
Version: 0.8.1.10
|
||||
Release: 0
|
||||
Summary: Compiler assisted localization library (CAL10N)
|
||||
License: MIT
|
||||
Group: Development/Libraries/Java
|
||||
URL: http://cal10n.qos.ch
|
||||
Source0: %{name}-%{version}.tar.xz
|
||||
Source1: %{name}-build.tar.xz
|
||||
BuildRequires: ant
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: java-devel >= 1.8
|
||||
BuildRequires: javapackages-local
|
||||
BuildRequires: xz
|
||||
Requires: java
|
||||
BuildArch: noarch
|
||||
%if %{with tests}
|
||||
BuildRequires: ant-antunit
|
||||
BuildRequires: ant-junit
|
||||
%endif
|
||||
|
||||
%description
|
||||
Compiler Assisted Localization, abbreviated as CAL10N (pronounced as "calion")
|
||||
is a java library for writing localized (internationalized) messages.
|
||||
Features:
|
||||
* java compiler verifies message keys used in source code
|
||||
* tooling to detect errors in message keys
|
||||
* native2ascii tool made superfluous, as you can directly encode bundles
|
||||
in the most convenient charset, per locale.
|
||||
* good performance (300 nanoseconds per key look-up)
|
||||
* automatic reloading of resource bundles upon change
|
||||
|
||||
%package javadoc
|
||||
Summary: Javadoc for %{name}
|
||||
Group: Development/Libraries/Java
|
||||
|
||||
%description javadoc
|
||||
API documentation for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -a1
|
||||
find . -name "*.jar" -exec rm -f {} \;
|
||||
|
||||
# We don't want to depend on ant, since it will be
|
||||
# present when we try to use the task
|
||||
%pom_change_dep :ant :::provided %{name}-ant-task
|
||||
|
||||
# bnc#759912
|
||||
rm -rf docs cal10n-site
|
||||
cat > README.SUSE <<EOF
|
||||
|
||||
The documentation under Creative Commons Attribution-NonCommercial-ShareAlike
|
||||
2.5 License is not suitable for Linux distributors, so it has been removed.
|
||||
|
||||
You may find the online version at
|
||||
http://cal10n.qos.ch/manual.html
|
||||
|
||||
EOF
|
||||
|
||||
%build
|
||||
mkdir -p lib
|
||||
build-jar-repository -s lib \
|
||||
%if %{with tests}
|
||||
ant-antunit \
|
||||
%endif
|
||||
ant/ant
|
||||
%{ant} \
|
||||
%if %{without tests}
|
||||
-Dtest.skip=true \
|
||||
%endif
|
||||
package javadoc
|
||||
|
||||
%install
|
||||
# jars
|
||||
install -d -m 0755 %{buildroot}%{_javadir}/%{name}
|
||||
install -m 644 %{name}-api/target/%{name}-api-*.jar \
|
||||
%{buildroot}%{_javadir}/%{name}/%{name}-api.jar
|
||||
install -m 644 %{name}-ant-task/target/%{name}-ant-task-*.jar \
|
||||
%{buildroot}%{_javadir}/%{name}/%{name}-ant-task.jar
|
||||
|
||||
# pom
|
||||
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
||||
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom
|
||||
%add_maven_depmap %{name}.pom
|
||||
install -pm 644 %{name}-api/pom.xml %{buildroot}%{_mavenpomdir}/%{name}-api.pom
|
||||
%add_maven_depmap %{name}-api.pom %{name}/%{name}-api.jar
|
||||
install -pm 644 %{name}-ant-task/pom.xml %{buildroot}%{_mavenpomdir}/%{name}-ant-task.pom
|
||||
%add_maven_depmap %{name}-ant-task.pom %{name}/%{name}-ant-task.jar
|
||||
|
||||
# javadoc
|
||||
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
|
||||
for i in api ant-task; do
|
||||
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}/${i}
|
||||
cp -pr %{name}-${i}/target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/${i}/
|
||||
done
|
||||
%fdupes -s %{buildroot}%{_javadocdir}/%{name}
|
||||
|
||||
%files -f .mfiles
|
||||
%doc README.SUSE
|
||||
|
||||
%files javadoc
|
||||
%{_javadocdir}/%{name}
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user