Skip to content

Commit 44cc594

Browse files
author
Nick Altmann
committed
RPM spec: prepare for new build system
- remove obsolete triggers - change tarball name and url
1 parent 5a28baf commit 44cc594

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

packaging/fedora/opensips.spec

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Version: 2.1.2
1313
Release: 1%{?dist}
1414
License: GPLv2+
1515
Group: System Environment/Daemons
16-
Source0: http://opensips.org/pub/%{name}/%{version}/src/%{name}-%{version}-tls_src.tar.gz
16+
Source0: http://download.opensips.org/%{name}-%{version}.tar.gz
1717
URL: http://opensips.org
1818

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

737737
%prep
738-
%setup -q -n %{name}-%{version}-tls
738+
%setup -q -n %{name}-%{version}
739739

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

832-
%if 0%{?fedora} > 16 || 0%{?rhel} > 6
833-
%triggerun -- %{name} < 1.7.2-1
834-
# Save the current service runlevel info
835-
# User must manually run systemd-sysv-convert --apply opensips
836-
# to migrate them to systemd targets
837-
/usr/bin/systemd-sysv-convert --save %{name} >/dev/null 2>&1 ||:
838-
839-
# Run these because the SysV package being removed won't do them
840-
/sbin/chkconfig --del %{name} >/dev/null 2>&1 || :
841-
/bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
842-
843-
%triggerun -- opensips < 1.7.2-4
844-
chown -R %{name}:%{name} %{_sysconfdir}/%{name}
845-
%endif
846-
847832
%files
848833
%{_sbindir}/opensips
849834
%{_sbindir}/opensipsctl

0 commit comments

Comments
 (0)