Add tck subpackage
- Use upstream build method
This commit is contained in:
parent
cf950bfa3b
commit
4a9aeae948
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: atinject
|
Name: atinject
|
||||||
Version: 1
|
Version: 1
|
||||||
Release: 4.20100611svn86%{?dist}
|
Release: 5.20100611svn86%{?dist}
|
||||||
Summary: Dependency injection specification for Java (JSR-330)
|
Summary: Dependency injection specification for Java (JSR-330)
|
||||||
|
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
@ -28,8 +28,6 @@ BuildRequires: maven-compiler-plugin
|
|||||||
|
|
||||||
|
|
||||||
Requires: jpackage-utils
|
Requires: jpackage-utils
|
||||||
Requires(post): jpackage-utils
|
|
||||||
Requires(postun): jpackage-utils
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package specifies a means for obtaining objects in such a way as
|
This package specifies a means for obtaining objects in such a way as
|
||||||
@ -46,50 +44,75 @@ Requires: jpackage-utils
|
|||||||
%description javadoc
|
%description javadoc
|
||||||
%{summary}.
|
%{summary}.
|
||||||
|
|
||||||
|
%package tck
|
||||||
|
Summary: TCK for testing %{name} compatibility with JSR-330
|
||||||
|
Group: Development/Libraries
|
||||||
|
Requires: jpackage-utils
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
Requires: junit
|
||||||
|
|
||||||
|
%description tck
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
rm -rf lib/
|
rm -rf lib/* javadoc/
|
||||||
|
|
||||||
|
ln -sf `build-classpath junit` lib/junit.jar
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mvn-rpmbuild install javadoc:aggregate
|
./build.sh
|
||||||
|
pushd build
|
||||||
|
for i in *.zip; do
|
||||||
|
unzip $i
|
||||||
|
done
|
||||||
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -d -m 755 %{buildroot}%{_javadir}
|
install -d -m 755 %{buildroot}%{_javadir}
|
||||||
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
||||||
|
|
||||||
%add_to_maven_depmap %{artifactId} %{artifactId} %{version} JPP %{name}
|
|
||||||
|
|
||||||
# poms
|
# poms
|
||||||
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
||||||
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
||||||
|
install -pm 644 tck-pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}-tck.pom
|
||||||
|
|
||||||
# jar files
|
# jar files
|
||||||
install -pm 644 target/%{artifactId}-*.jar %{buildroot}%{_javadir}/%{name}.jar
|
install -pm 644 build/%{artifactId}.jar %{buildroot}%{_javadir}/%{name}.jar
|
||||||
|
install -pm 644 build/%{artifactId}-tck.jar %{buildroot}%{_javadir}/%{name}-tck.jar
|
||||||
|
|
||||||
|
%add_maven_depmap JPP-%{name}.pom %{name}.jar
|
||||||
|
%add_maven_depmap JPP-%{name}-tck.pom %{name}-tck.jar -f tck
|
||||||
|
|
||||||
# javadoc
|
# javadoc
|
||||||
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
|
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
|
||||||
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
|
cp -pr build/javadoc/* %{buildroot}%{_javadocdir}/%{name}
|
||||||
|
|
||||||
|
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}-tck
|
||||||
%post
|
cp -pr build/tck/javadoc/* %{buildroot}%{_javadocdir}/%{name}-tck
|
||||||
%update_maven_depmap
|
|
||||||
|
|
||||||
%postun
|
|
||||||
%update_maven_depmap
|
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{_mavenpomdir}/*
|
%{_mavenpomdir}/JPP-%{name}.pom
|
||||||
%{_mavendepmapfragdir}/*
|
%{_mavendepmapfragdir}/%{name}
|
||||||
%{_javadir}/*.jar
|
%{_javadir}/%{name}.jar
|
||||||
|
|
||||||
|
%files tck
|
||||||
|
%{_mavendepmapfragdir}/%{name}-tck
|
||||||
|
%{_javadir}/%{name}-tck.jar
|
||||||
|
%{_mavenpomdir}/JPP-%{name}-tck.pom
|
||||||
|
|
||||||
%files javadoc
|
%files javadoc
|
||||||
%doc %{_javadocdir}/%{name}
|
%doc %{_javadocdir}/%{name}
|
||||||
|
%doc %{_javadocdir}/%{name}-tck
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Feb 13 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1-5.20100611svn86
|
||||||
|
- Add tck subpackage
|
||||||
|
- Use upstream build method
|
||||||
|
|
||||||
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1-4.20100611svn86
|
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1-4.20100611svn86
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user