- Add maven pom and depmap.
This commit is contained in:
parent
c9b8a8658b
commit
49feccacb9
10
java_cup-pom.xml
Normal file
10
java_cup-pom.xml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>java_cup</groupId>
|
||||||
|
<artifactId>java_cup</artifactId>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
<name>Java CUP</name>
|
||||||
|
<version>0.11a</version>
|
||||||
|
</project>
|
||||||
@ -34,7 +34,7 @@
|
|||||||
|
|
||||||
Name: java_cup
|
Name: java_cup
|
||||||
Version: 0.11a
|
Version: 0.11a
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Summary: Java source interpreter
|
Summary: Java source interpreter
|
||||||
License: BSD and LGPLv2
|
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
|
#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/
|
#tar cjf java_cup-0.11a.tar.bz2 java_cup-0.11a/
|
||||||
Source0: java_cup-0.11a.tar.bz2
|
Source0: java_cup-0.11a.tar.bz2
|
||||||
|
Source1: java_cup-pom.xml
|
||||||
Patch0: %{name}-build.patch
|
Patch0: %{name}-build.patch
|
||||||
BuildRequires: ant
|
BuildRequires: ant
|
||||||
BuildRequires: jpackage-utils >= 0:1.5
|
BuildRequires: jpackage-utils >= 0:1.5
|
||||||
@ -73,6 +74,7 @@ Documentation for java_cup.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -b .sav
|
%patch0 -b .sav
|
||||||
|
cp %{SOURCE1} pom.xml
|
||||||
|
|
||||||
# remove all binary files
|
# remove all binary files
|
||||||
find . -name "*.class" -exec rm -f {} \;
|
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}
|
cp -pr dist/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
||||||
(cd $RPM_BUILD_ROOT%{_javadocdir} && ln -sf %{name}-%{version} %{name})
|
(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
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
%post
|
||||||
|
%update_maven_depmap
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%update_maven_depmap
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(0644,root,root,0755)
|
%defattr(0644,root,root,0755)
|
||||||
%doc changelog.txt
|
%doc changelog.txt
|
||||||
%{_javadir}/*
|
%{_javadir}/*
|
||||||
|
%{_mavenpomdir}/*
|
||||||
|
%{_mavendepmapfragdir}/*
|
||||||
|
|
||||||
%files manual
|
%files manual
|
||||||
%defattr(0644,root,root,0755)
|
%defattr(0644,root,root,0755)
|
||||||
@ -127,6 +144,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%doc %{_javadocdir}/%{name}
|
%doc %{_javadocdir}/%{name}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Feb 15 2010 Alexander Kurtakov <akurtako@redhat.com> 1:0.11a-4
|
||||||
|
- Add maven pom and depmap.
|
||||||
|
|
||||||
* Wed Jan 20 2010 Alexander Kurtakov <akurtako@redhat.com> 1:0.11a-3
|
* Wed Jan 20 2010 Alexander Kurtakov <akurtako@redhat.com> 1:0.11a-3
|
||||||
- Fix bootstrap.
|
- Fix bootstrap.
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user