1 |
%global namedreltag .SP1 |
2 |
%global namedversion %{version}%{?namedreltag} |
3 |
|
4 |
Name: jboss-negotiation |
5 |
Version: 2.2.0 |
6 |
Release: %mkrel 0.1%{namedreltag}.1 |
7 |
Summary: The JBoss Negotiation Project |
8 |
Group: Development/Java |
9 |
License: LGPLv2+ |
10 |
URL: http://www.jboss.org/picketlink/Negotiation |
11 |
# svn export http://anonsvn.jboss.org/repos/jbossas/projects/security/security-negotiation/tags/security-negotiation-2.2.0.SP1/ jboss-negotiation-2.2.0.SP1 |
12 |
# tar czf jboss-negotiation-2.2.0.SP1-src-svn.tar.gz jboss-negotiation-2.2.0.SP1 |
13 |
Source0: jboss-negotiation-%{namedversion}-src-svn.tar.gz |
14 |
|
15 |
BuildRequires: java-devel |
16 |
BuildRequires: jboss-parent |
17 |
BuildRequires: jpackage-utils |
18 |
|
19 |
BuildRequires: maven |
20 |
BuildRequires: maven-compiler-plugin |
21 |
BuildRequires: maven-install-plugin |
22 |
BuildRequires: maven-jar-plugin |
23 |
BuildRequires: maven-javadoc-plugin |
24 |
BuildRequires: maven-surefire-plugin |
25 |
BuildRequires: maven-war-plugin |
26 |
BuildRequires: maven-surefire-provider-junit4 |
27 |
|
28 |
BuildRequires: jboss-logging |
29 |
BuildRequires: jboss-servlet-3.0-api |
30 |
BuildRequires: jbossweb |
31 |
BuildRequires: picketbox |
32 |
BuildRequires: picketbox-commons |
33 |
|
34 |
Requires: jboss-logging |
35 |
Requires: jboss-servlet-3.0-api |
36 |
Requires: jbossweb |
37 |
Requires: picketbox |
38 |
Requires: picketbox-commons |
39 |
|
40 |
Requires: java |
41 |
Requires: jpackage-utils |
42 |
BuildArch: noarch |
43 |
|
44 |
%description |
45 |
Negotiation project provides SPNEGO/Kerberos support in JBoss. |
46 |
|
47 |
What does it provide? |
48 |
|
49 |
1. Tomcat Authenticator. |
50 |
2. JAAS Login Module. |
51 |
|
52 |
These two components provide the SPNego support. |
53 |
|
54 |
%package javadoc |
55 |
Summary: Javadocs for %{name} |
56 |
Group: Development/Java |
57 |
Requires: jpackage-utils |
58 |
|
59 |
%description javadoc |
60 |
This package contains the API documentation for %{name}. |
61 |
|
62 |
%prep |
63 |
%setup -q -n %{name}-%{namedversion} |
64 |
sed -i "s|<module>jboss-negotiation-toolkit</module>|<!--module>jboss-negotiation-toolkit</module-->|" pom.xml |
65 |
|
66 |
%build |
67 |
|
68 |
mvn-rpmbuild install javadoc:aggregate |
69 |
|
70 |
%install |
71 |
|
72 |
mkdir -p %{buildroot}%{_javadir}/%{name} |
73 |
|
74 |
mkdir -p %{buildroot}%{_mavenpomdir} |
75 |
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP.%{name}-main.pom |
76 |
%add_maven_depmap JPP.%{name}-main.pom |
77 |
install -pm 644 parent/pom.xml %{buildroot}%{_mavenpomdir}/JPP.%{name}-parent.pom |
78 |
%add_maven_depmap JPP.%{name}-parent.pom |
79 |
|
80 |
for m in common extras net ntlm spnego; do |
81 |
install -pm 644 jboss-negotiation-${m}/target/jboss-negotiation-${m}.jar %{buildroot}%{_javadir}/%{name}/${m}.jar |
82 |
install -pm 644 jboss-negotiation-${m}/pom.xml %{buildroot}%{_mavenpomdir}/JPP.%{name}-${m}.pom |
83 |
%add_maven_depmap JPP.%{name}-${m}.pom %{name}/${m}.jar |
84 |
done |
85 |
|
86 |
mkdir -p %{buildroot}%{_javadocdir}/%{name} |
87 |
cp -rp target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name} |
88 |
|
89 |
%files |
90 |
%{_javadir}/%{name}/*.jar |
91 |
%{_mavenpomdir}/JPP.%{name}-*.pom |
92 |
%{_mavendepmapfragdir}/%{name} |
93 |
|
94 |
%files javadoc |
95 |
%{_javadocdir}/%{name} |