Accepting request 976400 from Java:packages
redo packaging OBS-URL: https://build.opensuse.org/request/show/976400 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cal10n?expand=0&rev=13
This commit is contained in:
commit
72c2bc4130
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>
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:0acfffac0a074a8f8318e0033a69a421f66023f8e24e15bcaec53fe5a6b867ec
|
|
||||||
size 3828
|
|
@ -1,37 +0,0 @@
|
|||||||
--- cal10n-0.7.7/cal10n-api/maven-build.xml 2017-09-07 19:31:22.268263921 +0200
|
|
||||||
+++ cal10n-0.7.7/cal10n-api/maven-build.xml 2017-09-07 19:43:32.588627010 +0200
|
|
||||||
@@ -67,10 +67,10 @@
|
|
||||||
debug="true"
|
|
||||||
optimize="false"
|
|
||||||
deprecation="true"
|
|
||||||
- target="1.5"
|
|
||||||
+ target="8"
|
|
||||||
verbose="false"
|
|
||||||
fork="false"
|
|
||||||
- source="1.5">
|
|
||||||
+ source="8">
|
|
||||||
<src>
|
|
||||||
<pathelement location="${maven.build.srcDir.0}"/>
|
|
||||||
</src>
|
|
||||||
@@ -95,10 +95,10 @@
|
|
||||||
debug="true"
|
|
||||||
optimize="false"
|
|
||||||
deprecation="true"
|
|
||||||
- target="1.5"
|
|
||||||
+ target="8"
|
|
||||||
verbose="false"
|
|
||||||
fork="false"
|
|
||||||
- source="1.5">
|
|
||||||
+ source="8">
|
|
||||||
<src>
|
|
||||||
<pathelement location="${maven.build.testDir.0}"/>
|
|
||||||
</src>
|
|
||||||
@@ -202,7 +202,7 @@
|
|
||||||
charset="ISO-8859-1"
|
|
||||||
linksource="false"
|
|
||||||
breakiterator="false">
|
|
||||||
- <link href="http://java.sun.com/j2se/1.5.0/docs/api"/>
|
|
||||||
+ <link href="http://java.sun.com/j2se/1.8.0/docs/api"/>
|
|
||||||
<group title="CAL10N API packages"/>
|
|
||||||
<group title="CAL10N Maven plugin"/>
|
|
||||||
</javadoc>
|
|
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.
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:8545f55f74f20bb457cd0260e939b64b5fd31d80f4eb19a98b2d67c00e38f819
|
|
||||||
size 358264
|
|
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.
@ -1,3 +1,15 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
Thu Apr 21 17:06:43 UTC 2022 - David Anes <david.anes@suse.com>
|
||||||
|
|
||||||
|
81
cal10n.spec
81
cal10n.spec
@ -16,26 +16,27 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%bcond_with tests
|
||||||
Name: cal10n
|
Name: cal10n
|
||||||
Version: 0.8.1
|
Version: 0.8.1.10
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Compiler assisted localization library (CAL10N)
|
Summary: Compiler assisted localization library (CAL10N)
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
URL: http://cal10n.qos.ch
|
URL: http://cal10n.qos.ch
|
||||||
Source0: https://github.com/qos-ch/cal10n/archive/refs/tags/v_%{version}.tar.gz#:/%{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.xz
|
||||||
Source1: build.xml-0.8.1.tar.xz
|
Source1: %{name}-build.tar.xz
|
||||||
Patch0: cal10n-0.7.7-sourcetarget.patch
|
|
||||||
BuildRequires: ant
|
BuildRequires: ant
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: java-devel >= 1.8
|
BuildRequires: java-devel >= 1.8
|
||||||
BuildRequires: javapackages-local
|
BuildRequires: javapackages-local
|
||||||
BuildRequires: javapackages-tools
|
|
||||||
BuildRequires: junit
|
|
||||||
BuildRequires: xz
|
BuildRequires: xz
|
||||||
Requires: java
|
Requires: java
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
%if %{with tests}
|
||||||
|
BuildRequires: ant-antunit
|
||||||
|
BuildRequires: ant-junit
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Compiler Assisted Localization, abbreviated as CAL10N (pronounced as "calion")
|
Compiler Assisted Localization, abbreviated as CAL10N (pronounced as "calion")
|
||||||
@ -56,11 +57,13 @@ Group: Development/Libraries/Java
|
|||||||
API documentation for %{name}.
|
API documentation for %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-v_%{version}
|
%setup -q -a1
|
||||||
tar -xf %{SOURCE1}
|
|
||||||
%patch0 -p1
|
|
||||||
find . -name "*.jar" -exec rm -f {} \;
|
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
|
# bnc#759912
|
||||||
rm -rf docs cal10n-site
|
rm -rf docs cal10n-site
|
||||||
cat > README.SUSE <<EOF
|
cat > README.SUSE <<EOF
|
||||||
@ -74,53 +77,47 @@ http://cal10n.qos.ch/manual.html
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
%build
|
%build
|
||||||
for dir in cal10n-api
|
mkdir -p lib
|
||||||
do
|
build-jar-repository -s lib \
|
||||||
pushd $dir
|
%if %{with tests}
|
||||||
export CLASSPATH=$(build-classpath \
|
ant-antunit \
|
||||||
junit \
|
%endif
|
||||||
):target/classes:target/test-classes
|
ant/ant
|
||||||
ant -Dmaven.mode.offline=true package javadoc \
|
%{ant} \
|
||||||
-Dmaven.test.skip=true \
|
%if %{without tests}
|
||||||
-lib %{_datadir}/java
|
-Dtest.skip=true \
|
||||||
popd
|
%endif
|
||||||
done
|
package javadoc
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# jars
|
# jars
|
||||||
install -d -m 0755 %{buildroot}%{_javadir}/%{name}
|
install -d -m 0755 %{buildroot}%{_javadir}/%{name}
|
||||||
install -m 644 cal10n-api/target/cal10n-api-%{version}.jar \
|
install -m 644 %{name}-api/target/%{name}-api-*.jar \
|
||||||
%{buildroot}%{_javadir}/%{name}/cal10n-api-%{version}.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
|
# pom
|
||||||
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
||||||
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom
|
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom
|
||||||
%add_maven_depmap %{name}.pom
|
%add_maven_depmap %{name}.pom
|
||||||
install -pm 644 %{name}-api/pom.xml %{buildroot}%{_mavenpomdir}/%{name}-api.pom
|
install -pm 644 %{name}-api/pom.xml %{buildroot}%{_mavenpomdir}/%{name}-api.pom
|
||||||
%add_maven_depmap %{name}-api.pom %{name}/cal10n-api-%{version}.jar
|
%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
|
# javadoc
|
||||||
pushd cal10n-api
|
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
|
||||||
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}-%{version}
|
for i in api ant-task; do
|
||||||
cp -pr target/site/apidocs*/* %{buildroot}%{_javadocdir}/%{name}-%{version}/
|
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}/${i}
|
||||||
rm -rf target/site/api*
|
cp -pr %{name}-${i}/target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/${i}/
|
||||||
popd
|
done
|
||||||
%fdupes -s %{buildroot}%{_javadocdir}/%{name}-%{version}
|
%fdupes -s %{buildroot}%{_javadocdir}/%{name}
|
||||||
|
|
||||||
%files
|
%files -f .mfiles
|
||||||
%defattr(0644,root,root,0755)
|
|
||||||
%doc README.SUSE
|
%doc README.SUSE
|
||||||
%dir %{_javadir}/%{name}
|
|
||||||
%{_javadir}/%{name}/%{name}*.jar
|
|
||||||
%{_mavenpomdir}/*
|
|
||||||
%if %{defined _maven_repository}
|
|
||||||
%{_mavendepmapfragdir}/%{name}
|
|
||||||
%else
|
|
||||||
%{_datadir}/maven-metadata/%{name}.xml*
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files javadoc
|
%files javadoc
|
||||||
%defattr(-,root,root,-)
|
%{_javadocdir}/%{name}
|
||||||
%{_javadocdir}/%{name}-%{version}
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user