[jemmy] Add POM; remove %clean; fix URL

Gerard Ryan galileo at fedoraproject.org
Fri Jul 13 20:03:49 UTC 2012


commit 1b69e5751960ec89c33cb33851ac34f4aa705736
Author: Gerard Ryan <gerard at ryan.lt>
Date:   Sat Jun 30 03:46:54 2012 +0100

    Add POM; remove %clean; fix URL

 jemmy.pom  |   24 ++++++++++++++++++++++++
 jemmy.spec |   23 +++++++++++++++++++----
 2 files changed, 43 insertions(+), 4 deletions(-)
---
diff --git a/jemmy.pom b/jemmy.pom
new file mode 100644
index 0000000..5cd85bf
--- /dev/null
+++ b/jemmy.pom
@@ -0,0 +1,24 @@
+<project>
+<modelVersion>4.0.0</modelVersion>
+<groupId>org.netbeans</groupId>
+<artifactId>jemmy</artifactId>
+<version>2.3.0.0</version>
+<packaging>jar</packaging>
+<name>Jemmy</name>
+<description>Jemmy is a Java UI testing library. Jemmy represents the most natural way to test Java UI - perform the
+		testing right from the Java code. Jemmy is a Java library which provides clear and straightforward API to access
+		Java UI (AWT and Swing).
+	</description>
+<url>http://jemmy.netbeans.org/</url>
+<licenses>
+		<license>
+			<name>Common Development Distribution License</name>
+			<url>http://hub.opensolaris.org/bin/download/Main/licensing/cddllicense.txt</url>
+			<distribution>repo</distribution>
+		</license>
+	</licenses>
+<scm>
+		<connection>scm:cvs:pserver:anoncvs at cvs.netbeans.org:/cvs:jemmy</connection>
+		<url>http://jemmy.netbeans.org/source/browse/jemmy/</url>
+	</scm>
+</project>
diff --git a/jemmy.spec b/jemmy.spec
index 4eb7f92..9785bbc 100644
--- a/jemmy.spec
+++ b/jemmy.spec
@@ -8,7 +8,7 @@
 
 Name:           jemmy
 Version:        2.3.0.0
-Release:        6%{?dist}
+Release:        7%{?dist}
 Summary:        Java UI testing library
 
 Group:          Development/Libraries
@@ -23,6 +23,11 @@ URL:            https://jemmy.dev.java.net
 #
 # where <username> is a name of the user registered here: https://www.dev.java.net/servlets/Join
 Source0:        jemmy-2.3.0.0.tar.gz
+
+# POM based on one from maven.org, with version and license info modified:
+# http://central.maven.org/maven2/org/netbeans/jemmy/2.2.7.5/jemmy-2.2.7.5.pom
+Source1:        %{name}.pom
+
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  ant >= 1.6.5
@@ -54,7 +59,7 @@ This package contains the API documentation for %{name}.
 %prep
 %setup -q
 find . -type f -name '*.jar' | xargs -t rm
-echo "Please, visit https://jemmy.dev.java.net for more info about Jemmy." > README.txt
+echo "Please, visit http://jemmy.java.net for more info about Jemmy." > README.txt
 
 %build
 %ant jar javadoc
@@ -68,23 +73,33 @@ echo "Please, visit https://jemmy.dev.java.net for more info about Jemmy." > REA
 (cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do \
 %__ln_s ${jar} ${jar/-%{version}/}; done)
 
+# POM
+install -d -m 0755 $RPM_BUILD_ROOT%{_mavenpomdir}
+install -p -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
+%add_maven_depmap JPP-%{name}.pom %{name}.jar
+
 # javadoc
 %__mkdir_p %{buildroot}%{_javadocdir}/%{name}
 %__cp -a %{target_javadoc} %{buildroot}%{_javadocdir}/%{name}
 
-%clean
-%__rm -rf %{buildroot}
 
 %files
 %defattr(-,root,root,-)
 %doc README.txt
 %{_javadir}/*.jar
+%{_mavenpomdir}/*
+%{_mavendepmapfragdir}/*
 
 %files javadoc
 %defattr(-,root,root,-)
 %{_javadocdir}/%{name}
 
 %changelog
+* Fri Jun 29 2012 Gerard Ryan <galileo at fedoraproject.org> - 2.3.0.0-7
+- Add POM
+- Remove clean section
+- Update URL in README.txt creation
+
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.3.0.0-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 


More information about the scm-commits mailing list