SPECS: mx4j.spec - fix doc bcond

glen glen at pld-linux.org
Wed Jan 31 19:34:12 CET 2007


Author: glen                         Date: Wed Jan 31 18:34:12 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- fix doc bcond

---- Files affected:
SPECS:
   mx4j.spec (1.10 -> 1.11) 

---- Diffs:

================================================================
Index: SPECS/mx4j.spec
diff -u SPECS/mx4j.spec:1.10 SPECS/mx4j.spec:1.11
--- SPECS/mx4j.spec:1.10	Wed Jan 31 19:23:52 2007
+++ SPECS/mx4j.spec	Wed Jan 31 19:34:07 2007
@@ -10,7 +10,7 @@
 Summary(pl):	Implementacja API Javy JMX z otwartymi źródłami
 Name:		mx4j
 Version:	1.1.1
-Release:	0.1
+Release:	0.2
 Epoch:		0
 License:	Apache License
 Group:		Development/Languages/Java
@@ -88,7 +88,7 @@
 required_jars="\
 activation \
 mailapi.jar \
-smtp \
+javamail/smtp \
 jython \
 commons-logging \
 xml-commons-apis \
@@ -125,8 +125,10 @@
 ln -sf %{name}-tools.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-tools-%{version}.jar
 
 # javadoc
+%if %{with doc}
 install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
 cp -pr dist/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -142,12 +144,13 @@
 
 %files
 %defattr(644,root,root,755)
-%doc dist/docs
 %{_javadir}/*.jar
 
+%if %{with doc}
 %files javadoc
 %defattr(644,root,root,755)
 %{_javadocdir}/%{name}-%{version}
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 
@@ -156,6 +159,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.11  2007/01/31 18:34:07  glen
+- fix doc bcond
+
 Revision 1.10  2007/01/31 18:23:52  glen
 - javadoc subpackage
 - temporary doc bcond
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/mx4j.spec?r1=1.10&r2=1.11&f=u



More information about the pld-cvs-commit mailing list