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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 330516 by dmorgan, Sun Jun 24 10:35:22 2012 UTC revision 330517 by dmorgan, Thu Dec 13 22:04:05 2012 UTC
# Line 1  Line 1 
1  %global namedreltag .Final  %global namedreltag .Final
2  %global namedversion %{version}%{?namedreltag}  %global namedversion %{version}%{?namedreltag}
 Name:          picketbox-xacml  
 Version:       2.0.6  
 Release:       %mkrel 1  
 Summary:       The JBoss XACML Project  
 Group:         Development/Java  
 License:       LGPLv2+  
 Url:           http://www.jboss.org/picketbox  
 # svn export http://anonsvn.jboss.org/repos/jbossas/projects/security/security-xacml/tags/2.0.6.Final/ picketbox-xacml-2.0.6.Final  
 # tar czf picketbox-xacml-2.0.6.Final-src-svn.tar.gz picketbox-xacml-2.0.6.Final  
 Source0:       picketbox-xacml-%{namedversion}-src-svn.tar.gz  
 Source1:       picketbox-xacml-2.0.6.Final-depmap  
 Patch0:        picketbox-xacml-2.0.6.Final-buildfix.patch  
 BuildRequires: java-devel  
 BuildRequires: jboss-parent  
 BuildRequires: jpackage-utils  
   
 # test deps  
 BuildRequires: hsqldb  
 BuildRequires: je32  
 BuildRequires: junit4  
 BuildRequires: opends  
 BuildRequires: tomcat6-servlet-2.5-api  
   
 BuildRequires: maven  
 #BuildRequires: maven-assembly-plugin  
 BuildRequires: maven-compiler-plugin  
 BuildRequires: maven-install-plugin  
 BuildRequires: maven-jar-plugin  
 BuildRequires: maven-javadoc-plugin  
 BuildRequires: maven-release-plugin  
 BuildRequires: maven-surefire-provider-junit4  
   
 # main deps  
 BuildRequires: picketbox-commons  
 BuildRequires: xml-commons-apis  
   
 Requires:      picketbox-commons  
 Requires:      xml-commons-apis  
   
 Requires:      java  
 Requires:      jpackage-utils  
 BuildArch:     noarch  
3    
4  %description  Name:             picketbox-xacml
5  PicketBox is a Java Security Framework that provides Java developers the  Version:          2.0.7
6  following functionality:  Release:          %mkrel 1
7    Summary:          JBoss XACML
8  * Authentication Support.  Group:            Development/Java
9  * Authorization Support.  License:          LGPLv2+
10  * Audit Support.  URL:              http://www.jboss.org/picketbox
11  * Security Mapping Support.  
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  This package contains the JBoss XACML Libraries.  %description
35    JBoss XACML Library
36    
37  %package javadoc  %package javadoc
38  Group:         Development/Java  Summary:          Javadocs for %{name}
39  Summary:       Javadoc for %{name}  Group:            Documentation
40  Requires:      jpackage-utils  Requires:         jpackage-utils
41    
42  %description javadoc  %description javadoc
43  This package contains javadoc for %{name}.  This package contains the API documentation for %{name}.
44    
45  %prep  %prep
46  %setup -q -n %{name}-%{namedversion}  %setup -q -n %{name}-%{namedversion}
47  %patch0 -p1  %patch0 -p1
48    
49  sed -i "s|<module>assembly</module>|<!--module>assembly</module-->|" pom.xml  rm .classpath
50    
51  %build  %build
52    # Disabled tests because OpenDS is needed
53  mvn-rpmbuild -Dmaven.local.depmap.file=%{SOURCE1} install javadoc:aggregate  mvn-rpmbuild -Dmaven.test.skip=true install javadoc:aggregate
54    
55  %install  %install
56    # JAR
57  mkdir -p %{buildroot}%{_javadir}/jboss  install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
58  install -m 644 jboss-xacml/target/jboss-xacml-%{namedversion}.jar \  install -pm 644 jboss-xacml/target/jboss-xacml-%{namedversion}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
59     %{buildroot}%{_javadir}/jboss/%{name}.jar  install -pm 644 jboss-sunxacml/target/jboss-sunxacml-%{namedversion}.jar $RPM_BUILD_ROOT%{_javadir}/picketbox-sunxacml.jar
60  install -pm 644 jboss-sunxacml/target/jboss-sunxacml-%{namedversion}.jar \  
61     %{buildroot}%{_javadir}/jboss/picketbox-sunxacml.jar  # POM
62    install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
63  mkdir -p %{buildroot}%{_mavenpomdir}  install -pm 644 parent/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}-parent.pom
64  install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP.jboss-%{name}-main.pom  install -pm 644 jboss-xacml/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
65  %add_maven_depmap JPP.jboss-%{name}-main.pom  install -pm 644 jboss-sunxacml/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-picketbox-sunxacml.pom
66  install -pm 644 parent/pom.xml %{buildroot}%{_mavenpomdir}/JPP.jboss-%{name}-project.pom  install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}-main.pom
67  %add_maven_depmap JPP.jboss-%{name}-project.pom  
68  install -pm 644 jboss-xacml/pom.xml %{buildroot}%{_mavenpomdir}/JPP.jboss-%{name}.pom  # DEPMAP
69  %add_maven_depmap JPP.jboss-%{name}.pom jboss/%{name}.jar  %add_maven_depmap JPP-%{name}.pom %{name}.jar -a "org.jboss.security:jbossxacml"
70  # -a "org.jboss.security:jbossxacml"  %add_maven_depmap JPP-picketbox-sunxacml.pom picketbox-sunxacml.jar
71  install -pm 644 jboss-sunxacml/pom.xml %{buildroot}%{_mavenpomdir}/JPP.jboss-picketbox-sunxacml.pom  %add_maven_depmap JPP-%{name}-parent.pom
72  %add_maven_depmap JPP.jboss-picketbox-sunxacml.pom jboss/picketbox-sunxacml.jar  %add_maven_depmap JPP-%{name}-main.pom
73    
74  mkdir -p %{buildroot}%{_javadocdir}/%{name}  # APIDOCS
75  cp -rp target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}  install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
76    cp -rp target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
77    
78  %files  %files
79  %{_javadir}/jboss/%{name}.jar  %{_mavenpomdir}/*
80  %{_javadir}/jboss/picketbox-sunxacml.jar  %{_mavendepmapfragdir}/*
81  %{_mavenpomdir}/JPP.jboss-picketbox-*.pom  %{_javadir}/*
 %{_mavendepmapfragdir}/%{name}  
82    
83  %files javadoc  %files javadoc
84  %{_javadocdir}/%{name}  %{_javadocdir}/%{name}
85    

Legend:
Removed from v.330516  
changed lines
  Added in v.330517

  ViewVC Help
Powered by ViewVC 1.1.28