Add maven pom and depmaps.

This commit is contained in:
Alexander Kurtakov 2010-01-08 14:56:53 +00:00
parent bf31babf56
commit 48fd516c56
2 changed files with 77 additions and 2 deletions

57
jflex-1.4.3.pom Normal file
View File

@ -0,0 +1,57 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>de.jflex</groupId>
<artifactId>jflex</artifactId>
<packaging>jar</packaging>
<version>1.4.3</version>
<!-- this is a pseudo POM, to be uploaded manually -->
<dependencies />
<name>JFlex - The Fast Scanner Generator for Java</name>
<description>JFlex is a lexical analyzer generator (also known as scanner generator) for Java(tm), written in Java(tm).
JFlex is designed to work together with the LALR parser generator CUP by Scott Hudson, and the Java modification of Berkeley Yacc BYacc/J by Bob Jamison. It can also be used together with other parser generators like ANTLR or as a standalone tool. </description>
<url>http://jflex.de/</url>
<inceptionYear>1998</inceptionYear>
<licenses>
<license>
<name>GNU General Public License</name>
<url>http://jflex.de/copying.html#GPL</url>
<distribution>repo</distribution>
<comments>The code generated by JFlex inherits the copyright of the specification it was produced from. If it was your specification, you may use the generated code without restriction. </comments>
</license>
</licenses>
<scm>
<connection>scm:svn:http://jflex.svn.sourceforge.net/svnroot/jflex</connection>
<developerConnection>scm:svn:https://jflex.svn.sourceforge.net/svnroot/jflex</developerConnection>
<url>http://jflex.svn.sourceforge.net/viewvc/jflex/</url>
</scm>
<developers>
<developer>
<id>gerwin</id>
<name>Gerwin Klein</name>
<email>lsf@jflex.de</email>
<roles>
<role>architect</role>
<role>developer</role>
</roles>
</developer>
</developers>
<issueManagement>
<system>SF tracker</system>
<url>http://sourceforge.net/tracker/?group_id=14929</url>
</issueManagement>
<mailingLists>
<mailingList>
<name>jflex-announce</name>
<subscribe>http://lists.sourceforge.net/lists/listinfo/jflex-announce</subscribe>
<unsubscribe>http://lists.sourceforge.net/lists/listinfo/jflex-announce</unsubscribe>
<archive>http://sourceforge.net/mailarchive/forum.php?forum=jflex-announce</archive>
</mailingList>
<mailingList>
<name>jflex-users</name>
<subscribe>http://lists.sourceforge.net/lists/listinfo/jflex-users</subscribe>
<unsubscribe>http://lists.sourceforge.net/lists/listinfo/jflex-users</unsubscribe>
<archive>http://sourceforge.net/mailarchive/forum.php?forum=jflex-users</archive>
</mailingList>
</mailingLists>
</project>

View File

@ -33,12 +33,13 @@
Summary: Fast Scanner Generator
Name: jflex
Version: 1.4.3
Release: 1%{?dist}
Release: 2%{?dist}
Epoch: 0
License: GPLv2
URL: http://jflex.de/
Group: Development/Libraries
Source0: http://jflex.de/%{name}-%{version}.tar.gz
Source1: http://repo2.maven.org/maven2/de/jflex/jflex/1.4.3/jflex-1.4.3.pom
Patch0: jflex-build_xml.patch
BuildRequires: jpackage-utils >= 0:1.5
BuildRequires: ant
@ -98,6 +99,13 @@ cp -p lib/JFlex.jar \
$RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}.jar; \
do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
%add_to_maven_depmap de.jflex jflex %{version} JPP jflex
# poms
install -d -m 755 %{buildroot}%{_datadir}/maven2/poms
install -pm 644 %{SOURCE1} \
%{buildroot}%{_datadir}/maven2/poms/JPP-%{name}.pom
# javadoc
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
@ -112,19 +120,29 @@ cp -p COPYRIGHT $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
%clean
rm -rf $RPM_BUILD_ROOT
%post
%update_maven_depmap
%postun
%update_maven_depmap
%files
%defattr(0644,root,root,0755)
%doc %{_docdir}/%{name}-%{version}
%{_javadir}/*.jar
%{_datadir}/maven2/poms/*
%{_mavendepmapfragdir}/*
%files javadoc
%defattr(0644,root,root,0755)
%doc %{_javadocdir}/%{name}-%{version}
%doc %{_javadocdir}/%{name}
# -----------------------------------------------------------------------------
%changelog
* Fri Jan 8 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.4.3-2
- Add maven pom and depmaps.
* Fri Jan 8 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.4.3-1
- Update to 1.4.3.