diff --git a/jflex-1.4.3.pom b/jflex-1.4.3.pom new file mode 100644 index 0000000..b5d93d9 --- /dev/null +++ b/jflex-1.4.3.pom @@ -0,0 +1,57 @@ + + 4.0.0 + de.jflex + jflex + jar + 1.4.3 + + + + JFlex - The Fast Scanner Generator for Java + 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. + http://jflex.de/ + 1998 + + + GNU General Public License + http://jflex.de/copying.html#GPL + repo + 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. + + + + scm:svn:http://jflex.svn.sourceforge.net/svnroot/jflex + scm:svn:https://jflex.svn.sourceforge.net/svnroot/jflex + http://jflex.svn.sourceforge.net/viewvc/jflex/ + + + + gerwin + Gerwin Klein + lsf@jflex.de + + architect + developer + + + + + SF tracker + http://sourceforge.net/tracker/?group_id=14929 + + + + jflex-announce + http://lists.sourceforge.net/lists/listinfo/jflex-announce + http://lists.sourceforge.net/lists/listinfo/jflex-announce + http://sourceforge.net/mailarchive/forum.php?forum=jflex-announce + + + jflex-users + http://lists.sourceforge.net/lists/listinfo/jflex-users + http://lists.sourceforge.net/lists/listinfo/jflex-users + http://sourceforge.net/mailarchive/forum.php?forum=jflex-users + + + diff --git a/jflex.spec b/jflex.spec index 73af821..e998506 100644 --- a/jflex.spec +++ b/jflex.spec @@ -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 0:1.4.3-2 +- Add maven pom and depmaps. + * Fri Jan 8 2010 Alexander Kurtakov 0:1.4.3-1 - Update to 1.4.3.