/[packages]/cauldron/picketbox-xacml/current/SPECS/picketbox-xacml.spec
ViewVC logotype

Contents of /cauldron/picketbox-xacml/current/SPECS/picketbox-xacml.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 330517 - (show annotations) (download)
Thu Dec 13 22:04:05 2012 UTC (9 years, 5 months ago) by dmorgan
File size: 2650 byte(s)
New version
1 %global namedreltag .Final
2 %global namedversion %{version}%{?namedreltag}
3
4 Name: picketbox-xacml
5 Version: 2.0.7
6 Release: %mkrel 1
7 Summary: JBoss XACML
8 Group: Development/Java
9 License: LGPLv2+
10 URL: http://www.jboss.org/picketbox
11
12 # svn export http://anonsvn.jboss.org/repos/jbossas/projects/security/security-xacml/tags/2.0.7.Final/ picketbox-xacml-2.0.7.Final
13 # tar cafJ picketbox-xacml-2.0.7.Final.tar.xz picketbox-xacml-2.0.7.Final
14 Source0: %{name}-%{namedversion}.tar.xz
15 Patch0: %{name}-%{namedversion}-pom.patch
16
17 BuildArch: noarch
18
19 BuildRequires: jpackage-utils
20 BuildRequires: java-devel
21 BuildRequires: maven
22 BuildRequires: maven-compiler-plugin
23 BuildRequires: maven-enforcer-plugin
24 BuildRequires: maven-install-plugin
25 BuildRequires: maven-jar-plugin
26 BuildRequires: maven-javadoc-plugin
27 BuildRequires: junit4
28 BuildRequires: picketbox-commons
29
30 Requires: picketbox-commons
31 Requires: jpackage-utils
32 Requires: java
33
34 %description
35 JBoss XACML Library
36
37 %package javadoc
38 Summary: Javadocs for %{name}
39 Group: Documentation
40 Requires: jpackage-utils
41
42 %description javadoc
43 This package contains the API documentation for %{name}.
44
45 %prep
46 %setup -q -n %{name}-%{namedversion}
47 %patch0 -p1
48
49 rm .classpath
50
51 %build
52 # Disabled tests because OpenDS is needed
53 mvn-rpmbuild -Dmaven.test.skip=true install javadoc:aggregate
54
55 %install
56 # JAR
57 install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
58 install -pm 644 jboss-xacml/target/jboss-xacml-%{namedversion}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
59 install -pm 644 jboss-sunxacml/target/jboss-sunxacml-%{namedversion}.jar $RPM_BUILD_ROOT%{_javadir}/picketbox-sunxacml.jar
60
61 # POM
62 install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
63 install -pm 644 parent/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}-parent.pom
64 install -pm 644 jboss-xacml/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
65 install -pm 644 jboss-sunxacml/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-picketbox-sunxacml.pom
66 install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}-main.pom
67
68 # DEPMAP
69 %add_maven_depmap JPP-%{name}.pom %{name}.jar -a "org.jboss.security:jbossxacml"
70 %add_maven_depmap JPP-picketbox-sunxacml.pom picketbox-sunxacml.jar
71 %add_maven_depmap JPP-%{name}-parent.pom
72 %add_maven_depmap JPP-%{name}-main.pom
73
74 # APIDOCS
75 install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
76 cp -rp target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
77
78 %files
79 %{_mavenpomdir}/*
80 %{_mavendepmapfragdir}/*
81 %{_javadir}/*
82
83 %files javadoc
84 %{_javadocdir}/%{name}
85

  ViewVC Help
Powered by ViewVC 1.1.28