|
|
af188cb |
Name: acegisecurity
|
|
|
af188cb |
Version: 1.0.7
|
|
|
dfac2de |
Release: 9%{?dist}
|
|
|
af188cb |
Summary: Java/J2EE application security framework
|
|
|
af188cb |
License: ASL 2.0
|
|
|
af188cb |
URL: http://sourceforge.net/projects/acegisecurity
|
|
|
af188cb |
BuildArch: noarch
|
|
|
af188cb |
|
|
|
af188cb |
# sh create-tarball.sh
|
|
|
af188cb |
Source0: %{name}-%{version}.tar.gz
|
|
|
af188cb |
Source1: http://repo1.maven.org/maven2/org/%{name}/acegi-security/%{version}/acegi-security-%{version}.pom
|
|
|
af188cb |
Source2: http://www.apache.org/licenses/LICENSE-2.0.txt
|
|
|
af188cb |
Source3: create-tarball.sh
|
|
|
af188cb |
|
|
|
af188cb |
# we don't have and don't need all the dependencies of acegisecurity thus build
|
|
|
af188cb |
# this package against these stubs only
|
|
|
af188cb |
Patch0: 0001-Stubs-for-casclient.patch
|
|
|
af188cb |
Patch1: 0001-Stubs-for-Spring-Framework-2.patch
|
|
|
af188cb |
|
|
|
af188cb |
Patch2: 0001-Remove-unmappable-characters.patch
|
|
|
ff51cc9 |
Patch3: 0001-Port-to-Spring-Framework-3.patch
|
|
|
af188cb |
|
|
|
af188cb |
BuildRequires: maven-local
|
|
|
af188cb |
BuildRequires: mvn(commons-codec:commons-codec)
|
|
|
af188cb |
BuildRequires: mvn(commons-collections:commons-collections)
|
|
|
af188cb |
BuildRequires: mvn(commons-lang:commons-lang)
|
|
|
af188cb |
BuildRequires: mvn(commons-logging:commons-logging)
|
|
|
af188cb |
BuildRequires: mvn(javax.servlet:jsp-api)
|
|
|
af188cb |
BuildRequires: mvn(javax.servlet:servlet-api)
|
|
|
af188cb |
BuildRequires: mvn(log4j:log4j)
|
|
|
af188cb |
BuildRequires: mvn(net.sf.ehcache:ehcache)
|
|
|
af188cb |
BuildRequires: mvn(org.aspectj:aspectjrt)
|
|
|
af188cb |
BuildRequires: mvn(org.jasig.cas.client:cas-client-core)
|
|
|
af188cb |
BuildRequires: mvn(org.springframework:spring-beans)
|
|
|
af188cb |
BuildRequires: mvn(org.springframework:spring-context)
|
|
|
af188cb |
BuildRequires: mvn(org.springframework:spring-core)
|
|
|
af188cb |
BuildRequires: mvn(org.springframework:spring-jdbc)
|
|
|
af188cb |
BuildRequires: mvn(org.springframework:spring-test)
|
|
|
af188cb |
BuildRequires: mvn(org.springframework:spring-web)
|
|
|
af188cb |
BuildRequires: mvn(oro:oro)
|
|
|
af188cb |
|
|
|
af188cb |
%description
|
|
|
af188cb |
Acegi Security is a Java/Java EE framework that provides advanced
|
|
|
af188cb |
authentication, authorization and other comprehensive security features for
|
|
|
af188cb |
enterprise applications. In addition to having a comprehensive list of
|
|
|
af188cb |
security functionality, Acegi Security is very configurable and employs the
|
|
|
af188cb |
Spring Framework for configuration, it allows for reuse and portability of
|
|
|
af188cb |
security components, and it can also be used with non-Spring applications.
|
|
|
af188cb |
|
|
|
af188cb |
|
|
|
af188cb |
%package javadoc
|
|
|
af188cb |
Summary: Javadoc for %{name}
|
|
|
af188cb |
|
|
|
af188cb |
%description javadoc
|
|
|
af188cb |
API documentation for %{name}.
|
|
|
af188cb |
|
|
|
af188cb |
%prep
|
|
|
af188cb |
%setup -q
|
|
|
af188cb |
|
|
|
af188cb |
%patch0 -p1
|
|
|
af188cb |
%patch1 -p1
|
|
|
af188cb |
%patch2 -p1
|
|
|
ff51cc9 |
%patch3 -p1
|
|
|
af188cb |
|
|
|
af188cb |
cp %{SOURCE1} pom.xml
|
|
|
af188cb |
cp %{SOURCE2} license.txt
|
|
|
af188cb |
|
|
|
af188cb |
# missing parent pom
|
|
|
af188cb |
%pom_remove_parent
|
|
|
af188cb |
%pom_xpath_inject "pom:project" "<groupId>org.acegisecurity</groupId>"
|
|
|
af188cb |
%pom_xpath_inject "pom:project" "<version>%{version}</version>"
|
|
|
af188cb |
|
|
|
af188cb |
# unneeded/unavailable deps
|
|
|
af188cb |
%pom_remove_dep cas:casclient
|
|
|
af188cb |
%pom_remove_dep taglibs:standard
|
|
|
af188cb |
%pom_remove_dep hsqldb:hsqldb
|
|
|
af188cb |
%pom_remove_dep org.apache.directory.server:apacheds-core
|
|
|
af188cb |
%pom_remove_dep org.slf4j:slf4j-log4j12
|
|
|
af188cb |
%pom_remove_dep jmock:jmock
|
|
|
af188cb |
|
|
|
af188cb |
# TODO: remove this
|
|
|
86dcc2a |
#%%pom_remove_dep aspectj:aspectjrt
|
|
|
86dcc2a |
#%%pom_add_dep org.aspectj:aspectjrt
|
|
|
af188cb |
|
|
|
af188cb |
# fix springframework gId:aId
|
|
|
af188cb |
# TODO: upstream moved a lot of classes to different JARs in springframework
|
|
|
af188cb |
# 3.x, should we add aliases?
|
|
|
af188cb |
%pom_remove_dep org.springframework:spring-remoting
|
|
|
af188cb |
%pom_remove_dep org.springframework:spring-jdbc
|
|
|
af188cb |
%pom_remove_dep org.springframework:spring-support
|
|
|
af188cb |
%pom_remove_dep org.springframework:spring-web
|
|
|
af188cb |
%pom_remove_dep org.springframework:spring-mock
|
|
|
af188cb |
%pom_remove_dep org.springframework:spring-ldap
|
|
|
af188cb |
%pom_add_dep org.springframework:spring-context
|
|
|
af188cb |
%pom_add_dep org.springframework:spring-beans
|
|
|
af188cb |
%pom_add_dep org.springframework:spring-jdbc
|
|
|
86dcc2a |
%pom_add_dep org.springframework:spring-web "<optional>true</optional>"
|
|
|
86dcc2a |
%pom_add_dep org.springframework:spring-test "<optional>true</optional>"
|
|
|
af188cb |
|
|
|
af188cb |
# don't add classes containing only stubs into the final jar
|
|
|
af188cb |
%pom_xpath_inject "pom:project/pom:build" \
|
|
|
af188cb |
"<plugins>
|
|
|
af188cb |
<plugin>
|
|
|
af188cb |
<artifactId>maven-jar-plugin</artifactId>
|
|
|
af188cb |
<version>2.4</version>
|
|
|
af188cb |
<executions>
|
|
|
af188cb |
<execution>
|
|
|
af188cb |
<id>default-jar</id>
|
|
|
af188cb |
<phase>package</phase>
|
|
|
af188cb |
<goals>
|
|
|
af188cb |
<goal>jar</goal>
|
|
|
af188cb |
</goals>
|
|
|
af188cb |
<configuration>
|
|
|
af188cb |
<excludes>
|
|
|
af188cb |
<exclude>edu/**/*</exclude>
|
|
|
af188cb |
<exclude>org/springframework/metadata/Attributes*</exclude>
|
|
|
af188cb |
<exclude>org/springframework/web/bind/RequestUtils*</exclude>
|
|
|
af188cb |
</excludes>
|
|
|
af188cb |
</configuration>
|
|
|
af188cb |
</execution>
|
|
|
af188cb |
</executions>
|
|
|
af188cb |
</plugin>
|
|
|
af188cb |
</plugins>
|
|
|
af188cb |
"
|
|
|
af188cb |
|
|
|
af188cb |
%build
|
|
|
af188cb |
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8
|
|
|
af188cb |
|
|
|
af188cb |
%install
|
|
|
af188cb |
%mvn_install
|
|
|
af188cb |
|
|
|
af188cb |
%files -f .mfiles
|
|
|
af188cb |
%dir %{_javadir}/%{name}
|
|
|
af188cb |
%doc license.txt notice.txt
|
|
|
af188cb |
|
|
|
af188cb |
%files javadoc -f .mfiles-javadoc
|
|
|
af188cb |
%doc license.txt notice.txt
|
|
|
af188cb |
|
|
|
af188cb |
%changelog
|
|
|
dfac2de |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.7-9
|
|
|
dfac2de |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
dfac2de |
|
|
|
e8338cc |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.7-8
|
|
|
e8338cc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
e8338cc |
|
|
|
b094f61 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.7-7
|
|
|
b094f61 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
b094f61 |
|
|
|
97bac20 |
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.7-6
|
|
|
97bac20 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
97bac20 |
|
|
|
a323607 |
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.7-5
|
|
|
a323607 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
a323607 |
|
|
|
86dcc2a |
* Wed Mar 11 2015 Michal Srb <msrb@redhat.com> - 1.0.7-4
|
|
|
86dcc2a |
- Rebuild to remove R on optional dependencies
|
|
|
86dcc2a |
|
|
|
8bda7c0 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.7-3
|
|
|
8bda7c0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
8bda7c0 |
|
|
|
ff51cc9 |
* Wed Apr 02 2014 Michal Srb <msrb@redhat.com> - 1.0.7-2
|
|
|
ff51cc9 |
- Port to Spring Framework 3
|
|
|
ff51cc9 |
|
|
|
af188cb |
* Wed Mar 19 2014 Michal Srb <msrb@redhat.com> - 1.0.7-1
|
|
|
af188cb |
- Initial packaging
|
|
|
af188cb |
|