signpost-core/signpost-core.spec

82 lines
2.6 KiB
RPMSpec
Raw Permalink Normal View History

2020-08-27 14:39:51 +08:00
%global githash 3017160f847564879520c564b4bb04abb7b680fe
Name: signpost-core
Version: 1.2.1.2
Release: 2
2020-08-27 14:39:51 +08:00
Summary: A simple, light-weight, and modular OAuth client library for the Java platform
License: ASL 2.0
URL: https://github.com/mttkay/signpost
Source0: https://github.com/mttkay/signpost/archive/%{githash}/signpost-%{githash}.tar.gz
Source1: http://www.apache.org/licenses/LICENSE-2.0.txt
BuildArch: noarch
BuildRequires: maven-local mvn(commons-codec:commons-codec) mvn(junit:junit)
BuildRequires: mvn(org.apache.httpcomponents:httpclient)
BuildRequires: mvn(org.apache.httpcomponents:httpcore)
BuildRequires: mvn(org.apache.maven.plugins:maven-release-plugin)
BuildRequires: mvn(org.mockito:mockito-core)
%description
Signpost is the easy and intuitive solution for signing HTTP messages on the
Java platform in conformance with the OAuth Core 1.0a standard.
Signpost follows a modular and flexible design, allowing you to combine it with
different HTTP messaging layers
%package -n oauth-signpost
Summary: Parent POM for %{name}
%description -n oauth-signpost
This package contains the Parent POM for %{name}.
%package -n signpost-commonshttp4
Summary: Signpost Apache HttpClient Supports
%description -n signpost-commonshttp4
Signpost Apache HttpClient Supports.
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
This package contains the API documentation for %{name}.
%prep
%autosetup -n signpost-%{githash} -p1
#delete testsuits because of updating mockito
rm -rf signpost-core/src/test/
rm -rf signpost-commonshttp4/src/test/
rm -rf signpost-jetty6/src/test/
# Remove pre-built JAR and class files
find -name '*.jar' -delete
find -name '*.class' -delete
cp -p %{SOURCE1} LICENSE
sed -i 's/\r//' LICENSE
# Unneeded modules
%pom_disable_module signpost-jetty6
# Resolve javadoc doclint problems
%pom_remove_plugin :maven-javadoc-plugin
# Unneeded task
%pom_remove_plugin -r :maven-antrun-plugin
%mvn_file :%{name} %{name}
%mvn_file :signpost-commonshttp4 signpost-commonshttp4
%build
%mvn_build -s
%install
%mvn_install
%files -f .mfiles-%{name}
%doc README.markdown
%license LICENSE
%files -n oauth-signpost -f .mfiles-oauth-signpost
%license LICENSE
%files -n signpost-commonshttp4 -f .mfiles-signpost-commonshttp4
%files javadoc -f .mfiles-javadoc
%license LICENSE
%changelog
* Tue Nov 22 2022 wulei <wulei80@h-partners.com> - 1.2.1.2-2
- Modifying the source code package
2020-08-27 14:39:51 +08:00
* Thu Aug 27 2020 wutao <wutao61@huawei.com> - 1.2.1.2-1
- package init