diff options
author | Remi Collet <remi@remirepo.net> | 2025-01-08 08:22:54 +0100 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2025-01-08 08:22:54 +0100 |
commit | ab2d18d7bb2d7f6a05394ba4f0fc4ac77731e75b (patch) | |
tree | 7cf7cbbf042e9b1447a34288517f91fd085d4d96 | |
parent | bd9d8af9235c1e3c59fb8d583f107eac2f7d0eeb (diff) |
build for remirepo
build for remirepo
-rw-r--r-- | .gitignore | 9 | ||||
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | gearmand.init | 81 | ||||
-rw-r--r-- | gearmand.spec | 31 |
4 files changed, 29 insertions, 96 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..01f0400 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +clog +package-*.xml +*.tgz +*.tar.bz2 +*.tar.gz +*.tar.xz +*.tar.xz.asc +*.src.rpm +*/*rpm diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1e65467 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +SRCDIR := $(shell pwd) +NAME := $(shell basename $(SRCDIR)) +include ../common/Makefile + diff --git a/gearmand.init b/gearmand.init deleted file mode 100644 index e2502aa..0000000 --- a/gearmand.init +++ /dev/null @@ -1,81 +0,0 @@ -#!/bin/bash -# -# gearmand Startup script for the Gearman server -# -# chkconfig: - 85 15 -# description: Gearman is a distributed job system. -# processname: gearmand -# config: /etc/sysconfig/gearmand -# pidfile: /var/run/gearmand/gearmand.pid -# -### BEGIN INIT INFO -# Provides: gearmand -# Required-Start: $local_fs $network -# Required-Stop: $local_fs $network -# Default-Start: -# Default-Stop: -# Short-Description: start and stop the Gearman server -# Description: Gearman is a distributed job system. -### END INIT INFO - -# Source function library. -. /etc/rc.d/init.d/functions - -if [ -f /etc/sysconfig/gearmand ]; then - . /etc/sysconfig/gearmand -fi - -[ -z "${PIDFILE}" ] && pidfile="/var/run/gearmand/gearmand.pid" -[ -z "${LOCKFILE}" ] && lockfile="/var/lock/subsys/gearmand" - -gearmand=/usr/sbin/gearmand -prog=gearmand - -RETVAL=0 - -start() { - echo -n $"Starting $prog: " - daemon --pidfile=$pidfile --user=gearmand $gearmand -d $OPTIONS - RETVAL=$? - echo - [ $RETVAL = 0 ] && (touch $lockfile; pgrep -f $gearmand > $pidfile) - return $RETVAL -} - -stop() { - echo -n $"Stopping $prog: " - killproc -p $pidfile $gearmand - RETVAL=$? - echo - [ $RETVAL = 0 ] && rm -f $lockfile $pidfile -} - -# See how we were called. -case "$1" in - start) - start - ;; - stop) - stop - ;; - status) - status -p $pidfile $gearmand - RETVAL=$? - ;; - restart|reload) - stop - start - ;; - condrestart|try-restart) - if status -p $pidfile $gearmand >&/dev/null; then - stop - start - fi - ;; - *) - echo $"Usage: $prog {start|stop|restart|reload|condrestart|status|help}" - RETVAL=3 -esac - -exit $RETVAL - diff --git a/gearmand.spec b/gearmand.spec index 1e5398c..c0bc6fb 100644 --- a/gearmand.spec +++ b/gearmand.spec @@ -1,22 +1,21 @@ -## START: Set by rpmautospec -## (rpmautospec version 0.6.3) -## RPMAUTOSPEC: autorelease, autochangelog -%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: - release_number = 4; - base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); - print(release_number + base_release_number - 1); -}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} -## END: Set by rpmautospec +# remirepo spec file for gearmand, from +# +# Fedora spec file for gearmand +# +# License: MIT +# http://opensource.org/licenses/MIT +# +# Please preserve changelog entries +# Name: gearmand Version: 1.1.21 -Release: %autorelease +Release: 5%{?dist} Summary: A distributed job system # migrated to SPDX License: BSD-3-Clause URL: http://www.gearman.org Source0: https://github.com/gearman/%{name}/releases/download/%{version}/gearmand-%{version}.tar.gz -Source1: gearmand.init Source2: gearmand.sysconfig Source3: gearmand.service Patch0: gearmand-1.1.21-ppc64le.patch @@ -81,7 +80,9 @@ Obsoletes: libgearman-1.0-devel < %{version}-%{release} Development headers for %{name}. %prep -%autosetup -p1 +%setup -q +%patch -P0 -p1 + %build %configure --disable-static --disable-silent-rules --enable-ssl @@ -151,7 +152,9 @@ exit 0 %changelog -## START: Generated by rpmautospec +* Wed Jan 8 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.21-5 +- build for remirepo + * Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.21-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild @@ -548,5 +551,3 @@ exit 0 * Sat Feb 07 2009 Ruben Kerkhof <ruben@rubenkerkhof.com> 0.3-1 - Initial import - -## END: Generated by rpmautospec |