avatar
Sergey A. Sokolov has added 6f37ffd68c
fix build
... ... --- a/.abf.yml
... ... +++ b/.abf.yml
... ... @@ -1,2 +1,3 @@
1 1
sources:
2
  "glassfish-dtd-parser-1.2-SNAPSHOT-src-svn.tar.gz": 3cb1621ebe43a7384ab72e0a876628ad8f769a1a
2
  glassfish-dtd-parser-1.2-SNAPSHOT-src-svn.tar.gz: 3cb1621ebe43a7384ab72e0a876628ad8f769a1a
3
  m2-repo.tar.gz: 8420e4838b9dc32047fab3a77aef75eb8ba56e0a
view file @ 6f37ffd68c
... ... --- a/glassfish-dtd-parser.spec
... ... +++ b/glassfish-dtd-parser.spec
... ... @@ -10,6 +10,7 @@ Url: http://java.net/projects/dtd-parser
10 10
# find glassfish-dtd-parser-1.2-SNAPSHOT/ -name '*.jar' -delete
11 11
# tar czf glassfish-dtd-parser-1.2-SNAPSHOT-src-svn.tar.gz glassfish-dtd-parser-1.2-SNAPSHOT
12 12
Source0: %{name}-%{version}-SNAPSHOT-src-svn.tar.gz
13
Source1: m2-repo.tar.gz
13 14
14 15
BuildRequires: java-devel
15 16
BuildRequires: jpackage-utils
... ... @@ -41,9 +42,13 @@ This package contains javadoc for %{name}.
42 42
%prep
43 43
%setup -q -n glassfish-dtd-parser-1.2-SNAPSHOT
44 44
45
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
46
mkdir -p $MAVEN_REPO_LOCAL
47
tar -xf %{SOURCE1} -C $MAVEN_REPO_LOCAL
45 48
46 49
%build
47
mvn-rpmbuild install javadoc:aggregate
50
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
51
mvn -Dmaven.repo.local=$MAVEN_REPO_LOCAL install javadoc:aggregate
48 52
49 53
50 54
%install
... ... @@ -61,7 +66,7 @@ cp -rp target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/.
66 66
cp -p pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
67 67
68 68
# DEPMAP
69
%add_maven_depmap JPP-%{name}.pom %{name}.jar
69
%add_to_maven_depmap JPP-%{name}.pom %{name}.jar
70 70
71 71
72 72
%files

Comments