]> git.pld-linux.org Git - packages/java-xmlgraphics-batik.git/commitdiff
- makes building docs optional (do not BR apache-forrest)
authorpawelz <pawelz@pld-linux.org>
Mon, 29 Dec 2008 01:12:35 +0000 (01:12 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    java-xmlgraphics-batik.spec -> 1.23

java-xmlgraphics-batik.spec

index f7a027a63c3d40a22d5853a5614d17c7fb41293c..f1e4503a0cc31b6d1b7c57aa5dd086e3443748b5 100644 (file)
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_with    docs            # build with docs (require apache-forrest)
+#
 Summary:       Java SVG support
 Summary(pl.UTF-8):     Wsparcie dla SVG dla jÄ™zyka Java
 Name:          batik
@@ -7,8 +11,9 @@ License:       Apache
 Group:         Applications/Publishing/XML/Java
 Source0:       http://www.apache.org/dist/xmlgraphics/batik/%{name}-src-%{version}.zip
 # Source0-md5: c117ca2241907f62a2b3031167ebf917
+Patch0:                %{name}-nodocs.patch
 URL:           http://xml.apache.org/batik/
-BuildRequires: forrest
+%{?with_docs:BuildRequires:    apache-forrest}
 BuildRequires: jdk
 BuildRequires: jpackage-utils
 BuildRequires: unzip
@@ -38,6 +43,10 @@ Dokumentacja dla biblioteki Batik.
 %prep
 %setup -q
 
+%if %{without docs}
+%patch0 -p0
+%endif
+
 %build
 unset CLASSPATH || :
 export JAVA_HOME="%{java_home}"
@@ -63,6 +72,8 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{_javaclassdir}/%{name}/lib
 %{_javaclassdir}/%{name}/lib/*.jar
 
+%if %{with docs}
 %files doc
 %defattr(644,root,root,755)
 %doc %{name}-%{version}/docs/* %{name}-%{version}/samples
+%endif
This page took 0.066877 seconds and 4 git commands to generate.