Update to current packaging guidelines
This commit is contained in:
parent
77a1d3bbbd
commit
c9b62c4b01
70
junit.spec
70
junit.spec
@ -1,41 +1,9 @@
|
|||||||
# Copyright (c) 2000-2008, JPackage Project
|
|
||||||
# All rights reserved.
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in the
|
|
||||||
# documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name of the JPackage Project nor the names of its
|
|
||||||
# contributors may be used to endorse or promote products derived
|
|
||||||
# from this software without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
||||||
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
||||||
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
||||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
||||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
||||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
|
|
||||||
Name: junit
|
Name: junit
|
||||||
Version: 4.11
|
Version: 4.11
|
||||||
Release: 8%{?dist}
|
Release: 9%{?dist}
|
||||||
Epoch: 0
|
|
||||||
Summary: Java regression test package
|
Summary: Java regression test package
|
||||||
License: CPL
|
License: CPL
|
||||||
URL: http://www.junit.org/
|
URL: http://www.junit.org/
|
||||||
Group: Development/Tools
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
# ./clean-tarball.sh %{version}
|
# ./clean-tarball.sh %{version}
|
||||||
@ -48,16 +16,12 @@ Patch0: %{name}-no-hamcrest-src.patch
|
|||||||
|
|
||||||
BuildRequires: ant
|
BuildRequires: ant
|
||||||
BuildRequires: ant-contrib
|
BuildRequires: ant-contrib
|
||||||
BuildRequires: jpackage-utils >= 0:1.7.4
|
BuildRequires: java-devel
|
||||||
BuildRequires: java-devel >= 1:1.6.0
|
|
||||||
BuildRequires: hamcrest
|
BuildRequires: hamcrest
|
||||||
BuildRequires: perl(Digest::MD5)
|
BuildRequires: perl(Digest::MD5)
|
||||||
|
|
||||||
Requires: hamcrest
|
Requires: hamcrest
|
||||||
Requires: java-headless >= 1:1.6.0
|
Requires: java-headless
|
||||||
|
|
||||||
Provides: junit4 = %{epoch}:%{version}-%{release}
|
|
||||||
Obsoletes: junit4 < %{epoch}:%{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
JUnit is a regression testing framework written by Erich Gamma and Kent Beck.
|
JUnit is a regression testing framework written by Erich Gamma and Kent Beck.
|
||||||
@ -66,30 +30,20 @@ Source Software, released under the Common Public License Version 1.0 and
|
|||||||
hosted on GitHub.
|
hosted on GitHub.
|
||||||
|
|
||||||
%package manual
|
%package manual
|
||||||
Group: Documentation
|
|
||||||
Summary: Manual for %{name}
|
Summary: Manual for %{name}
|
||||||
Provides: junit4-manual = %{epoch}:%{version}-%{release}
|
|
||||||
Obsoletes: junit4-manual < %{epoch}:%{version}-%{release}
|
|
||||||
|
|
||||||
%description manual
|
%description manual
|
||||||
Documentation for %{name}.
|
Documentation for %{name}.
|
||||||
|
|
||||||
%package javadoc
|
%package javadoc
|
||||||
Group: Documentation
|
|
||||||
Summary: Javadoc for %{name}
|
Summary: Javadoc for %{name}
|
||||||
Requires: jpackage-utils
|
|
||||||
Provides: junit4-javadoc = %{epoch}:%{version}-%{release}
|
|
||||||
Obsoletes: junit4-javadoc < %{epoch}:%{version}-%{release}
|
|
||||||
|
|
||||||
%description javadoc
|
%description javadoc
|
||||||
Javadoc for %{name}.
|
Javadoc for %{name}.
|
||||||
|
|
||||||
%package demo
|
%package demo
|
||||||
Group: Development/Libraries
|
|
||||||
Summary: Demos for %{name}
|
Summary: Demos for %{name}
|
||||||
Requires: %{name} = %{epoch}:%{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Provides: junit4-demo = %{epoch}:%{version}-%{release}
|
|
||||||
Obsoletes: junit4-demo < %{epoch}:%{version}-%{release}
|
|
||||||
|
|
||||||
%description demo
|
%description demo
|
||||||
Demonstrations and samples for %{name}.
|
Demonstrations and samples for %{name}.
|
||||||
@ -104,6 +58,9 @@ cp build/maven/junit-pom-template.xml pom.xml
|
|||||||
|
|
||||||
ln -s $(build-classpath hamcrest/core) lib/hamcrest-core-1.3.jar
|
ln -s $(build-classpath hamcrest/core) lib/hamcrest-core-1.3.jar
|
||||||
|
|
||||||
|
# InaccessibleBaseClassTest fails with Java 8
|
||||||
|
sed -i /InaccessibleBaseClassTest/d src/test/java/org/junit/tests/AllTests.java
|
||||||
|
|
||||||
%build
|
%build
|
||||||
ant dist -Dversion-status=
|
ant dist -Dversion-status=
|
||||||
|
|
||||||
@ -117,8 +74,6 @@ zip -u %{name}%{version}/%{name}-%{version}.jar META-INF/MANIFEST.MF
|
|||||||
# jars
|
# jars
|
||||||
install -d -m 755 %{buildroot}%{_javadir}
|
install -d -m 755 %{buildroot}%{_javadir}
|
||||||
install -m 644 %{name}%{version}/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
install -m 644 %{name}%{version}/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
||||||
# Many packages still use the junit4.jar directly
|
|
||||||
ln -s %{_javadir}/%{name}.jar %{buildroot}%{_javadir}/%{name}4.jar
|
|
||||||
|
|
||||||
# pom
|
# pom
|
||||||
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
||||||
@ -135,12 +90,8 @@ install -d -m 755 %{buildroot}%{_datadir}/%{name}/demo/%{name}
|
|||||||
cp -pr %{name}%{version}/%{name}/* %{buildroot}%{_datadir}/%{name}/demo/%{name}
|
cp -pr %{name}%{version}/%{name}/* %{buildroot}%{_datadir}/%{name}/demo/%{name}
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files -f .mfiles
|
||||||
%doc LICENSE README CODING_STYLE
|
%doc LICENSE README CODING_STYLE
|
||||||
%{_javadir}/%{name}.jar
|
|
||||||
%{_javadir}/%{name}4.jar
|
|
||||||
%{_mavenpomdir}/*
|
|
||||||
%{_mavendepmapfragdir}/*
|
|
||||||
|
|
||||||
%files demo
|
%files demo
|
||||||
%doc LICENSE
|
%doc LICENSE
|
||||||
@ -155,6 +106,11 @@ cp -pr %{name}%{version}/%{name}/* %{buildroot}%{_datadir}/%{name}/demo/%{name}
|
|||||||
%doc junit%{version}/doc/*
|
%doc junit%{version}/doc/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed May 21 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.11-9
|
||||||
|
- Update to current packaging guidelines
|
||||||
|
- Drop old Obsoletes/Provides for junit4 rename
|
||||||
|
- Disable test which fails with Java 8
|
||||||
|
|
||||||
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:4.11-8
|
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:4.11-8
|
||||||
- Use Requires: java-headless rebuild (#1067528)
|
- Use Requires: java-headless rebuild (#1067528)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user