Skip to content

Commit 6a470f5

Browse files
committed
Build and use our own libosip2 packages for Centos 7
The OKay repo was not seen as trustworthy enough by some users, so we'll just roll our own packages instead.
1 parent d3db7ec commit 6a470f5

File tree

2 files changed

+98
-1
lines changed

2 files changed

+98
-1
lines changed

gitlab-build-rpm.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,21 @@ repo_gpgcheck=1
3939
enabled=1
4040
EOF
4141

42+
cat << EOF > /etc/yum.repos.d/bintray-wand-openli-rpm.repo
43+
#bintray-wand-openli-rpm - packages by wand from Bintray
44+
[bintray-wand-openli-rpm]
45+
name=bintray-wand-openli-rpm
46+
baseurl=https://dl.bintray.com/wand/OpenLI-rpm/${DISTRO}/\$releasever/\$basearch/
47+
gpgkey=https://bintray.com/user/downloadSubjectPublicKey?username=wand
48+
gpgcheck=0
49+
repo_gpgcheck=1
50+
enabled=1
51+
EOF
52+
4253
yum install -y wget make gcc
4354

4455
if [ "$1" = "centos7" ]; then
4556
yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm || true
46-
yum install -y http://repo.okay.com.mx/centos/7/x86_64/release/okay-release-1-1.noarch.rpm || true
4757
fi
4858

4959
if [ "$1" = "centos6" ]; then

rpm/libosip2.spec

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
Summary: SIP implementation
2+
Name: libosip2
3+
Version: 4.1.0
4+
Release: 1%{?dist}
5+
License: LGPL
6+
Group: System Environment/Libraries
7+
URL: http://www.gnu.org/software/osip/osip.html
8+
9+
Source: http://ftp.gnu.org/gnu/osip/libosip2-%{version}.tar.gz
10+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
11+
12+
Requires: /sbin/ldconfig
13+
BuildRequires: gcc-c++
14+
BuildRequires: autoconf
15+
BuildRequires: automake
16+
17+
%description
18+
oSIP is an implementation of the Session Initiation Protocol as described
19+
by the rfc3261 (wich deprecates rfc2543). This library aims to provide
20+
multimedia and telecom software developers an easy and powerful interface
21+
to initiate and control SIP based sessions in their applications. SIP is
22+
an open standard replacement from IETF for H323.
23+
24+
%package devel
25+
Summary: Header files, libraries and development documentation for %{name}.
26+
Group: Development/Libraries
27+
Requires: %{name} = %{version}-%{release}
28+
29+
%description devel
30+
This package contains the header files, static libraries and development
31+
documentation for %{name}. If you like to develop programs using %{name},
32+
you will need to install %{name}-devel.
33+
34+
%prep
35+
%setup
36+
37+
%build
38+
%configure
39+
%{__make} %{?_smp_mflags}
40+
41+
%install
42+
%{__rm} -rf %{buildroot}
43+
%makeinstall
44+
45+
%{__mv} -f %{buildroot}%{_mandir}/man1/osip.1 %{buildroot}%{_mandir}/man1/osip2.1
46+
47+
%clean
48+
%{__rm} -rf %{buildroot}
49+
50+
%post
51+
/sbin/ldconfig 2>/dev/null
52+
53+
%postun
54+
/sbin/ldconfig 2>/dev/null
55+
56+
%files
57+
%defattr(-, root, root, 0755)
58+
%doc AUTHORS BUGS ChangeLog COPYING INSTALL NEWS README TODO
59+
%doc %{_mandir}/man1/osip2.1*
60+
%{_libdir}/libosip2.so.*
61+
%{_libdir}/libosipparser2.so.*
62+
63+
%files devel
64+
%defattr(-, root, root, 0755)
65+
%{_includedir}/osip2/
66+
%{_includedir}/osipparser2/
67+
%{_libdir}/libosip2.a
68+
%{_libdir}/libosipparser2.a
69+
%exclude %{_libdir}/libosip2.la
70+
%exclude %{_libdir}/libosipparser2.la
71+
%{_libdir}/libosip2.so
72+
%{_libdir}/libosipparser2.so
73+
%{_libdir}/pkgconfig/libosip2.pc
74+
75+
%changelog
76+
* Mon Jun 17 2019 Shane Alcock <salcock@waikato.ac.nz> - 4.1.0-1
77+
- Updated to 4.1.0 and rebuilt for distribution by WAND / OpenLI
78+
79+
* Thu Feb 17 2011 Yury V. Zaytsev <yury@shurup.com> - 3.5.0-1
80+
- Updated to the latest version.
81+
82+
* Sat Apr 08 2006 Dries Verachtert <dries@ulyssis.org> - 2.2.0-1.2
83+
- Rebuild for Fedora Core 5.
84+
85+
* Wed Mar 23 2005 Dag Wieers <dag@wieers.com> - 2.2.0-1
86+
- Initial package. (using DAR)
87+

0 commit comments

Comments
 (0)