Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
emma
emma.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File emma.spec of Package emma
# # spec file for package emma # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # 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/ # %define section free Name: emma Version: 2.0 Release: 3 Summary: Code Coverage Tool Group: Development/Libraries/Java License: CPL-1.0 Url: http://emma.sourceforge.net/ Source0: emma-2.0.5312-src.zip Source1: emma-2.0.5312.pom Source2: emma_ant-2.0.5312.pom Patch0: emma-2.0.5312-dependencies_xml.patch Patch1: emma-2.0.5312-build_xml.patch Patch2: emma-2.0.5312-no-version-stamp-tool.patch Patch3: emma-2.0.5312-no-javac-target.patch Patch4: emma-2.0.5312-code-source.patch Requires: jaxp_parser_impl Requires(post): jpackage-utils >= 1.7.2 Requires(postun): jpackage-utils >= 1.7.2 BuildRequires: ant BuildRequires: java-devel BuildRequires: jpackage-utils BuildRequires: unzip BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description EMMA is an open-source toolkit for measuring and reporting Java code coverage. EMMA distinguishes itself from other tools by going after a unique feature combination: support for large-scale enterprise software development while keeping individual developer's work fast and iterative. %package javadoc License: CPL-1.0 Summary: Code Coverage Tool Group: Development/Libraries/Java %description javadoc EMMA is an open-source toolkit for measuring and reporting Java code coverage. EMMA distinguishes itself from other tools by going after a unique feature combination: support for large-scale enterprise software development while keeping individual developer's work fast and iterative. %prep %setup -q -n %{name}-%{version}.5312 %patch0 %patch1 rm core/data/com/vladium/app/IAppVersion.java %patch2 -p1 %patch3 -p1 %patch4 -p1 find . -name "*.jar" | xargs rm %build export CLASSPATH= export OPT_JAR_LIST=: ant -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 build javadoc %install install -d -m 755 $RPM_BUILD_ROOT%{_javadir} install -m 644 dist/%{name}.jar \ $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar install -m 644 dist/%{name}_ant.jar \ $RPM_BUILD_ROOT%{_javadir}/%{name}_ant-%{version}.jar %add_to_maven_depmap emma emma %{version} JPP %{name} %add_to_maven_depmap emma emma_ant %{version} JPP %{name}_ant (cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done) # poms install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms install -pm 644 %{SOURCE1} \ $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}.pom install -pm 644 %{SOURCE2} \ $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}_ant.pom # javadoc install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} cp -pr out/javadocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} %post %update_maven_depmap %postun %update_maven_depmap %files %defattr(0644,root,root,0755) %doc cpl-v10.html %{_javadir}/* %{_datadir}/maven2/poms/* %config %{_mavendepmapfragdir}/* %files javadoc %defattr(0644,root,root,0755) %{_javadocdir}/%{name}-%{version} %{_javadocdir}/%{name} %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor