Advertisement
Guest User

Untitled

a guest
Jul 14th, 2017
560
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.75 KB | None | 0 0
  1. %global ini_name 40-mapserver.ini
  2. %global project_owner mapserver
  3. %global project_name mapserver
  4. # MapServer doesn't support PHP 7 yet. See:
  5. # https://github.com/mapserver/mapserver/issues/5252
  6. %global php_mapscript 0
  7. %global commit 208bb3a10fccdc9c1bdab175915072270abb1b45
  8. %global shortcommit %(c=%{commit}; echo ${c:0:7})
  9.  
  10. Name: mapserver
  11. Version: 7.0.5
  12. Release: 3.git%{shortcommit}%{?dist}
  13. Summary: Environment for building spatially-enabled internet applications
  14.  
  15. Group: Development/Tools
  16. License: BSD
  17. URL: http://www.mapserver.org
  18.  
  19. Source0: https://github.com/%{project_owner}/%{project_name}/archive/%{commit}/%{project_name}-%{commit}.tar.gz
  20.  
  21. Requires: httpd
  22. Requires: dejavu-sans-fonts
  23.  
  24. BuildRequires: cairo-devel
  25. BuildRequires: cmake
  26. BuildRequires: curl-devel
  27. BuildRequires: fcgi-devel
  28. BuildRequires: freetype-devel
  29. BuildRequires: fribidi-devel
  30. BuildRequires: gd-devel >= 2.0.16
  31. BuildRequires: gdal-devel
  32. BuildRequires: geos-devel
  33. BuildRequires: giflib-devel
  34. BuildRequires: httpd-devel
  35. BuildRequires: libjpeg-devel
  36. BuildRequires: libpng-devel
  37. BuildRequires: libtiff-devel
  38. BuildRequires: libxml2-devel
  39. BuildRequires: libXpm-devel
  40. BuildRequires: libxslt-devel
  41. BuildRequires: mysql-devel
  42. BuildRequires: harfbuzz-devel
  43. BuildRequires: pam-devel
  44. BuildRequires: perl-generators
  45. BuildRequires: perl(ExtUtils::MakeMaker)
  46. BuildRequires: postgresql-devel
  47. BuildRequires: proj-devel
  48. BuildRequires: readline-devel
  49. BuildRequires: swig
  50. BuildRequires: zlib-devel
  51.  
  52.  
  53. %description
  54. Mapserver is an internet mapping program that converts GIS data to
  55. map images in real time. With appropriate interface pages,
  56. Mapserver can provide an interactive internet map based on
  57. custom GIS data.
  58.  
  59.  
  60. %package libs
  61. Summary: %{summary}
  62.  
  63. %description libs
  64. This package contains the libs for mapserver.
  65.  
  66.  
  67. %package devel
  68. Summary: Development files for mapserver
  69. Requires: %{name} = %{version}
  70.  
  71. %description devel
  72. This package contains development files for mapserver.
  73.  
  74. %if 0%{php_mapscript}
  75. %package -n php-%{name}
  76. Summary: PHP/Mapscript map making extensions to PHP
  77. Group: Development/Languages
  78. BuildRequires: php-devel
  79. Requires: php-gd%{?_isa}
  80. Requires: php(zend-abi) = %{php_zend_api}
  81. Requires: php(api) = %{php_core_api}
  82.  
  83. %description -n php-%{name}
  84. The PHP/Mapscript extension provides full map customization capabilities within
  85. the PHP scripting language.
  86. %endif # end php_mapscript
  87.  
  88.  
  89. %package perl
  90. Summary: Perl/Mapscript map making extensions to Perl
  91. Group: Development/Languages
  92. Requires: %{name} = %{version}-%{release}
  93. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  94.  
  95. %description perl
  96. The Perl/Mapscript extension provides full map customization capabilities
  97. within the Perl programming language.
  98.  
  99. %package python
  100. Summary: Python/Mapscript map making extensions to Python
  101. Group: Development/Languages
  102. BuildRequires: python2-devel
  103. Requires: %{name} = %{version}-%{release}
  104.  
  105. %description python
  106. The Python/Mapscript extension provides full map customization capabilities
  107. within the Python programming language.
  108.  
  109. %package java
  110. Summary: Java/Mapscript map making extensions to Java
  111. Group: Development/Languages
  112. BuildRequires: java-devel
  113. Requires: %{name} = %{version}-%{release}
  114. Requires: java-headless
  115.  
  116. %description java
  117. The Java/Mapscript extension provides full map customization capabilities
  118. within the Java programming language.
  119.  
  120.  
  121. %package ruby
  122. Summary: Ruby/Mapscript map making extensions to Ruby
  123. BuildRequires: ruby-devel
  124. Requires: %{name} = %{version}-%{release}
  125.  
  126. %description ruby
  127. The Ruby/Mapscript extension provides full map customization capabilities within
  128. the ruby programming language.
  129.  
  130.  
  131. %prep
  132. %setup -q -n %{project_owner}-%{commit}
  133.  
  134. # replace fonts for tests with symlinks
  135. rm -rf tests/vera/Vera.ttf
  136. rm -rf tests/vera/VeraBd.ttf
  137. pushd tests/vera/
  138. ln -sf /usr/share/fonts/dejavu/DejaVuSans.ttf Vera.ttf
  139. ln -sf /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf VeraBd.ttf
  140. popd
  141.  
  142. # Force swig to regenerate the wrapper
  143. rm -rf mapscript/perl/mapscript_wrap.c
  144.  
  145.  
  146. %build
  147.  
  148. mkdir build
  149. cd build
  150.  
  151. export CFLAGS="${CFLAGS} -ldl -fPIC -fno-strict-aliasing"
  152. export CXXFLAGS="%{optflags} -fno-strict-aliasing"
  153.  
  154. cmake -DINSTALL_LIB_DIR=%{_libdir}
  155. -DCMAKE_INSTALL_PREFIX=%{_prefix}
  156. -DCMAKE_SKIP_RPATH=ON
  157. -DCMAKE_CXX_FLAGS_RELEASE="%{optflags} -fno-strict-aliasing"
  158. -DCMAKE_C_FLAGS_RELEASE="%{optflags} -fno-strict-aliasing"
  159. -DCMAKE_VERBOSE_MAKEFILE=ON
  160. -DCMAKE_BUILD_TYPE="Release"
  161. -DCMAKE_SKIP_INSTALL_RPATH=ON
  162. -DCMAKE_SKIP_RPATH=ON
  163. -DWITH_CAIRO=TRUE
  164. -DWITH_CLIENT_WFS=TRUE
  165. -DWITH_CLIENT_WMS=TRUE
  166. -DWITH_CURL=TRUE
  167. -DWITH_FCGI=TRUE
  168. -DWITH_FRIBIDI=TRUE
  169. -DWITH_GD=TRUE
  170. -DWITH_GDAL=TRUE
  171. -DWITH_GEOS=TRUE
  172. -DWITH_GIF=TRUE
  173. -DWITH_ICONV=TRUE
  174. -DWITH_JAVA=TRUE
  175. -DWITH_KML=TRUE
  176. -DWITH_LIBXML2=TRUE
  177. -DWITH_OGR=TRUE
  178. -DWITH_MYSQL=TRUE
  179. -DWITH_PERL=TRUE
  180. -DCUSTOM_PERL_SITE_ARCH_DIR="%{perl_vendorarch}"
  181. %if 0%{php_mapscript}
  182. -DWITH_PHP=TRUE
  183. %endif # end php_mapscript
  184. -DWITH_POSTGIS=TRUE
  185. -DWITH_PROJ=TRUE
  186. -DWITH_PYTHON=TRUE
  187. -DWITH_RUBY=TRUE
  188. -DWITH_V8=FALSE
  189. -DWITH_SOS=TRUE
  190. -DWITH_THREAD_SAFETY=TRUE
  191. -DWITH_WCS=TRUE
  192. -DWITH_WMS=TRUE
  193. -DWITH_WFS=TRUE
  194. -DWITH_XMLMAPFILE=TRUE
  195. -DWITH_POINT_Z_M=TRUE
  196. -DWITH_APACHE_MODULE=FALSE
  197. -DWITH_SVGCAIRO=FALSE
  198. -DWITH_MYSQL=FALSE
  199. -DWITH_CSHARP=FALSE
  200. -DWITH_ORACLESPATIAL=FALSE
  201. -DWITH_ORACLE_PLUGIN=FALSE
  202. -DWITH_MSSQL2008=FALSE
  203. -DWITH_SDE=FALSE
  204. -DWITH_SDE_PLUGIN=FALSE
  205. -DWITH_EXEMPI=FALSE
  206. ..
  207.  
  208.  
  209. make %{?_smp_mflags}
  210.  
  211.  
  212. %install
  213. mkdir -p %{buildroot}%{_libexecdir}
  214. %if 0%{php_mapscript}
  215. mkdir -p %{buildroot}%{php_inidir}
  216. mkdir -p %{buildroot}%{php_extdir}
  217. %endif # end php_mapscript
  218. mkdir -p %{buildroot}%{_bindir}
  219. mkdir -p %{buildroot}%{_datadir}/%{name}
  220. mkdir -p %{buildroot}%{_includedir}/%{name}/
  221.  
  222. install -p -m 644 xmlmapfile/mapfile.xsd %{buildroot}%{_datadir}/%{name}
  223. install -p -m 644 xmlmapfile/mapfile.xsl %{buildroot}%{_datadir}/%{name}
  224.  
  225. # install java
  226. mkdir -p %{buildroot}%{_javadir}
  227. install -p -m 644 build/mapscript/java/mapscript.jar %{buildroot}%{_javadir}/
  228.  
  229. # install header
  230. install -p -m 644 *.h %{buildroot}%{_includedir}/%{name}/
  231.  
  232. cd build
  233. make DESTDIR=%{buildroot} install %{?_smp_mflags}
  234.  
  235. %if 0%{php_mapscript}
  236. # install php config file
  237. mkdir -p %{buildroot}%{php_inidir}
  238. cat > %{buildroot}%{php_inidir}/%{ini_name} <<EOF
  239. ; Enable %{name} extension module
  240. extension=php_mapscript.so
  241. EOF
  242. %endif # end php_mapscript
  243.  
  244.  
  245. %post libs -p /sbin/ldconfig
  246. %post devel -p /sbin/ldconfig
  247.  
  248. %postun libs -p /sbin/ldconfig
  249. %postun devel -p /sbin/ldconfig
  250.  
  251.  
  252. %files
  253. %doc README
  254. %{_bindir}/legend
  255. %{_bindir}/mapserv
  256. %{_bindir}/msencrypt
  257. %{_bindir}/scalebar
  258. %{_bindir}/shp2img
  259. %{_bindir}/shptree
  260. %{_bindir}/shptreetst
  261. %{_bindir}/shptreevis
  262. %{_bindir}/sortshp
  263. %{_bindir}/tile4ms
  264. %{_datadir}/%{name}/
  265.  
  266. %files libs
  267. %doc README
  268. %{_libdir}/libmapserver.so.%{version}
  269. %{_libdir}/libmapserver.so.2
  270.  
  271. %files devel
  272. %doc README
  273. %{_libdir}/libmapserver.so
  274. %{_includedir}/%{name}/
  275.  
  276. %if 0%{php_mapscript}
  277. %files -n php-%{name}
  278. %doc mapscript/php/README
  279. %doc mapscript/php/examples
  280. %config(noreplace) %{php_inidir}/%{ini_name}
  281. %{php_extdir}/php_mapscript.so*
  282. %endif # end php_mapscript
  283.  
  284. %files perl
  285. %doc README
  286. %doc mapscript/perl/examples
  287. %dir %{perl_vendorarch}/auto/mapscript
  288. %{perl_vendorarch}/auto/mapscript/*
  289. %{perl_vendorarch}/mapscript.pm
  290.  
  291. %files python
  292. %doc mapscript/python/README
  293. %doc mapscript/python/examples
  294. %doc mapscript/python/tests
  295. %{python2_sitearch}/*mapscript*
  296.  
  297. %files java
  298. %doc mapscript/java/README
  299. %doc mapscript/java/examples
  300. %doc mapscript/java/tests
  301. %{_javadir}/*.jar
  302. %{_libdir}/libjavamapscript.so
  303.  
  304. %files ruby
  305. %doc mapscript/ruby/README
  306. %doc mapscript/ruby/examples
  307. %{ruby_sitearchdir}/mapscript.so
  308.  
  309.  
  310. %changelog
  311. * Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 7.0.5-3.git208bb3a
  312. - Perl 5.26 rebuild
  313.  
  314. * Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.0.5-2.git208bb3a
  315. - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
  316.  
  317. * Mon May 15 2017 Julien Enselme <jujens@jujens.eu> - 7.0.5-1.git208bb3a
  318. - Update to 7.0.5
  319.  
  320. * Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 7.0.4-3.gitb4bc015
  321. - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
  322.  
  323. * Tue Jan 24 2017 Devrim Gündüz <devrim@gunduz.org> - 7.0.4-2.gitb4bc015
  324. - Rebuilt for Proj 4.9.3
  325.  
  326. * Thu Jan 19 2017 Julien Enselme <jujens@jujens.eu> - 7.0.4-1.gitb4bc015
  327. - Update to 7.0.4
  328.  
  329. * Fri Jan 13 2017 Vít Ondruch <vondruch@redhat.com> - 7.0.3-2.git0f9ece8
  330. - Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.4
  331.  
  332. * Mon Dec 12 2016 Julien Enselme <jujens@jujens.eu> - 7.0.3-1.git0f9ece8
  333. - Update to 7.0.3
  334.  
  335. * Wed Sep 21 2016 Julien Enselme <jujens@jujens.eu> - 7.0.2-1.git4ea78eb
  336. - Update to 7.0.2
  337.  
  338. * Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.0.1-4.git6ae2bc6
  339. - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
  340.  
  341. * Tue Jun 28 2016 Julien Enselme <jujens@jujens.eu> - 7.0.1-3.git6ae2bc6
  342. - Disable PHP support.
  343.  
  344. * Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 7.0.1-2.git6ae2bc6
  345. - Perl 5.24 rebuild
  346.  
  347. * Thu Feb 25 2016 Julien Enselme <jujens@jujens.eu> - 7.0.1-1.git6ae2bc6
  348. - Update to 7.0.1
  349.  
  350. * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 6.2.2-8
  351. - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
  352.  
  353. * Sun Aug 30 2015 Peter Robinson <pbrobinson@fedoraproject.org> 6.2.2-7
  354. - Rebuild again for GDAL 2.0
  355.  
  356. * Sun Aug 2 2015 Devrim Gündüz <devrim@gunduz.org> - 6.2.2-6
  357. - Rebuilt for new gdal
  358.  
  359. * Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.2.2-5
  360. - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
  361.  
  362. * Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 6.2.2-4
  363. - Perl 5.22 rebuild
  364.  
  365. * Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 6.2.2-3
  366. - Rebuilt for GCC 5 C++11 ABI change
  367.  
  368. * Wed Mar 11 2015 Devrim GÜNDÜZ <devrim@gunduz.org> - 6.2.2-2
  369. - Rebuilt for Proj 4.9.1
  370. - Add patch for GCC5 build, also add -fPIC to CFLAGS
  371. - Add a patch for swig 3.0.5
  372.  
  373. * Tue Dec 23 2014 Pavel Lisý <pali@fedoraproject.org> - 6.2.2-1
  374. - Update to latest 6.2 release
  375. - BZ 1048689 - CVE-2013-7262 mapserver: SQL injections with postgis TIME filters
  376. - BZ 747409 - MapServer uses internal AGG and does not depend on agg-devel
  377.  
  378. * Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 6.2.1-10
  379. - Perl 5.20 rebuild
  380. - Regenerated the wrapper to work with new Perl
  381.  
  382. * Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.2.1-9
  383. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
  384.  
  385. * Sat Aug 09 2014 Mat Booth <mat.booth@redhat.com> - 6.2.1-8
  386. - Drop dep on gcj.
  387.  
  388. * Fri Jun 20 2014 Remi Collet <rcollet@redhat.com> - 6.2.1-7
  389. - rebuild for https://fedoraproject.org/wiki/Changes/Php56
  390. - add numerical prefix to extension configuration file
  391. - add minimal PHP extension load test
  392. - add upstream patch for PHP 5.6 (fix #1111478)
  393.  
  394. * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.2.1-6
  395. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  396.  
  397. * Tue Aug 27 2013 Orion Poplawski <orion@cora.nwra.com> - 6.2.1-5
  398. - Rebuild for gdal 1.10.0
  399.  
  400. * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.2.1-4
  401. - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
  402.  
  403. * Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 6.2.1-3
  404. - Perl 5.18 rebuild
  405.  
  406. * Tue Jun 11 2013 Remi Collet <rcollet@redhat.com> - 6.2.1-2
  407. - rebuild for new GD 2.1.0
  408.  
  409. * Tue May 21 2013 Pavel Lisý <pali@fedoraproject.org> - 6.2.1-1
  410. - Update to latest stable release
  411. - BZ 910689 - dependency on bitstream-vera-sans-fonts changed to dejavu-sans-fonts
  412. - BZ 960856 - Missing dependency: bitstream-vera-sans-fonts
  413. - BZ 747421 - Move CGI executable from /usr/sbin to /usr/libexec
  414. - BZ 796344 - Not compatible with JDK7
  415. - BZ 846543 - mapserver-java is incorrectly packaged (missing required native library)
  416. - trim of changelog
  417.  
  418. * Tue Apr 09 2013 Pavel Lisý <pali@fedoraproject.org> - 6.2.0-2
  419. - changed MS_REL from 6x to 62
  420.  
  421. * Thu Apr 04 2013 Pavel Lisý <pali@fedoraproject.org> - 6.2.0-1
  422. - Update to latest stable release
  423. - dependency on bitstream-vera-sans-fonts replaced to dejavu-sans-fonts
  424.  
  425. * Mon Mar 25 2013 Oliver Falk <oliver@linux-kernel.at> - 6.0.3-10.1
  426. - Rebuild - fix changelog (bogus date)
  427.  
  428. * Sat Mar 23 2013 Remi Collet <rcollet@redhat.com> - 6.0.3-10
  429. - rebuild for http://fedoraproject.org/wiki/Features/Php55
  430.  
  431. * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.3-9
  432. - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
  433.  
  434. * Fri Jan 18 2013 Adam Tkac <atkac redhat com> - 6.0.3-8
  435. - rebuild due to "jpeg8-ABI" feature drop
  436.  
  437. * Fri Oct 26 2012 Remi Collet <remi@fedoraproject.org> - 6.0.3-7
  438. - conform to PHP Guidelines (#828161)
  439. - add minimal load test for php extension
  440.  
  441. * Tue Oct 16 2012 Pavel Lisý <pali@fedoraproject.org> - 6.0.3-6
  442. - temporary removed mapserver-java (mapscript) due to build problem
  443. with jdk7
  444.  
  445. * Fri Oct 12 2012 Pavel Lisý <pali@fedoraproject.org> - 6.0.3-5
  446. - Merged from 6.0.3-4
  447. - fix of build for php4 and swig > 2.0.4
  448.  
  449. * Tue Aug 14 2012 Devrim GÜNDÜZ <devrim@gunduz.org> - 6.0.3-4
  450. - Rebuilt for new perl.
  451.  
  452. * Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.3-3
  453. - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
  454.  
  455. * Tue Jul 10 2012 Petr Pisar <ppisar@redhat.com> - 6.0.3-2
  456. - Perl 5.16 rebuild
  457.  
  458. * Sat Jun 30 2012 Devrim GÜNDÜZ <devrim@gunduz.org> - 6.0.3-1
  459. - Update to 6.0.3, for various fixes described at:
  460. https://github.com/mapserver/mapserver/blob/rel-6-0-3-0/HISTORY.TXT
  461. - Update URL, per bz #835426
  462.  
  463. * Fri Jun 08 2012 Petr Pisar <ppisar@redhat.com> - 6.0.2-2
  464. - Perl 5.16 rebuild
  465.  
  466. * Mon Apr 16 2012 Devrim GÜNDÜZ <devrim@gunduz.org> - 6.0.2-1
  467. - Update to 6.0.2, for various fixes described at:
  468. http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-2/mapserver/HISTORY.TXT
  469.  
  470. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.1-5
  471. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  472.  
  473. * Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 6.0.1-4
  474. - Rebuild for new libpng
  475.  
  476. * Thu Jul 21 2011 Petr Sabata <contyk@redhat.com> - 6.0.1-3
  477. - Perl mass rebuild
  478.  
  479. * Wed Jul 20 2011 Petr Sabata <contyk@redhat.com> - 6.0.1-2
  480. - Perl mass rebuild
  481.  
  482. * Mon Jul 18 2011 Devrim GÜNDÜZ <devrim@gunduz.org> - 6.0.1-1
  483. - Update to 6.0.1, for various fixes described at:
  484. http://trac.osgeo.org/mapserver/browser/tags/rel-6-0-1/mapserver/HISTORY.TXT
  485. - Fixes bz #722545
  486. - Apply changes to spec file for new major version.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement