From 49feccacb99c2d7d4343bec48958f2ce620edcdd Mon Sep 17 00:00:00 2001 From: Alexander Kurtakov Date: Mon, 15 Feb 2010 13:32:38 +0000 Subject: [PATCH] - Add maven pom and depmap. --- java_cup-pom.xml | 10 ++++++++++ java_cup.spec | 22 +++++++++++++++++++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 java_cup-pom.xml diff --git a/java_cup-pom.xml b/java_cup-pom.xml new file mode 100644 index 0000000..66b1d9a --- /dev/null +++ b/java_cup-pom.xml @@ -0,0 +1,10 @@ + + 4.0.0 + java_cup + java_cup + jar + Java CUP + 0.11a + diff --git a/java_cup.spec b/java_cup.spec index 65d5d38..40adb6f 100644 --- a/java_cup.spec +++ b/java_cup.spec @@ -34,7 +34,7 @@ Name: java_cup Version: 0.11a -Release: 3%{?dist} +Release: 4%{?dist} Epoch: 1 Summary: Java source interpreter License: BSD and LGPLv2 @@ -42,6 +42,7 @@ URL: http://www.cs.princeton.edu/%7Eappel/modern/java/CUP/ #svn export -r 21 https://www2.in.tum.de/repos/cup/develop/ java_cup-0.11a #tar cjf java_cup-0.11a.tar.bz2 java_cup-0.11a/ Source0: java_cup-0.11a.tar.bz2 +Source1: java_cup-pom.xml Patch0: %{name}-build.patch BuildRequires: ant BuildRequires: jpackage-utils >= 0:1.5 @@ -73,6 +74,7 @@ Documentation for java_cup. %prep %setup -q %patch0 -b .sav +cp %{SOURCE1} pom.xml # remove all binary files find . -name "*.class" -exec rm -f {} \; @@ -109,13 +111,28 @@ install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} cp -pr dist/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} (cd $RPM_BUILD_ROOT%{_javadocdir} && ln -sf %{name}-%{version} %{name}) +%add_to_maven_depmap java_cup java_cup %{version} JPP java_cup + +# poms +install -d -m 755 %{buildroot}%{_mavenpomdir} +install -pm 644 pom.xml \ + %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom + %clean rm -rf $RPM_BUILD_ROOT +%post +%update_maven_depmap + +%postun +%update_maven_depmap + %files %defattr(0644,root,root,0755) %doc changelog.txt %{_javadir}/* +%{_mavenpomdir}/* +%{_mavendepmapfragdir}/* %files manual %defattr(0644,root,root,0755) @@ -127,6 +144,9 @@ rm -rf $RPM_BUILD_ROOT %doc %{_javadocdir}/%{name} %changelog +* Mon Feb 15 2010 Alexander Kurtakov 1:0.11a-4 +- Add maven pom and depmap. + * Wed Jan 20 2010 Alexander Kurtakov 1:0.11a-3 - Fix bootstrap.