diff --git a/openlayers.spec b/openlayers.spec index d020963..40ac2a4 100644 --- a/openlayers.spec +++ b/openlayers.spec @@ -1,6 +1,6 @@ Name: openlayers Version: 2.8 -Release: 4%{?dist} +Release: 5%{?dist} Summary: A JavaScript library for displaying map data in web browsers Group: Applications/Publishing License: BSD @@ -81,6 +81,10 @@ sed -i -e 's|\r||g' tools/exampleparser.py # fix shebag find . -type f -exec sed -i -e 's/\#\!\/usr\/bin\/env python/\#\!\/usr\/bin\/python/' '{}' + +# remove the minimize tool so that it is not used until upstream bug is fixed: +# http://trac.openlayers.org/ticket/2275 +rm tools/minimize.py + %build pushd build @@ -104,12 +108,14 @@ cp -rp tests %{buildroot}%{_datadir}/%{name}/ install -d %{buildroot}%{_datadir}/%{name}/tools/ install -p tools/BeautifulSoup.py %{buildroot}%{_datadir}/%{name}/tools/ install -p tools/mergejs.py %{buildroot}%{_datadir}/%{name}/tools/ -install -p tools/minimize.py %{buildroot}%{_datadir}/%{name}/tools/ +# don't install the minimize tool as it was removed in prep +#install -p tools/minimize.py %{buildroot}%{_datadir}/%{name}/tools/ install -p tools/shrinksafe.py %{buildroot}%{_datadir}/%{name}/tools/ install -p tools/toposort.py %{buildroot}%{_datadir}/%{name}/tools/ # fix one python header sed -i -e '1i\#\!\/usr\/bin\/python' %{buildroot}%{_datadir}/%{name}/tools/BeautifulSoup.py -sed -i -e '1i\#\!\/usr\/bin\/python' %{buildroot}%{_datadir}/%{name}/tools/minimize.py +# minimize tool was removed in prep +#sed -i -e '1i\#\!\/usr\/bin\/python' %{buildroot}%{_datadir}/%{name}/tools/minimize.py sed -i -e '1i\#\!\/usr\/bin\/python' %{buildroot}%{_datadir}/%{name}/tools/toposort.py # fix generation of OpenLayer.js @@ -159,6 +165,9 @@ rm -rf %{buildroot} %changelog +* Sat Sep 19 2009 Mathieu Bridon - 2.8-5 +- Don't use the minimize tool as it produces an incorrect JS file + * Sun Sep 13 2009 Mathieu Bridon - 2.8-4 - Make a -doc subpackage for the API documentation which makes the main package 75% smaller