packages: java-geronimo-jms/geronimo-jms-1.1-api-remove-mockobjects.patch (...

glen glen at pld-linux.org
Tue May 8 22:39:46 CEST 2012


Author: glen                         Date: Tue May  8 20:39:46 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new. based on fedora spec, but without maven to package

---- Files affected:
packages/java-geronimo-jms:
   geronimo-jms-1.1-api-remove-mockobjects.patch (NONE -> 1.1)  (NEW), java-geronimo-jms.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/java-geronimo-jms/geronimo-jms-1.1-api-remove-mockobjects.patch
diff -u /dev/null packages/java-geronimo-jms/geronimo-jms-1.1-api-remove-mockobjects.patch:1.1
--- /dev/null	Tue May  8 22:39:46 2012
+++ packages/java-geronimo-jms/geronimo-jms-1.1-api-remove-mockobjects.patch	Tue May  8 22:39:40 2012
@@ -0,0 +1,25 @@
+--- geronimo-jms_1.1_spec-1.1.1.orig/pom.xml	2010-01-19 10:28:16.336981322 +0000
++++ geronimo-jms_1.1_spec-1.1.1/pom.xml	2010-01-19 10:37:46.968918686 +0000
+@@ -41,22 +41,6 @@
+         <geronimo.osgi.export.version>1.1</geronimo.osgi.export.version>
+     </properties>
+ 
+-    <dependencies>
+-        <dependency>
+-            <groupId>mockobjects</groupId>
+-            <artifactId>mockobjects-core</artifactId>
+-            <version>0.09</version>
+-            <scope>test</scope>
+-        </dependency>
+-
+-        <dependency>
+-            <groupId>mockobjects</groupId>
+-            <artifactId>mockobjects-jdk1.4-j2ee1.3</artifactId>
+-            <version>0.09</version>
+-            <scope>test</scope>
+-        </dependency>
+-    </dependencies>
+-
+     <scm>
+         <connection>scm:svn:https://svn.apache.org/repos/asf/geronimo/specs/tags/geronimo-jms_1.1_spec-1.1.1</connection>
+         <developerConnection>scm:svn:https://svn.apache.org/repos/asf/geronimo/specs/tags/geronimo-jms_1.1_spec-1.1.1</developerConnection>

================================================================
Index: packages/java-geronimo-jms/java-geronimo-jms.spec
diff -u /dev/null packages/java-geronimo-jms/java-geronimo-jms.spec:1.1
--- /dev/null	Tue May  8 22:39:46 2012
+++ packages/java-geronimo-jms/java-geronimo-jms.spec	Tue May  8 22:39:40 2012
@@ -0,0 +1,117 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	javadoc		# don't build javadoc
+%bcond_with		tests		# don't build and run tests
+
+%define		srcname		geronimo-jms
+%define		spec_name	%{srcname}_1.1_spec
+%include	/usr/lib/rpm/macros.java
+Summary:	J2EE JMS v1.1 API
+Name:		java-geronimo-jms
+Version:	1.1.1
+Release:	1
+License:	ASL 2.0
+Group:		Libraries/Java
+URL:		http://geronimo.apache.org/
+# svn export http://svn.apache.org/repos/asf/geronimo/specs/tags/%{spec_name}-%{version}/
+Source0:	http://pkgs.fedoraproject.org/repo/pkgs/geronimo-jms/%{spec_name}-%{version}.tar.bz/987d1e6b659c066648bc61cf9e8ea201/%{spec_name}-%{version}.tar.bz
+# Source0-md5:	987d1e6b659c066648bc61cf9e8ea201
+# Remove unavailable dependencies
+Patch0:		geronimo-jms-1.1-api-remove-mockobjects.patch
+BuildRequires:	jpackage-utils
+BuildRequires:	rpmbuild(macros) >= 1.300
+Provides:	jms = %{version}-%{release}
+Obsoletes:	geronimo-jms < 1.1.1-0.1
+Obsoletes:	geronimo-specs <= 1.0-3.3
+Obsoletes:	geronimo-specs-compat <= 1.0-3.3
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The Java Message Service (JMS) API is a messaging standard that allows
+application components based on the Java 2 Platform, Enterprise
+Edition (J2EE) to create, send, receive, and read messages. It enables
+distributed communication that is loosely coupled, reliable, and
+asynchronous.
+
+%package javadoc
+Summary:	Online manual for %{name}
+Summary(pl.UTF-8):	Dokumentacja online do %{name}
+Group:		Documentation
+Requires:	jpackage-utils
+
+%description javadoc
+Documentation for %{name}.
+
+%description javadoc -l pl.UTF-8
+Dokumentacja do %{name}.
+
+%description javadoc -l fr.UTF-8
+Javadoc pour %{name}.
+
+%prep
+%setup -q -n %{spec_name}-%{version}
+%patch0 -p1
+
+%build
+# do what 'mvn package' would
+install -d target/{classes,test-classes,docs/apidocs}
+%javac -d target/classes -encoding UTF-8 $(find src/main -type f -name "*.java")
+
+%if %{with tests}
+%javac -d target/test-classes -encoding UTF-8 $(find src/test -type f -name "*.java")
+%endif
+
+%jar -cvf target/%{spec_name}-%{version}.jar -C target/classes .
+
+%javadoc -d target/docs/apidocs $(find src/main -name '*.java')
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_javadir}
+
+cp -p target/%{spec_name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{srcname}-%{version}.jar
+ln -s %{srcname}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{srcname}.jar
+
+# Also provide compat symlinks
+ln -s %{srcname}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{spec_name}.jar
+ln -s %{srcname}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/jms.jar
+
+# javadoc
+%if %{with javadoc}
+install -d $RPM_BUILD_ROOT%{_javadocdir}/%{srcname}-%{version}
+cp -a target/docs/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{srcname}-%{version}
+ln -s %{srcname}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{srcname} # ghost symlink
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post javadoc
+ln -nfs %{srcname}-%{version} %{_javadocdir}/%{srcname}
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE.txt NOTICE.txt
+%{_javadir}/%{srcname}-%{version}.jar
+%{_javadir}/%{srcname}.jar
+%{_javadir}/%{spec_name}.jar
+%{_javadir}/jms.jar
+
+%if %{with javadoc}
+%files javadoc
+%defattr(644,root,root,755)
+%{_javadocdir}/%{srcname}-%{version}
+%ghost %{_javadocdir}/%{srcname}
+%endif
+
+%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  2012/05/08 20:39:40  glen
+- new. based on fedora spec, but without maven to package
+
================================================================


More information about the pld-cvs-commit mailing list