comparison uwsgi.spec @ 4:851739edafa6

Update to version 1.9.21.1
author Guido Berhoerster <guido+packaging@berhoerster.name>
date Wed, 18 Dec 2013 21:01:23 +0100
parents 8f3c148d4f0d
children e6b2af6272a4
comparison
equal deleted inserted replaced
3:8f3c148d4f0d 4:851739edafa6
1 # revision of the uwsgi documentation corresponding to the packaged release 1 # revision of the uwsgi documentation corresponding to the packaged release
2 %global uwsgi_docs_rev 63bde22cd047e8ff0da9bbb98d2ad2cdf9be2d5a 2 %global uwsgi_docs_rev eaf1ca90a65ab8524c565fa1bd783838b5dba738
3 3
4 Name: uwsgi 4 Name: uwsgi
5 Version: 1.9.15 5 Version: 1.9.21.1
6 Release: 1%{?dist} 6 Release: 1%{?dist}
7 Summary: Complete Stack for Building Clustered/Distributed Network Applications 7 Summary: Complete Stack for Building Clustered/Distributed Network Applications
8 8
9 Group: System Environment/Daemons 9 Group: System Environment/Daemons
10 License: GPLv2+ 10 License: GPLv2+ with exceptions
11 URL: http://projects.unbit.it/uwsgi 11 URL: http://projects.unbit.it/uwsgi
12 Source0: http://projects.unbit.it/downloads/%{name}-%{version}.tar.gz 12 Source0: http://projects.unbit.it/downloads/%{name}-%{version}.tar.gz
13 Source1: https://github.com/unbit/uwsgi-docs/archive/%{uwsgi_docs_rev}.zip 13 Source1: https://github.com/unbit/uwsgi-docs/archive/%{uwsgi_docs_rev}.zip
14 Source2: %{name}.ini 14 Source2: %{name}.ini
15 Source3: %{name}.conf 15 Source3: %{name}.conf
19 Patch0: uwsgi-do-not-install-plugins-into-plugin_dir.patch 19 Patch0: uwsgi-do-not-install-plugins-into-plugin_dir.patch
20 # do not set rpath for plugins 20 # do not set rpath for plugins
21 Patch1: uwsgi-no-rpath.patch 21 Patch1: uwsgi-no-rpath.patch
22 # link against libboost*-mt provided by RHEL/Fedora 22 # link against libboost*-mt provided by RHEL/Fedora
23 Patch2: uwsgi-link-against-boost-mt.patch 23 Patch2: uwsgi-link-against-boost-mt.patch
24 # set libffi CFLAGS and LIBS correctly from pkg-config
25 Patch3: uwsgi-libffi-fix-cflags-libs.patch
24 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 26 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
25 27
26 BuildRequires: boost-devel 28 BuildRequires: boost-devel
27 BuildRequires: bzip2-devel 29 BuildRequires: bzip2-devel
30 BuildRequires: ceph-devel
28 BuildRequires: dos2unix 31 BuildRequires: dos2unix
29 BuildRequires: erlang
30 BuildRequires: gcc-objc 32 BuildRequires: gcc-objc
31 BuildRequires: GeoIP-devel 33 BuildRequires: GeoIP-devel
32 BuildRequires: gloox-devel 34 BuildRequires: gloox-devel
33 BuildRequires: gmp-devel 35 BuildRequires: gmp-devel
34 BuildRequires: httpd-devel 36 BuildRequires: httpd-devel
35 BuildRequires: java-devel 37 BuildRequires: java-devel
36 BuildRequires: krb5-devel 38 BuildRequires: krb5-devel
37 BuildRequires: libattr-devel 39 BuildRequires: libattr-devel
38 BuildRequires: libcap-devel 40 # POSIX capabilities are disabled because libcap < 2.17 breaks the inclusion of
41 # kernel headers (see
42 # http://lists.unbit.it/pipermail/uwsgi/2013-December/006800.html)
43 #BuildRequires: libcap-devel
39 BuildRequires: libcurl-devel 44 BuildRequires: libcurl-devel
40 BuildRequires: libedit-devel 45 BuildRequires: libedit-devel
46 BuildRequires: libffi-devel
41 BuildRequires: libuuid-devel 47 BuildRequires: libuuid-devel
42 BuildRequires: libxml2-devel 48 BuildRequires: libxml2-devel
43 BuildRequires: libxslt-devel 49 BuildRequires: libxslt-devel
44 BuildRequires: libyaml-devel 50 BuildRequires: libyaml-devel
45 BuildRequires: lua-devel 51 BuildRequires: lua-devel
247 253
248 %description plugin-python 254 %description plugin-python
249 The python uWSGI plugin embeds Python and allows to run WSGI applications and 255 The python uWSGI plugin embeds Python and allows to run WSGI applications and
250 provides access to the uWSGI API from Python. 256 provides access to the uWSGI API from Python.
251 257
258 %package plugin-rados
259 Summary: uWSGI Plugin for Serving Objects Stored in a Ceph Cluster through RADOS
260 Group: Development/Libraries
261 Requires: %{name} = %{version}-%{release}
262
263 %description plugin-rados
264 The rados uWSGI plugin allows serving objects stored in a Ceph cluster by
265 directly accessing RADOS.
266
252 %package plugin-rack 267 %package plugin-rack
253 Summary: uWSGI Plugin Providing Ruby Rack Support 268 Summary: uWSGI Plugin Providing Ruby Rack Support
254 Group: Development/Libraries 269 Group: Development/Libraries
255 Requires: %{name} = %{version}-%{release} 270 Requires: %{name} = %{version}-%{release}
256 271
336 %prep 351 %prep
337 %setup -q -a1 352 %setup -q -a1
338 %patch0 -p1 353 %patch0 -p1
339 %patch1 -p1 354 %patch1 -p1
340 %patch2 -p1 355 %patch2 -p1
356 %patch3 -p1
341 357
342 pushd uwsgi-docs-%{uwsgi_docs_rev} 358 pushd uwsgi-docs-%{uwsgi_docs_rev}
343 # remove empty files 359 # remove empty files
344 find . -name '*.rst' -and -size 0 -exec rm {} \+ 360 find . -name '*.rst' -and -size 0 -exec rm {} \+
345 # remove languages unknown to sphinx which otherwise cause build failures 361 # remove languages unknown to sphinx which otherwise cause build failures
380 blacklist_plugins="${blacklist_plugins} gccgo" 396 blacklist_plugins="${blacklist_plugins} gccgo"
381 # does not build 397 # does not build
382 blacklist_plugins="${blacklist_plugins} rbthreads" 398 blacklist_plugins="${blacklist_plugins} rbthreads"
383 # needs glusterfs >= 3.4 399 # needs glusterfs >= 3.4
384 blacklist_plugins="${blacklist_plugins} glusterfs" 400 blacklist_plugins="${blacklist_plugins} glusterfs"
401 # tcc is not available
402 blacklist_plugins="${blacklist_plugins} libtcc"
403 # libmatheval is not available
404 blacklist_plugins="${blacklist_plugins} matheval"
385 405
386 embed_plugins="null" 406 embed_plugins="null"
387 407
388 for f in plugins/*/uwsgiplugin.py; do 408 for f in plugins/*/uwsgiplugin.py; do
389 plugin="${f#plugins/}" 409 plugin="${f#plugins/}"
432 export UWSGICONFIG_LUAINC="%{_includedir}" 452 export UWSGICONFIG_LUAINC="%{_includedir}"
433 export UWSGICONFIG_LUALIBPATH="%{_libdir}" 453 export UWSGICONFIG_LUALIBPATH="%{_libdir}"
434 export CFLAGS="%{optflags} -Wno-unused-but-set-variable -Wno-error" 454 export CFLAGS="%{optflags} -Wno-unused-but-set-variable -Wno-error"
435 455
436 # build uwsgi executable and plugins 456 # build uwsgi executable and plugins
437 python uwsgiconfig.py --build fedora.ini 457 python uwsgiconfig.py --verbose --build fedora.ini
438 458
439 # build apache module 459 # build apache module
440 pushd apache2 460 pushd apache2
441 apxs -c mod_uwsgi.c 461 apxs -c mod_uwsgi.c
442 popd 462 popd
553 %{_libdir}/%{name}/zergpool_plugin.so 573 %{_libdir}/%{name}/zergpool_plugin.so
554 574
555 %{_libdir}/%{name}/carbon_plugin.so 575 %{_libdir}/%{name}/carbon_plugin.so
556 %{_libdir}/%{name}/emperor_amqp_plugin.so 576 %{_libdir}/%{name}/emperor_amqp_plugin.so
557 %{_libdir}/%{name}/emperor_zeromq_plugin.so 577 %{_libdir}/%{name}/emperor_zeromq_plugin.so
558 %{_libdir}/%{name}/erlang_plugin.so
559 %{_libdir}/%{name}/fastrouter_plugin.so 578 %{_libdir}/%{name}/fastrouter_plugin.so
579 %{_libdir}/%{name}/forkptyrouter_plugin.so
560 %{_libdir}/%{name}/gevent_plugin.so 580 %{_libdir}/%{name}/gevent_plugin.so
561 %{_libdir}/%{name}/graylog2_plugin.so 581 %{_libdir}/%{name}/graylog2_plugin.so
562 %{_libdir}/%{name}/greenlet_plugin.so 582 %{_libdir}/%{name}/greenlet_plugin.so
563 %{_libdir}/%{name}/jwsgi_plugin.so 583 %{_libdir}/%{name}/jwsgi_plugin.so
584 %{_libdir}/%{name}/libffi_plugin.so
585 %{_libdir}/%{name}/logpipe_plugin.so
564 %{_libdir}/%{name}/logsocket_plugin.so 586 %{_libdir}/%{name}/logsocket_plugin.so
587 %{_libdir}/%{name}/logzmq_plugin.so
565 %{_libdir}/%{name}/mongodblog_plugin.so 588 %{_libdir}/%{name}/mongodblog_plugin.so
589 %{_libdir}/%{name}/mongrel2_plugin.so
590 %{_libdir}/%{name}/msgpack_plugin.so
566 %{_libdir}/%{name}/nagios_plugin.so 591 %{_libdir}/%{name}/nagios_plugin.so
567 %{_libdir}/%{name}/pyerl_plugin.so
568 %{_libdir}/%{name}/redislog_plugin.so 592 %{_libdir}/%{name}/redislog_plugin.so
569 %{_libdir}/%{name}/ring_plugin.so 593 %{_libdir}/%{name}/ring_plugin.so
594 %{_libdir}/%{name}/router_metrics_plugin.so
570 %{_libdir}/%{name}/router_spnego_plugin.so 595 %{_libdir}/%{name}/router_spnego_plugin.so
571 %{_libdir}/%{name}/rrdtool_plugin.so 596 %{_libdir}/%{name}/rrdtool_plugin.so
572 %{_libdir}/%{name}/servlet_plugin.so 597 %{_libdir}/%{name}/servlet_plugin.so
598 %{_libdir}/%{name}/stats_pusher_file_plugin.so
599 %{_libdir}/%{name}/stats_pusher_socket_plugin.so
600 %{_libdir}/%{name}/tornado_plugin.so
601 %{_libdir}/%{name}/transformation_template_plugin.so
602 %{_libdir}/%{name}/tuntap_plugin.so
603 %{_libdir}/%{name}/zabbix_plugin.so
573 604
574 %files doc 605 %files doc
575 %defattr(-,root,root,-) 606 %defattr(-,root,root,-)
576 %doc html/ 607 %doc html/
577 608
644 %{_libdir}/%{name}/python_plugin.so 675 %{_libdir}/%{name}/python_plugin.so
645 676
646 %files plugin-rack 677 %files plugin-rack
647 %defattr(-,root,root,-) 678 %defattr(-,root,root,-)
648 %{_libdir}/%{name}/rack_plugin.so 679 %{_libdir}/%{name}/rack_plugin.so
680
681 %files plugin-rados
682 %defattr(-,root,root,-)
683 %{_libdir}/%{name}/rados_plugin.so
649 684
650 %files plugin-router_access 685 %files plugin-router_access
651 %defattr(-,root,root,-) 686 %defattr(-,root,root,-)
652 %{_libdir}/%{name}/router_access_plugin.so 687 %{_libdir}/%{name}/router_access_plugin.so
653 688
683 %defattr(-,root,root,-) 718 %defattr(-,root,root,-)
684 %{_sysconfdir}/httpd/conf.d/10-uwsgi.conf 719 %{_sysconfdir}/httpd/conf.d/10-uwsgi.conf
685 %{_libdir}/httpd/modules/mod_uwsgi.so 720 %{_libdir}/httpd/modules/mod_uwsgi.so
686 721
687 %changelog 722 %changelog
723 * Wed Dec 18 2013 Guido Berhoerster <guido+packaging@berhoerster.name> - 1.9.21.1-1
724 - Update to version 1.9.21.1
725 - License change to GPLv2+ with exceptions
726 - Disable POSIX capabilities because libcap < 2.17 breaks the inclusion of kernel
727 headers
728
688 * Mon Sep 9 2013 Guido Berhoerster <guido+packaging@berhoerster.name> - 1.9.15-1 729 * Mon Sep 9 2013 Guido Berhoerster <guido+packaging@berhoerster.name> - 1.9.15-1
689 - Update to version 1.9.15 730 - Update to version 1.9.15
690 731
691 * Sat Jul 27 2013 Guido Berhoerster <guido+packaging@berhoerster.name> - 1.9.14-1 732 * Sat Jul 27 2013 Guido Berhoerster <guido+packaging@berhoerster.name> - 1.9.14-1
692 - Update to version 1.9.14 733 - Update to version 1.9.14