rpms/openlayers/devel import.log, NONE, 1.1 openlayers.conf, NONE, 1.1 openlayers.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Balint Cristian
rezso at fedoraproject.org
Wed Oct 22 14:27:56 UTC 2008
- Previous message (by thread): rpms/MAKEDEV/devel .cvsignore, 1.55, 1.56 MAKEDEV.spec, 1.63, 1.64 sources, 1.55, 1.56
- Next message (by thread): rpms/openlayers/F-9 import.log, NONE, 1.1 openlayers.conf, NONE, 1.1 openlayers.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: rezso
Update of /cvs/pkgs/rpms/openlayers/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv29715/devel
Modified Files:
.cvsignore sources
Added Files:
import.log openlayers.conf openlayers.spec
Log Message:
- initial import
--- NEW FILE import.log ---
openlayers-2_7-2_fc10:HEAD:openlayers-2.7-2.fc10.src.rpm:1224685554
--- NEW FILE openlayers.conf ---
#
# JavaScript library for displaying map data in web browsers
#
# default restrictions
<Directory /usr/share/openlayers/www>
Options -Indexes
Order Deny,Allow
Deny from all
Allow from localhost
</Directory>
# mandatory aliases
Alias /openlayers /usr/share/openlayers/www
--- NEW FILE openlayers.spec ---
Name: openlayers
Version: 2.7
Release: 2%{?dist}
Summary: A JavaScript library for displaying map data in web browsers
Group: Applications/Publishing
License: BSD
URL: http://www.openlayers.org/
Source0: http://openlayers.org/download/OpenLayers-%{version}.tar.gz
Source1: openlayers.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: python
Requires: httpd
%description
OpenLayers is a pure JavaScript library for displaying map data in most
modern web browsers, with no server-side dependencies. OpenLayers implements
a JavaScript API for building rich web-based geographic applications,
similar to the Google Maps and MSN Virtual Earth APIs, with one important
difference -- OpenLayers is Free Software, developed for and by the Open
Source software community.
Furthermore, OpenLayers implements industry-standard methods for geographic
data access, such as the OpenGIS Consortium's Web Mapping Service (WMS) and
Web Feature Service (WFS) protocols. Under the hood, OpenLayers is written
in object-oriented JavaScript, using components from Prototype.js and the
Rico library. The OpenLayers code base already has hundreds of unit tests,
via the Test.AnotherWay framework.
%prep
%setup -q -n OpenLayers-%{version}
set +x
for f in `find . -type f` ; do
if file $f | grep -q ISO-8859 ; then
set -x
iconv -f ISO-8859-1 -t UTF-8 $f > ${f}.tmp && \
mv -f ${f}.tmp $f
set +x
fi
if file $f | grep -q CRLF ; then
set -x
sed -i -e 's|\r||g' $f
set +x
fi
done
set -x
# fix spurious perms
find . -type f -name *.js -exec chmod -x '{}' \;
find . -type f -name *.jpg -exec chmod -x '{}' \;
find . -type f -name *.png -exec chmod -x '{}' \;
find . -type f -name *.css -exec chmod -x '{}' \;
find . -type f -name *.html -exec chmod -x '{}' \;
chmod -x tools/exampleparser.py
chmod -x examples/proxy.cgi
# fix CLRF file
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/' '{}' +
%build
gcc %{optflags} tools/jsmin.c -o tools/jsmin
pushd build
./build.py
popd
%install
rm -rf %{buildroot}
install -d %{buildroot}%{_datadir}/%{name}/www
cp -rp theme %{buildroot}%{_datadir}/%{name}/www/
cp -rp img %{buildroot}%{_datadir}/%{name}/www/
install -p -m 644 build/OpenLayers.js %{buildroot}%{_datadir}/%{name}/www/
cp -rp art %{buildroot}%{_datadir}/%{name}/
cp -rp build %{buildroot}%{_datadir}/%{name}/
cp -rp lib %{buildroot}%{_datadir}/%{name}/
cp -rp tests %{buildroot}%{_datadir}/%{name}/
# install tools
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_datadir}/%{name}/tools/
install -p tools/jsmin %{buildroot}%{_bindir}/
install -p tools/BeautifulSoup.py %{buildroot}%{_datadir}/%{name}/tools/
install -p tools/jsmin.py %{buildroot}%{_datadir}/%{name}/tools/
install -p tools/mergejs.py %{buildroot}%{_datadir}/%{name}/tools/
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
sed -i -e '1i\#\!\/usr\/bin\/python' %{buildroot}%{_datadir}/%{name}/tools/toposort.py
# fix generation of OpenLayer.js
sed -i -e 's|OpenLayers.js|..\/www\/OpenLayers.js|' \
%{buildroot}%{_datadir}/%{name}/build/build.py
sed -i -e 's|OpenLayers.js|..\/www\/OpenLayers.js|' \
%{buildroot}%{_datadir}/%{name}/build/buildUncompressed.py
# install config files
install -d %{buildroot}%{_sysconfdir}/%{name}
mv %{buildroot}%{_datadir}/%{name}/build/*.cfg %{buildroot}%{_sysconfdir}/%{name}
pushd %{buildroot}%{_datadir}/%{name}/build/
for file in {full,library,lite}; do
ln -s ../../../../%{_sysconfdir}/%{name}/$file.cfg $file.cfg
done
popd
# install httpd config alias
install -D -p %{SOURCE1} %{buildroot}%{_sysconfdir}/httpd/conf.d/%{name}.conf
# fix two more annoying mods
chmod -x %{buildroot}%{_datadir}/%{name}/lib/OpenLayers/Strategy.js
chmod -x %{buildroot}%{_datadir}/%{name}/lib/OpenLayers/Protocol.js
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc examples doc
%doc news.txt readme.txt release-license.txt repository-license.txt
%doc tools/README.txt build/license.txt tools/exampleparser.py
%dir %{_sysconfdir}/%{name}
%attr(644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/*.cfg
%attr(644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf
%attr(755,root,root) %{_bindir}/*
%dir %{_datadir}/%{name}
%exclude %{_datadir}/%{name}/tools/*.py?
%exclude %{_datadir}/%{name}/build/*.txt
%exclude %{_datadir}/%{name}/build/*.py?
%exclude %{_datadir}/%{name}/build/OpenLayers.js
%{_datadir}/%{name}/*
%changelog
* Mon Oct 20 2008 Balint Cristian <rezso at rdsor.ro> - 2.7-2
- fix invalid shebags
* Wed Oct 08 2008 Balint Cristian <rezso at rdsor.ro> - 2.7-1
- new upstream
* Mon Aug 25 2008 Balint Cristian <rezso at rdsor.ro> - 2.6-1
- initial import
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/openlayers/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 22 Oct 2008 10:28:24 -0000 1.1
+++ .cvsignore 22 Oct 2008 14:27:25 -0000 1.2
@@ -0,0 +1 @@
+OpenLayers-2.7.tar.gz
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/openlayers/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 22 Oct 2008 10:28:24 -0000 1.1
+++ sources 22 Oct 2008 14:27:26 -0000 1.2
@@ -0,0 +1 @@
+c0d288a7b935e8b940b0b850ef135c95 OpenLayers-2.7.tar.gz
- Previous message (by thread): rpms/MAKEDEV/devel .cvsignore, 1.55, 1.56 MAKEDEV.spec, 1.63, 1.64 sources, 1.55, 1.56
- Next message (by thread): rpms/openlayers/F-9 import.log, NONE, 1.1 openlayers.conf, NONE, 1.1 openlayers.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list