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