diff --git a/ongres-scram.spec b/ongres-scram.spec new file mode 100644 index 0000000..3c9852a --- /dev/null +++ b/ongres-scram.spec @@ -0,0 +1,63 @@ +Name: ongres-scram +Version: 1.0.0~beta.2 +Release: 7 +Summary: Java Implementation for SCRAM(Salted Challenge Response Authentication Mechanism) +License: BSD +URL: https://github.com/ongres/scram +Source0: https://github.com/ongres/scram/archive/1.0.0-beta.2/scram-1.0.0-beta.2.tar.gz +BuildRequires: maven-local +BuildArch: noarch + +%description +Scram is part of the family of Simple Authentication and Security Layer +authentication mechanisms.It is described as part of RFC 5802 and RFC7677. +this pachage is a Java implementation. + +%package client +Summary: Client for ongres-scram + +%description client +This package contains the client for ongres-scram + +%package help +Summary: Javadoc for ongres-scram + +Provides: %{name}-javadoc = %{version}-%{release} +Obsoletes: %{name}-javadoc < %{version}-%{release} + +%description help +This package contains javadoc for ongres-scram + +%package parent +Summary: Parent POM of ongres-scram + +%description parent +This package contains the ongres-scram parent POM. + +%prep +%autosetup -p1 -n "scram-1.0.0-beta.2" +find \( -name '*.jar' -o -name '*.class' \) -delete +%pom_remove_plugin :nexus-staging-maven-plugin +%pom_remove_plugin :maven-source-plugin +%pom_remove_plugin :maven-dependency-plugin client +%pom_remove_plugin -r :maven-javadoc-plugin + +%build +%mvn_build -s + +%install +%mvn_install + +%files -f .mfiles-common +%license LICENSE + +%files client -f .mfiles-client + +%files help -f .mfiles-javadoc + +%files parent -f .mfiles-parent + +%changelog +* Thu Dec 5 2019 Tianfei - 1.0.0~beta.2-7 +- Package init + diff --git a/scram-1.0.0-beta.2.tar.gz b/scram-1.0.0-beta.2.tar.gz new file mode 100644 index 0000000..6530c31 Binary files /dev/null and b/scram-1.0.0-beta.2.tar.gz differ