# Download sources manually:
wget -c http://downloads.atlassian.com/software/crowd/downloads/atlassian-crowd-2.0.4-war.zip
wget -c http://www.atlassian.com/about/licensing/Atlassian_EULA_3.0.pdf
+wget -c http://repository.atlassian.com/org.apache.felix/jars/org.apache.felix.main-2.0.5.jar
%endif
%include /usr/lib/rpm/macros.java
NoSource: 1
Source2: tomcat-context.xml
Source3: %{name}-init.properties
+Source4: org.apache.felix.main-2.0.5.jar
+# NoSource4-md5: edfbdb9fd59aeb21022391e2934f75c0
+NoSource: 4
URL: http://www.atlassian.com/software/crowd/default.jsp
BuildRequires: jpackage-utils
BuildRequires: rpm-javaprov
cp %{SOURCE1} .
+# http://confluence.atlassian.com/pages/viewpage.action?pageId=208962752
+find -name 'org.apache.felix.main*.jar' | xargs rm
+cp %{SOURCE4} WEB-INF/lib
+
# TODO set paths for logs
# sed -i 's,^\(log4j\.appender\.[a-z]*\.File\)=\(.*\)$,\1=/var/log/crowd/\2,' webapp/WEB-INF/classes/log4j.properties