Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-updates-src > by-pkgid > 3f7b5494c6a32fb7668acb7619bed4ee > files > 5

jenkins-remoting-2.53.4-1.mga5.src.rpm

%global shortname remoting
%global webinfdir %{_datadir}/jenkins/webroot/WEB-INF

Name:           jenkins-remoting
Version:        2.53.4
Release:        %mkrel 1
Summary:        Jenkins remoting module

# License is specified in pom file
# The project is under MIT license, but 2 contributed classes
# (FastPipedOutputStream, FastPipedInputStream) are under ASL 2.0
License:        MIT and ASL 2.0
URL:            https://github.com/jenkinsci/remoting
Source0:        https://github.com/jenkinsci/remoting/archive/remoting-%{version}.tar.gz
# License text copied from http://www.opensource.org/licenses/mit-license.php
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt
Source2:        LICENSE-MIT
# TODO possibly upstreamable, need testing
Patch1:         0001-Use-base64-implementation-from-JDK.patch

Patch2:         jenkins-remoting-2.53.3-Xdoclint.patch

BuildArch:      noarch
Group:          Development/Java

BuildRequires:  maven-local
BuildRequires:  mvn(args4j:args4j)
BuildRequires:  mvn(asm:asm-all)
BuildRequires:  mvn(com.google.code.findbugs:jsr305)
BuildRequires:  mvn(com.google.guava:guava)
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-pmd-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-release-plugin)
BuildRequires:  mvn(org.jacoco:jacoco-maven-plugin)
BuildRequires:  mvn(org.jenkins-ci:constant-pool-scanner)
BuildRequires:  mvn(com.google.code.findbugs:annotations)

%description
This package is primarily used by Jenkins for slave node management,
but it could be potentially reused outside of this project.

%package        javadoc
Summary:        Javadoc for %{name}

%description    javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{shortname}-%{shortname}-%{version}

cp %{SOURCE1} LICENSE-ASL
cp %{SOURCE2} .

%patch1 -p1
%patch2 -p1

# Nothing really interesting in parent
%pom_remove_parent

# missing dep org.jenkins-ci:remoting-test-client
%pom_xpath_remove "pom:plugin[pom:artifactId[text()='maven-dependency-plugin']]/pom:executions/pom:execution[pom:id[text()='resgen']]"

# We don't have or don't need following plugins
%pom_remove_plugin :maven-jarsigner-plugin
%pom_remove_plugin :build-helper-maven-plugin
%pom_remove_plugin :animal-sniffer-maven-plugin

# Not really used in source files
%pom_remove_dep :animal-sniffer-annotation

%pom_change_dep :findbugs-annotations com.google.code.findbugs:annotations

# Replace bundled class from commons-io with proper dependency
%pom_xpath_replace "pom:dependency[pom:artifactId[text()='commons-io']]/pom:scope" \
  "<scope>compile</scope>"

%build
# Disabled tests because of missing org.jvnet.hudson:test-annotations
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%dir %{_javadir}/%{name}
%doc LICENSE-MIT LICENSE-ASL
%files javadoc -f .mfiles-javadoc
%doc LICENSE-MIT LICENSE-ASL



%changelog
* Fri Nov 18 2016 daviddavid <daviddavid> 2.53.4-1.mga5
+ Revision: 1068163
- Update to 2.53.4, fixes CVE-2016-9299 (mga#19783)
- Update to 2.53.3
- Resolves: CVE-2016-0792 (mga#18033)
- add patch2 to fix javadoc build on JDK 8 (disabling the super-strict doclint checks)

* Wed Oct 15 2014 umeabot <umeabot> 2.39-3.mga5
+ Revision: 744295
- Second Mageia 5 Mass Rebuild
- Mageia 5 Mass Rebuild

* Sat May 10 2014 dmorgan <dmorgan> 2.39-1.mga5
+ Revision: 621715
- imported package jenkins-remoting


* Wed Apr 16 2014 Michal Srb <msrb@redhat.com> - 2.39-1
- Update to upstream version 2.39

* Thu Apr 03 2014 Michal Srb <msrb@redhat.com> - 2.37-3
- Remove unneeded patch

* Thu Apr 03 2014 Michal Srb <msrb@redhat.com> - 2.37-2
- Remove unneeded pom_ macro

* Thu Apr 03 2014 Michal Srb <msrb@redhat.com> - 2.37-1
- Update to upstream version 2.37

* Tue Apr 01 2014 Michal Srb <msrb@redhat.com> - 2.35-2
- Update to upstream version 2.35

* Fri Dec 06 2013 Michal Srb <msrb@redhat.com> - 2.34-1
- Update to upstream version 2.34

* Mon Nov 25 2013 Michal Srb <msrb@redhat.com> - 2.33-1
- Update to upstream version 2.33

* Mon Sep 02 2013 Michal Srb <msrb@redhat.com> - 2.32-1
- Update to upstream version 2.32

* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.23-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Fri Apr 19 2013 Michal Srb <msrb@redhat.com> - 2.23-1
- Initial package