]> git.pld-linux.org Git - packages/confluence.git/commitdiff
- bcond_customized (allow user to build confluence with customized templates)
authorpawelz <pawelz@pld-linux.org>
Tue, 26 May 2009 10:08:52 +0000 (10:08 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- S: graphviz (needed for plugin graphviz)
- TODO: more language packs
- rel 0.4

Changed files:
    confluence.spec -> 1.7

confluence.spec

index 47e727f830e18ec9f118745c43a1a1e0011c4f99..54ab79869aad7106c156f293548af4bbd0b77d07 100644 (file)
@@ -1,10 +1,16 @@
 # TODO:
 # - ask atlassian for permission to redistribute it.
+# - install more language packs from
+#   http://confluence.atlassian.com/display/DISC/Language+Pack+Translations
+
+# Conditional build
+%bcond_with    customized      # use patch for confluence-%{version}.jar
+
 %include       /usr/lib/rpm/macros.java
 Summary:       Confluence - Enterprise wiki
 Name:          confluence
 Version:       2.10.3
-Release:       0.3
+Release:       0.4
 License:       Proprietary, not distributable
 Group:         Networking/Daemons/Java/Servlets
 # You can download it from:
@@ -21,11 +27,13 @@ Source5:    confluence-pl_PL-plugin-1.0.jar
 # NoSource5-md5:       b8d219e791a536fd98b1a717747e55bc
 NoSource:      5
 URL:           http://www.atlassian.com/software/confluence/
+%{?with_customized:BuildRequires:      jar}
 BuildRequires: jpackage-utils
 BuildRequires: rpm-javaprov
 BuildRequires: rpmbuild(macros) >= 1.300
 Requires:      jpackage-utils
 Requires:      tomcat
+Suggests:      graphviz
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -53,6 +61,15 @@ Polskie tĹ‚umaczenie Confluence.
 
 cp %{SOURCE4} README.PLD
 
+%if %{with customized}
+mkdir work
+mkdir -p edit-webapp/WEB-INF/lib
+cd work
+jar xf ../confluence/WEB-INF/lib/confluence-2.10.3.jar
+patch -p1 < $RPM_SOURCE_DIR/confluence-customize.patch
+jar cf ../edit-webapp/WEB-INF/lib/confluence-2.10.3.jar *
+%endif
+
 %build
 CLASSPATH=$(build-classpath-directory lib/endorsed)
 %ant
This page took 0.063763 seconds and 4 git commands to generate.