packages: java-easymock1/java-easymock1.spec - maven stuff

pawelz pawelz at pld-linux.org
Wed May 5 19:17:33 CEST 2010


Author: pawelz                       Date: Wed May  5 17:17:33 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- maven stuff

---- Files affected:
packages/java-easymock1:
   java-easymock1.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: packages/java-easymock1/java-easymock1.spec
diff -u packages/java-easymock1/java-easymock1.spec:1.1 packages/java-easymock1/java-easymock1.spec:1.2
--- packages/java-easymock1/java-easymock1.spec:1.1	Wed May  5 19:00:00 2010
+++ packages/java-easymock1/java-easymock1.spec	Wed May  5 19:17:27 2010
@@ -7,13 +7,16 @@
 Release:	0.1
 License:	MIT
 Group:		Libraries/Java
-Source0:	https://sourceforge.net/projects/easymock/files/EasyMock/1.2/easymock1.2_Java1.5.zip/download
+Source0:	https://sourceforge.net/projects/easymock/files/EasyMock/1.2/easymock1.2_Java1.5.zip
 # Source0-md5:	828a04a6b901917cb995c316ee542f2f
+Source1:	easymock.pom
 URL:		http://easymock.org
 BuildRequires:	jpackage-utils
 BuildRequires:	rpm-javaprov
 BuildRequires:	rpmbuild(macros) >= 1.555
 BuildRequires:	unzip
+Requires(post):	jpackage-utils >= 0:1.7.2
+Requires(postun):	jpackage-utils >= 0:1.7.2
 Requires:	jpackage-utils
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -96,9 +99,20 @@
 install -d $RPM_BUILD_ROOT%{_javasrcdir}
 cp -a src.zip $RPM_BUILD_ROOT%{_javasrcdir}/%{srcname}.src.jar
 
+# maven stuff
+install -d $RPM_BUILD_ROOT%{_datadir}/maven2/poms
+install -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{srcname}.pom
+%add_to_maven_depmap easymock easymock %{version} JPP %{srcname}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+%update_maven_depmap
+
+%postun
+%update_maven_depmap
+
 %post javadoc
 ln -nfs %{srcname}-%{version} %{_javadocdir}/%{srcname}
 
@@ -107,6 +121,8 @@
 %{_javadir}/%{srcname}.jar
 %{_javadir}/%{srcname}-%{version}.jar
 %{_javadir}/easymock-%{version}.jar
+%{_datadir}/maven2/poms/JPP.%{srcname}.pom
+%{_mavendepmapfragdir}/%{name}
 
 %files demo
 %defattr(644,root,root,755)
@@ -128,6 +144,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2010/05/05 17:17:27  pawelz
+- maven stuff
+
 Revision 1.1  2010/05/05 17:00:00  pawelz
 - initial
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/java-easymock1/java-easymock1.spec?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list