2009-05-05 11:53:14 +00:00
|
|
|
Name: gearmand
|
2020-02-18 11:49:14 +00:00
|
|
|
Version: 1.1.19.1
|
2021-08-16 06:11:55 +00:00
|
|
|
Release: %autorelease
|
2009-05-05 11:53:14 +00:00
|
|
|
Summary: A distributed job system
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
URL: http://www.gearman.org
|
2017-01-08 05:41:01 +00:00
|
|
|
Source0: https://github.com/gearman/%{name}/releases/download/%{version}/gearmand-%{version}.tar.gz
|
2013-07-17 21:59:37 +00:00
|
|
|
Source1: gearmand.init
|
2009-06-22 11:25:12 +00:00
|
|
|
Source2: gearmand.sysconfig
|
2011-06-03 17:48:27 +00:00
|
|
|
Source3: gearmand.service
|
2017-09-05 14:16:20 +00:00
|
|
|
Patch0: gearmand-1.1.12-ppc64le.patch
|
2020-02-18 11:49:14 +00:00
|
|
|
Patch1: https://github.com/gearman/gearmand/pull/273.patch
|
2013-07-22 18:20:16 +00:00
|
|
|
# Fails to build on PPC.
|
|
|
|
# See https://bugzilla.redhat.com/987104 and https://bugzilla.redhat.com/987109
|
2014-09-09 15:36:59 +00:00
|
|
|
ExcludeArch: ppc
|
2009-05-05 11:53:14 +00:00
|
|
|
|
2018-03-10 10:48:29 +00:00
|
|
|
BuildRequires: gcc-c++
|
2020-02-18 11:49:14 +00:00
|
|
|
BuildRequires: chrpath
|
2013-07-17 21:59:37 +00:00
|
|
|
BuildRequires: libuuid-devel
|
2012-08-14 21:39:17 +00:00
|
|
|
BuildRequires: boost-devel >= 1.37.0, boost-thread
|
2013-07-17 21:59:37 +00:00
|
|
|
BuildRequires: sqlite-devel
|
|
|
|
BuildRequires: tokyocabinet-devel
|
|
|
|
BuildRequires: libevent-devel
|
|
|
|
BuildRequires: libmemcached-devel, memcached
|
2021-08-16 06:12:41 +00:00
|
|
|
# https://src.fedoraproject.org/rpms/libmemcached-awesome/pull-request/1
|
|
|
|
# libmemcached-awesome-devel needs cyrus-sasl-devel
|
|
|
|
BuildRequires: cyrus-sasl-devel
|
2021-12-09 07:32:23 +00:00
|
|
|
%if 0%{?rhel} < 9
|
|
|
|
# not available in EPEL 9 yet
|
2017-09-05 16:42:38 +00:00
|
|
|
BuildRequires: hiredis-devel
|
2021-12-09 07:32:23 +00:00
|
|
|
%endif
|
2013-07-17 21:59:37 +00:00
|
|
|
BuildRequires: gperf
|
2017-09-23 06:17:43 +00:00
|
|
|
BuildRequires: mariadb-connector-c-devel openssl-devel
|
2018-09-05 13:24:34 +00:00
|
|
|
BuildRequires: libpq-devel
|
2013-07-17 21:59:37 +00:00
|
|
|
BuildRequires: zlib-devel
|
2020-02-20 16:39:30 +00:00
|
|
|
BuildRequires: systemd
|
2011-02-05 00:38:07 +00:00
|
|
|
|
2013-07-17 21:59:37 +00:00
|
|
|
# For %%check
|
2020-02-18 11:49:14 +00:00
|
|
|
# https://github.com/gearman/gearmand/issues/278
|
2013-07-17 21:59:37 +00:00
|
|
|
#BuildRequires: curl-devel
|
2009-05-05 11:53:14 +00:00
|
|
|
|
2011-03-22 14:02:13 +00:00
|
|
|
# google perftools available only on these
|
2016-01-19 12:51:55 +00:00
|
|
|
%ifarch %{ix86} x86_64 ppc64 ppc64le aarch64 %{arm}
|
2021-12-09 07:32:23 +00:00
|
|
|
%if 0%{?rhel} < 9
|
|
|
|
# not available in EPEL 9 yet
|
2020-02-20 16:39:30 +00:00
|
|
|
BuildRequires: gperftools-devel
|
2009-05-05 11:53:14 +00:00
|
|
|
%endif
|
2021-12-09 07:32:23 +00:00
|
|
|
%endif
|
2021-01-05 00:51:05 +00:00
|
|
|
BuildRequires: make
|
2020-02-20 16:39:30 +00:00
|
|
|
Requires(pre): shadow-utils
|
|
|
|
Requires: procps
|
2017-01-08 05:41:01 +00:00
|
|
|
%{?systemd_requires}
|
2012-01-13 02:06:15 +00:00
|
|
|
|
2009-05-05 11:53:14 +00:00
|
|
|
%description
|
|
|
|
Gearman provides a generic framework to farm out work to other machines
|
|
|
|
or dispatch function calls to machines that are better suited to do the work.
|
|
|
|
It allows you to do work in parallel, to load balance processing, and to
|
|
|
|
call functions between languages. It can be used in a variety of applications,
|
|
|
|
from high-availability web sites to the transport for database replication.
|
|
|
|
In other words, it is the nervous system for how distributed processing
|
|
|
|
communicates.
|
|
|
|
|
|
|
|
|
2011-12-22 21:30:01 +00:00
|
|
|
%package -n libgearman
|
|
|
|
Summary: Development libraries for gearman
|
2012-10-19 09:18:45 +00:00
|
|
|
Provides: libgearman-1.0 = %{version}-%{release}
|
|
|
|
Obsoletes: libgearman-1.0 < %{version}-%{release}
|
2011-12-22 21:30:01 +00:00
|
|
|
|
|
|
|
%description -n libgearman
|
|
|
|
Development libraries for %{name}.
|
|
|
|
|
2009-05-05 11:53:14 +00:00
|
|
|
%package -n libgearman-devel
|
|
|
|
Summary: Development headers for libgearman
|
|
|
|
Requires: pkgconfig, libgearman = %{version}-%{release}
|
2010-02-16 14:55:33 +00:00
|
|
|
Requires: libevent-devel
|
2012-10-19 09:18:45 +00:00
|
|
|
Provides: libgearman-1.0-devel = %{version}-%{release}
|
|
|
|
Obsoletes: libgearman-1.0-devel < %{version}-%{release}
|
2009-05-05 11:53:14 +00:00
|
|
|
|
|
|
|
%description -n libgearman-devel
|
2011-12-22 21:30:01 +00:00
|
|
|
Development headers for %{name}.
|
2009-05-05 11:53:14 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2014-09-09 15:14:12 +00:00
|
|
|
%patch0 -p1
|
2020-02-18 11:49:14 +00:00
|
|
|
%patch1 -p1
|
2009-05-05 11:53:14 +00:00
|
|
|
|
|
|
|
%build
|
2020-02-18 11:49:14 +00:00
|
|
|
%configure --disable-static --disable-silent-rules --enable-ssl
|
2022-01-18 12:03:09 +00:00
|
|
|
sed -i 's/ DRIZZLED_BINARY .*/ DRIZZLED_BINARY ""/' gear_config.h
|
2012-03-07 17:40:27 +00:00
|
|
|
make %{_smp_mflags}
|
2009-05-05 11:53:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=%{buildroot}
|
2010-02-16 14:55:33 +00:00
|
|
|
rm -v %{buildroot}%{_libdir}/libgearman*.la
|
2020-02-18 11:49:14 +00:00
|
|
|
chrpath --delete %{buildroot}%{_bindir}/gearman
|
2009-05-24 09:20:04 +00:00
|
|
|
install -p -D -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/gearmand
|
2009-05-05 11:53:14 +00:00
|
|
|
|
2020-02-20 16:39:30 +00:00
|
|
|
# install systemd unit file
|
|
|
|
mkdir -p %{buildroot}%{_unitdir}
|
|
|
|
install -m 0644 %{SOURCE3} %{buildroot}%{_unitdir}/%{name}.service
|
2013-07-17 21:59:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
%check
|
2020-02-20 10:50:51 +00:00
|
|
|
# https://github.com/gearman/gearmand/issues/279
|
|
|
|
# https://github.com/gearman/gearmand/issues/277
|
|
|
|
#make test
|
2009-05-05 11:53:14 +00:00
|
|
|
|
2009-07-14 14:54:57 +00:00
|
|
|
|
2009-05-05 11:53:14 +00:00
|
|
|
%pre
|
|
|
|
getent group gearmand >/dev/null || groupadd -r gearmand
|
|
|
|
getent passwd gearmand >/dev/null || \
|
|
|
|
useradd -r -g gearmand -d / -s /sbin/nologin \
|
|
|
|
-c "Gearmand job server" gearmand
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%post
|
2020-02-20 16:39:30 +00:00
|
|
|
%systemd_post gearmand.service
|
2013-07-17 21:59:37 +00:00
|
|
|
|
2009-05-05 11:53:14 +00:00
|
|
|
|
|
|
|
%preun
|
2020-02-20 16:39:30 +00:00
|
|
|
%systemd_preun gearmand.service
|
2009-05-05 11:53:14 +00:00
|
|
|
|
2011-06-03 17:48:27 +00:00
|
|
|
%postun
|
2020-02-20 16:39:30 +00:00
|
|
|
%systemd_postun_with_restart gearmand.service
|
2009-05-05 11:53:14 +00:00
|
|
|
|
2019-01-22 17:39:02 +00:00
|
|
|
%ldconfig_scriptlets -n libgearman
|
2009-05-05 11:53:14 +00:00
|
|
|
|
|
|
|
%files
|
2017-01-08 05:41:01 +00:00
|
|
|
%license COPYING
|
2017-07-01 04:02:32 +00:00
|
|
|
%doc AUTHORS ChangeLog HACKING THANKS
|
2009-05-24 09:20:04 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/gearmand
|
2009-05-05 11:53:14 +00:00
|
|
|
%{_sbindir}/gearmand
|
|
|
|
%{_bindir}/gearman
|
2011-06-03 17:48:27 +00:00
|
|
|
%{_bindir}/gearadmin
|
2013-07-17 21:59:37 +00:00
|
|
|
%{_mandir}/man1/*
|
|
|
|
%{_mandir}/man8/*
|
2011-06-03 17:48:27 +00:00
|
|
|
%{_unitdir}/%{name}.service
|
2009-05-05 11:53:14 +00:00
|
|
|
|
2011-12-22 21:30:01 +00:00
|
|
|
%files -n libgearman
|
2017-01-08 05:41:01 +00:00
|
|
|
%license COPYING
|
2012-10-18 20:03:22 +00:00
|
|
|
%{_libdir}/libgearman.so.8
|
|
|
|
%{_libdir}/libgearman.so.8.0.0
|
2009-05-05 11:53:14 +00:00
|
|
|
|
|
|
|
%files -n libgearman-devel
|
2017-01-08 05:41:01 +00:00
|
|
|
%license COPYING
|
2017-07-01 04:02:32 +00:00
|
|
|
%doc AUTHORS ChangeLog HACKING THANKS
|
2009-05-05 11:53:14 +00:00
|
|
|
%dir %{_includedir}/libgearman
|
2017-09-23 06:17:43 +00:00
|
|
|
%{_includedir}/libgearman/
|
2009-05-05 11:53:14 +00:00
|
|
|
%{_libdir}/pkgconfig/gearmand.pc
|
2011-12-22 21:30:01 +00:00
|
|
|
%{_libdir}/libgearman.so
|
|
|
|
%{_includedir}/libgearman-1.0/
|
2013-07-17 21:59:37 +00:00
|
|
|
%{_mandir}/man3/*
|
2009-05-05 11:53:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2021-08-16 06:11:55 +00:00
|
|
|
%autochangelog
|