f66e02
%global		upstream_name    scram
f66e02
%global		upstream_version 1.0.0-beta.2
f66e02
f66e02
Name:		ongres-%upstream_name
f66e02
Version:	%(echo %upstream_version | sed 's/-/~/g')
f66e02
Release:	5%{?dist}
f66e02
Summary:	Salted Challenge Response Authentication Mechanism (SCRAM) - Java Implementation
f66e02
License:	BSD
f66e02
URL:		https://github.com/ongres/%upstream_name
f66e02
Source0:	https://github.com/ongres/%upstream_name/archive/%upstream_version/%upstream_name-%upstream_version.tar.gz
f66e02
BuildRequires:	maven-local
f66e02
BuildArch:	noarch
f66e02
f66e02
%description
f66e02
This is a Java implementation of SCRAM (Salted Challenge Response
f66e02
Authentication Mechanism) which is part of the family of Simple
f66e02
Authentication and Security Layer (SASL, RFC 4422) authentication
f66e02
mechanisms. It is described as part of RFC 5802 and RFC7677.
f66e02
f66e02
%package client
f66e02
Summary:	Client for %{name}
f66e02
f66e02
%description client
f66e02
This package contains the client for %{name}
f66e02
f66e02
%package javadoc
f66e02
Summary:	Javadoc for %{name}
f66e02
f66e02
%description javadoc
f66e02
This package contains javadoc for %{name}
f66e02
f66e02
%package parent
f66e02
Summary:	Parent POM of %{name}
f66e02
f66e02
%description parent
f66e02
This package contains the %{name} parent POM.
f66e02
f66e02
%prep
f66e02
%autosetup -p1 -n "%upstream_name-%upstream_version"
f66e02
find \( -name '*.jar' -o -name '*.class' \) -delete
f66e02
%pom_remove_plugin :nexus-staging-maven-plugin
f66e02
%pom_remove_plugin :maven-source-plugin
f66e02
%pom_remove_plugin :maven-dependency-plugin client
f66e02
%pom_remove_plugin -r :maven-javadoc-plugin
f66e02
f66e02
%build
f66e02
%mvn_build -s
f66e02
f66e02
%install
f66e02
%mvn_install
f66e02
f66e02
%files -f .mfiles-common
f66e02
%license LICENSE
f66e02
f66e02
%files client -f .mfiles-client
f66e02
%license LICENSE
f66e02
f66e02
%files javadoc -f .mfiles-javadoc
f66e02
%license LICENSE
f66e02
f66e02
%files parent -f .mfiles-parent
f66e02
%license LICENSE
f66e02
f66e02
%changelog
f66e02
* Wed May 30 2018 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0.0~beta.2-5
f66e02
- Remove explicit invocation of maven-javadoc-plugin
f66e02
f66e02
* Tue May 22 2018 Pavel Raiskup <praiskup@redhat.com> - 1.0.0~beta.2-4
f66e02
- BR javadoc maven plugin explicitly
f66e02
- use nicer Source0 format
f66e02
f66e02
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0~beta.2-3
f66e02
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f66e02
f66e02
* Mon Nov 27 2017 Pavel Raiskup <praiskup@redhat.com> - 1.0.0~beta.2-2
f66e02
- drop potential pre-compiled files from release tarball
f66e02
f66e02
* Fri Nov 24 2017 Augusto Caringi <acaringi@redhat.com> 1.0.0~beta.2-1
f66e02
- initial rpm