mapserver/mapserver.spec

465 lines
15 KiB
RPMSpec
Raw Normal View History

%define MS_REL %{nil}
Name: mapserver%{MS_REL}
Version: 6.2.1
Release: 1%{?dist}
2007-05-11 09:50:50 +00:00
Summary: Environment for building spatially-enabled internet applications
2007-05-11 09:50:50 +00:00
Group: Development/Tools
License: BSD
URL: http://www.mapserver.org
Source0: http://download.osgeo.org/mapserver/mapserver-%{version}.tar.gz
%if 0%{MS_REL}
Patch0: %{name}-%{version}-java-%{MS_REL}.patch
Patch1: %{name}-%{version}-perl-%{MS_REL}.patch
Patch2: %{name}-%{version}-python-%{MS_REL}.patch
%endif
2007-05-11 09:50:50 +00:00
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: httpd
Requires: dejavu-sans-fonts
2009-12-04 18:59:42 +00:00
BuildRequires: libXpm-devel readline-devel
2010-03-18 08:59:14 +00:00
BuildRequires: httpd-devel php-devel libxslt-devel pam-devel fcgi-devel
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: postgresql-devel mysql-devel java-devel
BuildRequires: swig > 1.3.24 java
2010-03-18 08:21:12 +00:00
BuildRequires: geos-devel proj-devel gdal-devel agg-devel cairo-devel
BuildRequires: freetype-devel gd-devel >= 2.0.16
2007-05-11 09:50:50 +00:00
BuildRequires: python-devel curl-devel zlib-devel libxml2-devel
2011-07-19 13:56:24 +00:00
BuildRequires: libjpeg-devel libpng-devel libtiff-devel fribidi-devel giflib-devel
2007-05-11 09:50:50 +00:00
%define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")
%description
Mapserver is an internet mapping program that converts GIS data to
map images in real time. With appropriate interface pages,
Mapserver can provide an interactive internet map based on
custom GIS data.
%package -n php-%{name}
2007-05-11 09:50:50 +00:00
Summary: PHP/Mapscript map making extensions to PHP
Group: Development/Languages
BuildRequires: php-devel
Requires: php-gd%{?_isa}
Requires: php(zend-abi) = %{php_zend_api}
Requires: php(api) = %{php_core_api}
2007-05-11 09:50:50 +00:00
%description -n php-%{name}
2007-05-11 09:50:50 +00:00
The PHP/Mapscript extension provides full map customization capabilities within
the PHP scripting language.
%package perl
Summary: Perl/Mapscript map making extensions to Perl
Group: Development/Languages
Requires: %{name} = %{version}-%{release}
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
2007-05-11 09:50:50 +00:00
%description perl
The Perl/Mapscript extension provides full map customization capabilities
within the Perl programming language.
%package python
Summary: Python/Mapscript map making extensions to Python
Group: Development/Languages
Requires: %{name} = %{version}-%{release}
%description python
The Python/Mapscript extension provides full map customization capabilities
within the Python programming language.
%package java
Summary: Java/Mapscript map making extensions to Java
Group: Development/Languages
Requires: %{name} = %{version}-%{release}
Requires: java-gcj-compat
%description java
The Java/Mapscript extension provides full map customization capabilities
within the Java programming language.
2007-05-11 09:50:50 +00:00
%prep
%setup -q -n mapserver-%{version}
%if 0%{MS_REL}
%patch0 -p1 -b .java
%patch1 -p1 -b .perl
%patch2 -p1 -b .python
%endif
2007-05-11 09:50:50 +00:00
# fix spurious perm bits
chmod -x mapscript/python/examples/*.py
chmod -x mapscript/python/tests/rundoctests.dist
2007-05-11 09:50:50 +00:00
chmod -x mapscript/perl/examples/*.pl
# replace fonts for tests with symlinks
rm -rf tests/vera/Vera.ttf
rm -rf tests/vera/VeraBd.ttf
pushd tests/vera/
ln -sf /usr/share/fonts/dejavu/DejaVuSans.ttf Vera.ttf
ln -sf /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf VeraBd.ttf
popd
2007-05-11 09:50:50 +00:00
%build
CFLAGS="${CFLAGS} -ldl" ; export CFLAGS
# fix a UTF-8 one
iconv -f ISO-8859-1 -t UTF-8 < \
mapscript/java/examples/QueryByAttributeUnicode.java > \
mapscript/java/examples/QueryByAttributeUnicode-tmp.java
mv -f mapscript/java/examples/QueryByAttributeUnicode-tmp.java \
mapscript/java/examples/QueryByAttributeUnicode.java
2007-05-11 09:50:50 +00:00
# fix gdal lookup
%{__sed} -i.libs -e 's|`\$GDAL_CONFIG --dep-libs`||' configure
%configure \
--with-gd \
--with-zlib \
--with-tiff \
--with-agg \
--with-experimental-png \
2007-05-11 09:50:50 +00:00
--with-freetype=%{_bindir}/freetype-config \
--with-gdal=%{_bindir}/gdal-config \
--with-ogr=%{_bindir}/gdal-config \
--with-geos=%{_bindir}/geos-config \
2010-03-18 08:21:12 +00:00
--with-cairo=yes \
2007-05-11 09:50:50 +00:00
--with-proj \
--with-wfs \
--with-wcs \
--with-sos \
2007-05-11 09:50:50 +00:00
--with-wmsclient \
--with-wfsclient \
--with-xpm \
--with-postgis=%{_bindir}/pg_config \
--with-mygis=%{_bindir}/mysql_config \
--with-curl-config=%{_bindir}/curl-config \
--with-xml2-config=%{_bindir}/xml2-config \
--with-php=%{_bindir}/php-config \
--with-fribidi-config=%{_libdir}/pkgconfig/fribidi.pc \
2010-03-18 08:59:14 +00:00
--with-fastcgi=/usr \
2007-05-11 09:50:50 +00:00
--without-pdf \
--without-eppl \
--with-threads \
--enable-debug \
--disable-runpath
2010-03-18 08:21:12 +00:00
# disable pgport library lookup.
for makefile in `find . -type f -name 'Makefile'`; do
sed -i 's|-lpgport||g' $makefile
done
2007-05-11 09:50:50 +00:00
# WARNING !!!
# using %{?_smp_mflags} may break build
make
# build perl
pushd mapscript/perl
%if 0%{MS_REL}
mv mapscript.pm mapscript%{MS_REL}.pm
%endif
2007-05-11 09:50:50 +00:00
perl Makefile.PL
make DESTDIR=%{buildroot} pure_vendor_install
popd
2007-05-11 09:50:50 +00:00
# build python
pushd mapscript/python
2007-05-11 09:50:50 +00:00
python setup.py build
popd
2007-05-11 09:50:50 +00:00
# build java
pushd mapscript/java
make JAVA_HOME=/etc/alternatives/java_sdk
popd
2007-05-11 09:50:50 +00:00
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_libexecdir}
2007-05-11 09:50:50 +00:00
mkdir -p %{buildroot}/%{_sysconfdir}/php.d
mkdir -p %{buildroot}%{_libdir}/php/modules
mkdir -p %{buildroot}/%{_bindir}
mkdir -p %{buildroot}%{_datadir}/%{name}
install -p -m 755 .libs/mapserv %{buildroot}%{_libexecdir}/mapserver%{MS_REL}
install -p -m 755 .libs/legend %{buildroot}/%{_bindir}/legend%{MS_REL}
install -p -m 755 .libs/msencrypt %{buildroot}/%{_bindir}/msencrypt%{MS_REL}
install -p -m 755 .libs/scalebar %{buildroot}/%{_bindir}/scalebar%{MS_REL}
install -p -m 755 .libs/shp2img %{buildroot}/%{_bindir}/shp2img%{MS_REL}
install -p -m 755 .libs/shptree %{buildroot}/%{_bindir}/shptree%{MS_REL}
install -p -m 755 .libs/shptreetst %{buildroot}/%{_bindir}/shptreetst%{MS_REL}
install -p -m 755 .libs/shptreevis %{buildroot}/%{_bindir}/shptreevis%{MS_REL}
install -p -m 755 .libs/sortshp %{buildroot}/%{_bindir}/sortshp%{MS_REL}
install -p -m 755 .libs/tile4ms %{buildroot}/%{_bindir}/tile4ms%{MS_REL}
install -p -m 755 .libs/libmapserver-%{version}.so %{buildroot}%{_libdir}/
2007-05-11 09:50:50 +00:00
install -p -m 644 xmlmapfile/mapfile.xsd %{buildroot}%{_datadir}/%{name}
install -p -m 644 xmlmapfile/mapfile.xsl %{buildroot}%{_datadir}/%{name}
install -p -m 755 mapscript/php/.libs/php_mapscript-%{version}.so %{buildroot}/%{_libdir}/php/modules/php_mapscript%{MS_REL}.so
2007-05-11 09:50:50 +00:00
# install perl module
pushd mapscript/perl
make DESTDIR=%{buildroot} pure_vendor_install
popd
# install python module
pushd mapscript/python
python setup.py install --root %{buildroot}
popd
# install java
mkdir -p %{buildroot}%{_javadir}
install -p -m 644 mapscript/java/mapscript%{MS_REL}.jar %{buildroot}%{_javadir}/
install -p -m 755 mapscript/java/.libs/libjavamapscript-%{version}.so %{buildroot}%{_libdir}/
2007-05-11 09:50:50 +00:00
# install php config file
mkdir -p %{buildroot}%{_sysconfdir}/php.d/
cat > %{buildroot}%{_sysconfdir}/php.d/%{name}.ini <<EOF
; Enable %{name} extension module
extension=php_mapscript%{MS_REL}.so
2007-05-11 09:50:50 +00:00
EOF
# cleanup junks
for junk in {*.pod,*.bs,.packlist} ; do
find %{buildroot} -name "$junk" -exec rm -rf '{}' \;
done
# fix some exec bits
chmod 755 %{buildroot}%{perl_vendorarch}/auto/mapscript%{MS_REL}/mapscript%{MS_REL}.so
2007-05-11 09:50:50 +00:00
%files
%defattr(-,root,root)
%doc README COMMITERS GD-COPYING HISTORY.TXT
%doc INSTALL MIGRATION_GUIDE.txt
2009-04-26 19:53:19 +00:00
%doc symbols tests
2007-05-11 09:50:50 +00:00
%doc fonts
%{_bindir}/legend%{MS_REL}
%{_bindir}/msencrypt%{MS_REL}
%{_bindir}/scalebar%{MS_REL}
%{_bindir}/shp2img%{MS_REL}
%{_bindir}/shptree%{MS_REL}
%{_bindir}/shptreetst%{MS_REL}
%{_bindir}/shptreevis%{MS_REL}
%{_bindir}/sortshp%{MS_REL}
%{_bindir}/tile4ms%{MS_REL}
%{_libdir}/libmapserver-%{version}.so
%{_libexecdir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%files -n php-%{name}
2007-05-11 09:50:50 +00:00
%defattr(-,root,root)
%doc mapscript/php/README
%doc mapscript/php/examples
2007-05-11 09:50:50 +00:00
%config(noreplace) %{_sysconfdir}/php.d/%{name}.ini
%{_libdir}/php/modules/php_mapscript%{MS_REL}.so
2007-05-11 09:50:50 +00:00
%files perl
%defattr(-,root,root)
%doc mapscript/perl/examples
%dir %{perl_vendorarch}/auto/mapscript%{MS_REL}
%{perl_vendorarch}/auto/mapscript%{MS_REL}/*
%{perl_vendorarch}/mapscript%{MS_REL}.pm
2007-05-11 09:50:50 +00:00
%files python
%defattr(-,root,root)
%doc mapscript/python/README
%doc mapscript/python/examples
%doc mapscript/python/tests
%{python_sitearch}/*
%files java
%defattr(-,root,root)
%doc mapscript/java/README
%doc mapscript/java/examples
%doc mapscript/java/tests
%{_javadir}/*.jar
%{_libdir}/libjavamapscript-%{version}.so
2007-05-11 09:50:50 +00:00
%changelog
* Tue May 21 2013 Pavel Lisý <pali@fedoraproject.org> - 6.2.1-1
- Update to latest stable release
- BZ 910689 - dependency on bitstream-vera-sans-fonts changed to dejavu-sans-fonts
- BZ 960856 - Missing dependency: bitstream-vera-sans-fonts
- BZ 747421 - Move CGI executable from /usr/sbin to /usr/libexec
- BZ 796344 - Not compatible with JDK7
- BZ 846543 - mapserver-java is incorrectly packaged (missing required native library)
* Tue Apr 09 2013 Pavel Lisý <pali@fedoraproject.org> - 6.2.0-2
- changed MS_REL from 6x to 62
* Thu Mar 21 2013 Pavel Lisý <pali@fedoraproject.org> - 6.2.0-1
- Update to latest stable release
- dependency on bitstream-vera-sans-fonts replaced to dejavu-sans-fonts
2013-03-25 12:41:48 +00:00
* Mon Mar 25 2013 Oliver Falk <oliver@linux-kernel.at> - 6.0.3-10.1
2013-04-09 12:42:43 +00:00
- Rebuild - fix changelog (bogus date)
2013-03-25 12:41:48 +00:00
* Sat Mar 23 2013 Remi Collet <rcollet@redhat.com> - 6.0.3-10
- rebuild for http://fedoraproject.org/wiki/Features/Php55
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.3-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Fri Jan 18 2013 Adam Tkac <atkac redhat com> - 6.0.3-8
- rebuild due to "jpeg8-ABI" feature drop
* Fri Oct 26 2012 Remi Collet <remi@fedoraproject.org> - 6.0.3-7
- conform to PHP Guidelines (#828161)
- add minimal load test for php extension
* Tue Oct 16 2012 Pavel Lisý <pali@fedoraproject.org> - 6.0.3-6
- temporary removed mapserver-java (mapscript) due to build problem
with jdk7
* Fri Oct 12 2012 Pavel Lisý <pali@fedoraproject.org> - 6.0.3-5
- Merged from 6.0.3-4
- fix of build for php4 and swig > 2.0.4
* Tue Aug 14 2012 Devrim GÜNDÜZ <devrim@gunduz.org> - 6.0.3-4
- Rebuilt for new perl.
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2012-07-10 08:24:25 +00:00
* Tue Jul 10 2012 Petr Pisar <ppisar@redhat.com> - 6.0.3-2
- Perl 5.16 rebuild
* Fri Oct 12 2012 Pavel Lisý <pali@fedoraproject.org> - 6.0.3-1
- Update to 6.0.3, for various fixes described at:
https://github.com/mapserver/mapserver/blob/b8e6e0cbe0e5ff6c1a4ac682a67b108b19fc4edd/HISTORY.TXT
- Merged from 6.0.3-3
- fix of mapserver-java build
2012-06-08 13:20:12 +00:00
* Sat Jun 30 2012 Devrim GÜNDÜZ <devrim@gunduz.org> - 5.6.8-1
- Update to 5.6.8, for various fixes described at:
http://trac.osgeo.org/mapserver/browser/tags/rel-5-6-8/mapserver/HISTORY.TXT
- Update URL, per bz #835426
2011-07-20 09:46:18 +00:00
* Mon Jul 18 2011 Devrim GÜNDÜZ <devrim@gunduz.org> - 5.6.7-1
- Update to 5.6.7, for various fixes described at:
http://trac.osgeo.org/mapserver/browser/tags/rel-5-6-7/mapserver/HISTORY.TXT
- Fixes bz #722545
* Thu Mar 18 2010 Balint Cristian <cristian.balint@gmail.com> - 5.4.2-3
- fix bz#544679
2009-12-25 16:47:21 +00:00
* Wed Jan 13 2010 Devrim GÜNDÜZ <devrim@gunduz.org> - 5.4.2-2
- Rebuild against new GEOS.
2009-12-04 18:26:23 +00:00
* Mon Aug 31 2009 Devrim GUNDUZ <devrim@commandprompt.com> - 5.4.2-1
- Update to 5.4.2, which fixes CVE-2009-0840 and various fixes
described in :
http://trac.osgeo.org/mapserver/browser/tags/rel-5-4-2/mapserver/HISTORY.TXT
2009-08-21 14:29:18 +00:00
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 5.4.1-3
- rebuilt with new openssl
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.4.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2009-06-17 20:34:33 +00:00
* Wed Jun 17 2009 Devrim GUNDUZ <devrim@commandprompt.com> - 5.4.1-1
- Update to 5.4.1
2009-04-26 19:18:41 +00:00
* Sun Apr 26 2009 Devrim GUNDUZ <devrim@commandprompt.com> - 5.4.0-1
- Update to 5.4.0
2009-04-04 21:49:19 +00:00
* Sun Apr 5 2009 Devrim GUNDUZ <devrim@commandprompt.com> - 5.2.2-1
- Update to 5.2.2 which fixes :
CVE-2009-0839, CVE-2009-0840, CVE-2009-0841, CVE-2009-0842,
CVE-2009-0843, CVE-2009-1176, CVE-2009-1177.
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2009-02-11 16:34:12 +00:00
* Wed Feb 11 2009 Balint Cristian <cristian.balint@gmail.com> - 5.2.1-6
- fix vera font requirement
2009-02-05 13:35:31 +00:00
* Thu Feb 05 2009 Balint Cristian <cristian.balint@gmail.com> - 5.2.1-5
- fix email typo
- rebuild
* Thu Jan 29 2009 Balint Cristian <cristian.balint@gmail.com> - 5.2.1-4
- email change
- rebuild against new gdal
2009-01-17 14:59:40 +00:00
* Sat Jan 03 2009 Balint Cristian <rezso@rdsor.ro> 5.2.1-3
- require external fonts
- get rid of internal fonts
* Sun Dec 07 2008 Balint Cristian <rezso@rdsor.ro> 5.2.1-2
- enable agg render engine
- enable fribidi renderer
- build require agg-devel fribidi-devel
2008-12-01 22:08:30 +00:00
* Mon Dec 01 2008 Balint Cristian <rezso@rdsor.ro> 5.2.1-1
- new stable upstream
2008-11-29 16:55:37 +00:00
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 5.2.0-2
- Rebuild for Python 2.6
* Wed Jul 23 2008 Balint Cristian <rezso@rdsor.ro> 5.2.0-1
- new 5.2 series upstream
* Sat Jul 05 2008 Balint Cristian <rezso@rdsor.ro> 5.0.3-3
- address bz#453925
2008-06-25 23:03:45 +00:00
* Thu Jun 26 2008 Devrim GUNDUZ <devrim@commandprompt.com> - 5.0.3-2
- Rebuilt against Geos 3.0.0
* Thu Jun 12 2008 Balint Cristian <rezso@rdsor.ro> 5.0.3-1
- update to 5.0.3 bugfix release
- fix some rpmlint warnings
2008-02-19 21:33:28 +00:00
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 5.0.2-2
- Autorebuild for GCC 4.3
2008-02-13 02:19:46 +00:00
* Sat Feb 9 2008 Devrim GUNDUZ <devrim@commandprompt.com> - 5.0.2-1
- Update to 5.0.2
* Sat Jan 5 2008 Devrim GUNDUZ <devrim@commandprompt.com> - 5.0.0-2
- Update BR for java-devel, per Patrice Dumas
* Fri Jan 4 2008 Devrim GUNDUZ <devrim@commandprompt.com> - 5.0.0-1
2008-01-05 10:43:19 +00:00
- Update to 5.0.0
- Removed patch0, since it is already in upstream.
- Updated BRs
2007-12-06 19:51:13 +00:00
* Thu Dec 06 2007 Release Engineering <rel-eng at fedoraproject dot org> - 4.10.3-3
- Rebuild for deps
* Thu Aug 30 2007 Oliver Falk <oliver@linux-kernel.at> 4.10.3-2
- Add fix to include libmapserver (in some places), instead of
libmap, that doesn't exist (anymore)
* Thu Aug 30 2007 Oliver Falk <oliver@linux-kernel.at> 4.10.3-1
- Update to fix bz#256561, CVE-2007-4542
2007-05-11 21:58:53 +00:00
* Fri May 11 2007 Balint Cristian <cbalint@redhat.com> 4.10.2-4
- update require list properly.
2007-05-11 09:50:50 +00:00
* Thu May 10 2007 Balint Cristian <cbalint@redhat.com> 4.10.2-3
- use macros if possible in spec
* Thu May 10 2007 Balint Cristian <cbalint@redhat.com> 4.10.2-2
- further fixups for inclusion
* Thu May 10 2007 Balint Cristian <cbalint@redhat.com> 4.10.2-1
- new upsream tarball (bugfix)
- further fixups for inclusion
* Tue Apr 24 2007 Balint Cristian <cbalint@redhat.com> 4.10.1-3
- further fixups for inclusion
- enable java
* Fri Mar 16 2007 Balint Cristian <cbalint@redhat.com> 4.10.1-2
- add docs
* Fri Mar 16 2007 Balint Cristian <cbalint@redhat.com> 4.10.1-1
- first package