Author: baggins Date: Wed Jul 6 21:14:24 2011 GMT Module: packages Tag: HEAD ---- Log message: - updated build and install - added eclipse plugin package
---- Files affected: packages/polyglot: polyglot.spec (1.5 -> 1.6) ---- Diffs: ================================================================ Index: packages/polyglot/polyglot.spec diff -u packages/polyglot/polyglot.spec:1.5 packages/polyglot/polyglot.spec:1.6 --- packages/polyglot/polyglot.spec:1.5 Wed Jul 6 14:29:09 2011 +++ packages/polyglot/polyglot.spec Wed Jul 6 23:14:19 2011 @@ -10,7 +10,6 @@ # Source0-md5: 6a56a2a30ed3b164112a6caaddc6edb3 Source1: http://www.cs.cornell.edu/Projects/polyglot/eclipseUpdates/plugins/%{name}_%{version}.jar # Source1-md5: c54716cc0412f08ce2a97e88934d064b -Patch0: %{name}-classpath.patch URL: http://www.cs.cornell.edu/Projects/polyglot/ BuildRequires: ant >= 1.6.5-4 BuildRequires: jflex @@ -19,6 +18,8 @@ Requires: jre >= 1.3 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +%define _eclipseplugindir %{_libdir}/eclipse/dropins/%{name} + %description Polyglot is a highly extensible compiler front end for the Java programming language. It is implemented as a Java class framework @@ -45,9 +46,26 @@ rozszerzeń języka; doświadczenie sugeruje, że koszt implementacji rozszerzenia skaluje się dobrze wraz ze stopniem modyfikacji Javy. +%package -n eclipse-polyglot +Summary: Polyglot base compiler plugin for Eclipse +Summary(pl.UTF-8): Wtyczka dla Eclipse z podstawowym kompilatorem Polyglot +Group: Development/Languages +Requires: eclipse >= 3.6 + +%description -n eclipse-polyglot +This plugin contains the Polyglot base compiler. +The plugin is made available to enable other plugins to extend +the Polyglot framework. No user-visible functionality is provided +by the Polyglot plugin itself. + +%description -n eclipse-polyglot -l pl.UTF-8 +Ta wtyczka zawiera podstawowy kompilator Polyglot. +Wtyczka umożliwia innym wtyczkom rozszerzanie szkielet klas Polyglot. +Wtyczka nie udostępnia żadnej funkcjonalności widocznej dla +użytkownika. + %prep -%setup -q -n %{name}-%{version}%{_pre}-src -%patch0 -p1 +%setup -q -n %{name}-%{version}-src %build required_jars='ant' @@ -59,16 +77,24 @@ %{ant} configure %{ant} +%{ant} jar +%{ant} examples +%{ant} jar-examples %{ant} javadoc %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{_javadir}/%{name},%{_bindir}} +install -d $RPM_BUILD_ROOT{%{_javadir}/%{name},%{_bindir}} \ + $RPM_BUILD_ROOT%{_eclipseplugindir}/plugins sed -e "s|TOP=.*|TOP='%{_javadir}'|" bin/jlc > $RPM_BUILD_ROOT%{_bindir}/jlc sed -e "s|TOP=.*|TOP='%{_javadir}'|" bin/pth > $RPM_BUILD_ROOT%{_bindir}/pth -install lib/{coffer,java_cup,pao,polyglot,pth}.jar $RPM_BUILD_ROOT%{_javadir}/%{name} +install lib/{java_cup,polyglot,pth,ppg}.jar $RPM_BUILD_ROOT%{_javadir}/%{name} +install examples/coffer/lib/coffer.jar $RPM_BUILD_ROOT%{_javadir}/%{name} +install examples/pao/lib/pao.jar $RPM_BUILD_ROOT%{_javadir}/%{name} + +install %{SOURCE1} $RPM_BUILD_ROOT%{_eclipseplugindir}/plugins %clean rm -rf $RPM_BUILD_ROOT @@ -79,12 +105,22 @@ %attr(755,root,root) %{_bindir}/* %{_javadir}/%{name} +%files -n eclipse-polyglot +%defattr(644,root,root,755) +%dir %{_eclipseplugindir} +%dir %{_eclipseplugindir}/plugins +%{_eclipseplugindir}/plugins/* + %define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) %changelog * %{date} PLD Team <[email protected]> All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.6 2011/07/06 21:14:19 baggins +- updated build and install +- added eclipse plugin package + Revision 1.5 2011/07/06 12:29:09 baggins - 2.4.0 - added eclipse plugin ================================================================ ---- CVS-web: http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/polyglot/polyglot.spec?r1=1.5&r2=1.6&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
