Skip to content

Commit

Permalink
RPM spec: prepare for new build system
Browse files Browse the repository at this point in the history
- remove obsolete triggers
- change tarball name and url
  • Loading branch information
Nick Altmann committed Jan 17, 2016
1 parent 5a28baf commit 44cc594
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions packaging/fedora/opensips.spec
Expand Up @@ -13,7 +13,7 @@ Version: 2.1.2
Release: 1%{?dist}
License: GPLv2+
Group: System Environment/Daemons
Source0: http://opensips.org/pub/%{name}/%{version}/src/%{name}-%{version}-tls_src.tar.gz
Source0: http://download.opensips.org/%{name}-%{version}.tar.gz
URL: http://opensips.org

BuildRequires: expat-devel
Expand Down Expand Up @@ -735,7 +735,7 @@ the exchange of instant messages between SIP clients and XMPP(jabber)
clients.

%prep
%setup -q -n %{name}-%{version}-tls
%setup -q -n %{name}-%{version}

%build
LOCALBASE=/usr NICER=0 CFLAGS="%{optflags}" %{?_with_oracle:ORAHOME="$ORACLE_HOME"} %{__make} all %{?_smp_mflags} TLS=1 \
Expand Down Expand Up @@ -829,21 +829,6 @@ if [ $1 = 0 ]; then
fi
%endif

%if 0%{?fedora} > 16 || 0%{?rhel} > 6
%triggerun -- %{name} < 1.7.2-1
# Save the current service runlevel info
# User must manually run systemd-sysv-convert --apply opensips
# to migrate them to systemd targets
/usr/bin/systemd-sysv-convert --save %{name} >/dev/null 2>&1 ||:

# Run these because the SysV package being removed won't do them
/sbin/chkconfig --del %{name} >/dev/null 2>&1 || :
/bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :

%triggerun -- opensips < 1.7.2-4
chown -R %{name}:%{name} %{_sysconfdir}/%{name}
%endif

%files
%{_sbindir}/opensips
%{_sbindir}/opensipsctl
Expand Down

0 comments on commit 44cc594

Please sign in to comment.