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