febe695
%global namedreltag .Final
febe695
%global namedversion %{version}%{?namedreltag}
febe695
8b167b3
Name:          picketbox-xacml
8b167b3
# Newer release are available here https://github.com/picketbox/security-xacml/tags
8b167b3
Version:       2.0.8
e56696c
Release:       8%{?dist}
8b167b3
Summary:       JBoss XACML
8b167b3
# BSD: most of the code in ./jboss-sunxacml
8b167b3
# see ./jboss-sunxacml/src/main/java/org/jboss/security/xacml/sunxacml/AbstractPolicy.java as example
8b167b3
License:       BSD and LGPLv2+
8b167b3
URL:           http://picketbox.jboss.org/
8b167b3
# svn export http://anonsvn.jboss.org/repos/jbossas/projects/security/security-xacml/tags/2.0.8.Final/ picketbox-xacml-2.0.8.Final
8b167b3
# tar cafJ picketbox-xacml-2.0.8.Final.tar.xz picketbox-xacml-2.0.8.Final
8b167b3
Source0:       %{name}-%{namedversion}.tar.xz
8b167b3
8b167b3
BuildArch:     noarch
8b167b3
8b167b3
BuildRequires: maven-local
8b167b3
BuildRequires: mvn(org.jboss:jboss-parent:pom:)
8b167b3
BuildRequires: mvn(org.picketbox:picketbox-commons)
e56696c
BuildRequires: mvn(xml-apis:xml-apis)
febe695
febe695
%description
febe695
JBoss XACML Library
febe695
febe695
%package javadoc
8b167b3
Summary:       Javadoc for %{name}
febe695
febe695
%description javadoc
febe695
This package contains the API documentation for %{name}.
febe695
febe695
%prep
febe695
%setup -q -n %{name}-%{namedversion}
8b167b3
8b167b3
%pom_disable_module assembly
8b167b3
8b167b3
%pom_change_dep -r :xml-apis xml-apis: jboss-sunxacml jboss-xacml
8b167b3
8b167b3
# https://issues.jboss.org/browse/SECURITY-949
8b167b3
cp -p jboss-sunxacml/src/main/resources/licenses/JBossORG-EULA.txt .
8b167b3
cp -p jboss-sunxacml/src/main/resources/licenses/sunxacml-license.txt .
febe695
febe695
rm .classpath
febe695
07a51d5
%mvn_file :jboss-xacml %{name}
07a51d5
%mvn_file :jboss-sunxacml picketbox-sunxacml
07a51d5
%mvn_alias :jboss-xacml org.jboss.security:jbossxacml
07a51d5
%mvn_package ::pom: __noinstall
07a51d5
febe695
%build
febe695
# Disabled tests because OpenDS is needed
07a51d5
%mvn_build -f
febe695
febe695
%install
07a51d5
%mvn_install
07a51d5
07a51d5
%files -f .mfiles
8b167b3
%license JBossORG-EULA.txt 
07a51d5
07a51d5
%files javadoc -f .mfiles-javadoc
8b167b3
%license JBossORG-EULA.txt sunxacml-license.txt
febe695
febe695
%changelog
e56696c
* Mon Oct 14 2019 Fabio Valentini <decathorpe@gmail.com> - 2.0.8-8
e56696c
- Remove useless maven-release-plugin BR to fix builds.
e56696c
766db73
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.8-7
766db73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
766db73
d2b0254
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.8-6
d2b0254
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
d2b0254
fe3ef54
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.8-5
fe3ef54
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
fe3ef54
5e2f3ce
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.8-4
5e2f3ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5e2f3ce
73e95fb
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.8-3
73e95fb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
73e95fb
0607980
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.8-2
0607980
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
0607980
8b167b3
* Fri Jul 15 2016 gil cattaneo <puntogil@libero.it> 2.0.8-1
8b167b3
- updated to 2.0.8
8b167b3
- use POM macros
8b167b3
- update URL field
8b167b3
- remove some rpmlint problems
8b167b3
- add license files
8b167b3
9b9fe73
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.7-11
9b9fe73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
9b9fe73
bc0f821
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.7-10
bc0f821
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
bc0f821
90c1a0a
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.7-9
90c1a0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
90c1a0a
07a51d5
* Tue Apr 15 2014 Michael Simacek <msimacek@redhat.com> - 2.0.7-8
07a51d5
- Use mvn_build
07a51d5
3d8c29e
* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 2.0.7-7
3d8c29e
- Use Requires: java-headless rebuild (#1067528)
3d8c29e
b295fb3
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.7-6
b295fb3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
b295fb3
3b374b3
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.7-5
3b374b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
3b374b3
Stanislav Ochotnicky af15c36
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 2.0.7-4
Stanislav Ochotnicky af15c36
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
Stanislav Ochotnicky af15c36
- Replace maven BuildRequires with maven-local
Stanislav Ochotnicky af15c36
400544e
* Mon Aug 6 2012 Ricardo Arguello <ricardo@fedoraproject.org> 2.0.7-3
400544e
- Added BR: maven-enforcer-plugin
400544e
9e77929
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.7-2
9e77929
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
9e77929
febe695
* Fri Mar 2 2012 Ricardo Arguello <ricardo@fedoraproject.org> 2.0.7-1
febe695
- Updated to 2.0.7
febe695
- Relocated jars to _javadir
febe695
febe695
* Sun Feb 19 2012 Ricardo Arguello <ricardo@fedoraproject.org> 2.0.6-2
febe695
- Fixed summary, description and URL
febe695
febe695
* Mon Nov 21 2011 Marek Goldmann <mgoldman@redhat.com> 2.0.6-1
febe695
- Initial packaging