Merge branch 'bugfix/rpm-builds' of https://github.com/winem/rtpengine

changes/88/9888/1
Richard Fuchs 10 years ago
commit 63293449c2

@ -1,4 +1,4 @@
Name: rtpengine Name: ngcp-rtpengine
Version: 4.5.0 Version: 4.5.0
Release: 0%{?dist} Release: 0%{?dist}
Summary: The Sipwise NGCP rtpengine Summary: The Sipwise NGCP rtpengine
@ -29,7 +29,7 @@ Group: System Environment/Daemons
BuildRequires: gcc make redhat-rpm-config iptables-devel BuildRequires: gcc make redhat-rpm-config iptables-devel
Requires: iptables iptables-ipv6 Requires: iptables iptables-ipv6
Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: %{name}-dkms%{?_isa} = %{version}-%{release} Requires: %{name}-dkms = %{version}-%{release}
%description kernel %description kernel
%{summary}. %{summary}.
@ -47,6 +47,7 @@ Requires(preun): epel-release dkms
%description dkms %description dkms
%{summary}. %{summary}.
%define binname rtpengine
%prep %prep
%setup -q %setup -q
@ -62,15 +63,15 @@ cd ..
%install %install
# Install the userspace daemon # Install the userspace daemon
install -D -p -m755 daemon/%{name} %{buildroot}%{_sbindir}/%{name} install -D -p -m755 daemon/%{binname} %{buildroot}%{_sbindir}/%{binname}
# Install CLI (command line interface) # Install CLI (command line interface)
install -D -p -m755 utils/%{name}-ctl %{buildroot}%{_sbindir}/%{name}-ctl install -D -p -m755 utils/%{binname}-ctl %{buildroot}%{_sbindir}/%{binname}-ctl
## Install the init.d script and configuration file ## Install the init.d script and configuration file
install -D -p -m755 el/%{name}.init \ install -D -p -m755 el/%{binname}.init \
%{buildroot}%{_initrddir}/%{name} %{buildroot}%{_initrddir}/%{name}
install -D -p -m644 el/%{name}.sysconfig \ install -D -p -m644 el/%{binname}.sysconfig \
%{buildroot}%{_sysconfdir}/sysconfig/%{name} %{buildroot}%{_sysconfdir}/sysconfig/%{binname}
mkdir -p %{buildroot}%{_sharedstatedir}/%{name} mkdir -p %{buildroot}%{_sharedstatedir}/%{name}
# Install the iptables plugin # Install the iptables plugin
@ -131,13 +132,13 @@ true
%files %files
# Userspace daemon # Userspace daemon
%{_sbindir}/%{name} %{_sbindir}/%{binname}
# CLI (command line interface) # CLI (command line interface)
%{_sbindir}/%{name}-ctl %{_sbindir}/%{binname}-ctl
# init.d script and configuration file # init.d script and configuration file
%{_initrddir}/%{name} %{_initrddir}/%{name}
%config(noreplace) %{_sysconfdir}/sysconfig/%{name} %config(noreplace) %{_sysconfdir}/sysconfig/%{binname}
%attr(0750,%{name},%{name}) %dir %{_sharedstatedir}/%{name} %attr(0750,%{name},%{name}) %dir %{_sharedstatedir}/%{name}
# Documentation # Documentation
@ -156,6 +157,11 @@ true
%changelog %changelog
* Thu Nov 24 2016 Marcel Weinberg <marcel@ng-voice.com>
- Updated to ngcp-rtpengine version 4.5.0 and CentOS 7.2
- created a new variable "binname" to use rtpengine as name for the binaries
(still using ngcp-rtpenginge as name of the package and daemon - aligned to the .deb packages)
- fixed dependencies
* Mon Nov 11 2013 Peter Dunkley <peter.dunkley@crocodilertc.net> * Mon Nov 11 2013 Peter Dunkley <peter.dunkley@crocodilertc.net>
- Updated version to 2.3.2 - Updated version to 2.3.2
- Set license to GPLv3 - Set license to GPLv3
@ -166,3 +172,4 @@ true
- Builds and installs userspace daemon (but no init.d scripts etc yet) - Builds and installs userspace daemon (but no init.d scripts etc yet)
- Builds and installs the iptables plugin - Builds and installs the iptables plugin
- DKMS package for the kernel module - DKMS package for the kernel module

Loading…
Cancel
Save