SPECS: jakarta-commons-discovery.spec (NEW) - new, based on jpackage
glen
glen at pld-linux.org
Wed May 10 22:21:07 CEST 2006
Author: glen Date: Wed May 10 20:21:07 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new, based on jpackage
---- Files affected:
SPECS:
jakarta-commons-discovery.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/jakarta-commons-discovery.spec
diff -u /dev/null SPECS/jakarta-commons-discovery.spec:1.1
--- /dev/null Wed May 10 22:21:07 2006
+++ SPECS/jakarta-commons-discovery.spec Wed May 10 22:21:01 2006
@@ -0,0 +1,79 @@
+# $Revision$, $Date$
+%define short_name commons-discovery
+Summary: Jakarta Commons Discovery
+Name: jakarta-commons-discovery
+Version: 0.3
+Release: 0.1
+License: Apache Software License
+Group: Development/Languages/Java
+URL: http://jakarta.apache.org/commons/discovery/
+Source0: http://www.apache.org/dist/jakarta/commons/discovery/source/commonsdiscovery%{version}src.tar.gz
+# Source0-md5: 233726c301278b7ca8baa50eb7b0f582
+BuildRequires: jakarta-ant
+BuildRequires: jakarta-commons-logging >= 1.0.1
+BuildRequires: junit >= 3.7
+Requires: jakarta-commons-logging >= 1.0.1
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The Discovery component is about discovering, or finding,
+implementations for pluggable interfaces. Pluggable interfaces are
+specified with the intent that multiple implementations are, or will
+be, available to provide the service described by the interface.
+Discovery provides facilities for finding and instantiating classes,
+and for lifecycle management of singleton (factory) classes.
+
+%package javadoc
+Summary: Javadoc for %{name}
+Group: Documentation
+
+%description javadoc
+Javadoc for %{name}.
+
+%prep
+%setup -q -n commons-discovery-%{version}
+chmod u+w .
+
+# No NOTICE.txt file in the sources
+touch NOTICE.txt
+
+%build
+ant \
+ -Djunit.jar=/usr/share/java/junit.jar \
+ -Dlogger.jar=/usr/share/java/commons-logging.jar \
+ test.discovery dist
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+# jar
+install -d $RPM_BUILD_ROOT%{_javadir}
+cp -p dist/%{short_name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
+(cd $RPM_BUILD_ROOT%{_javadir} && ln -s %{name}-%{version}.jar %{short_name}-%{version}.jar && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
+
+# javadoc
+install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
+cp -pr dist/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE.txt
+%{_javadir}/*
+
+%files javadoc
+%defattr(644,root,root,755)
+%{_javadocdir}/%{name}-%{version}
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2006/05/10 20:21:01 glen
+- new, based on jpackage
+
================================================================
More information about the pld-cvs-commit
mailing list