2012-05-08 12:26:02 +02:00
|
|
|
#
|
|
|
|
# spec file for package cal10n
|
|
|
|
#
|
2014-07-07 17:00:13 +02:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2012-05-08 12:26:02 +02:00
|
|
|
#
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: cal10n
|
|
|
|
Version: 0.7.4
|
|
|
|
Release: 0
|
|
|
|
Summary: Compiler assisted localization library (CAL10N)
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
Url: http://cal10n.qos.ch
|
|
|
|
Source0: http://cal10n.qos.ch/dist/cal10n-%{version}.tar.gz
|
|
|
|
Source1: build.xml.tar.bz2
|
|
|
|
BuildRequires: ant
|
|
|
|
BuildRequires: java-devel
|
2014-07-07 17:00:13 +02:00
|
|
|
BuildRequires: junit
|
2012-05-08 12:26:02 +02:00
|
|
|
Requires: java
|
2014-07-07 17:00:13 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
2012-05-08 12:26:02 +02:00
|
|
|
|
|
|
|
%description
|
2014-07-07 17:00:13 +02:00
|
|
|
Compiler Assisted Localization, abbreviated as CAL10N (pronounced as "calion")
|
2012-05-08 12:26:02 +02:00
|
|
|
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
|
2014-07-07 17:00:13 +02:00
|
|
|
* native2ascii tool made superfluous, as you can directly encode bundles
|
2012-05-08 12:26:02 +02:00
|
|
|
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
|
2014-07-07 17:00:13 +02:00
|
|
|
%setup -q
|
2012-05-08 12:26:02 +02:00
|
|
|
tar -xf %{SOURCE1}
|
|
|
|
find . -name "*.jar" | xargs rm
|
|
|
|
|
|
|
|
# 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
|
|
|
|
for dir in cal10n-api
|
|
|
|
do
|
|
|
|
pushd $dir
|
|
|
|
export CLASSPATH=$(build-classpath \
|
2014-07-07 17:00:13 +02:00
|
|
|
junit \
|
2012-05-08 12:26:02 +02:00
|
|
|
):target/classes:target/test-classes
|
|
|
|
ant -Dmaven.mode.offline=true package javadoc \
|
|
|
|
-Dmaven.test.skip=true \
|
2014-07-07 17:00:13 +02:00
|
|
|
-lib %{_datadir}/java
|
2012-05-08 12:26:02 +02:00
|
|
|
popd
|
|
|
|
done
|
|
|
|
|
|
|
|
%install
|
|
|
|
# jars
|
|
|
|
install -d -m 0755 %{buildroot}%{_javadir}/%{name}
|
|
|
|
install -m 644 cal10n-api/target/cal10n-api-%{version}.jar \
|
|
|
|
%{buildroot}%{_javadir}/%{name}/cal10n-api-%{version}.jar
|
|
|
|
|
|
|
|
# javadoc
|
|
|
|
pushd cal10n-api
|
|
|
|
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}-%{version}
|
|
|
|
cp -pr target/site/apidocs*/* %{buildroot}%{_javadocdir}/%{name}-%{version}/
|
|
|
|
rm -rf target/site/api*
|
|
|
|
popd
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%doc README.SUSE
|
|
|
|
%dir %{_javadir}/%{name}
|
|
|
|
%{_javadir}/%{name}/%{name}*.jar
|
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_javadocdir}/%{name}-%{version}
|
|
|
|
|
|
|
|
%changelog
|