linphone.spec.in 4.52 KB
Newer Older
aymeric's avatar
aymeric committed
1 2 3 4 5 6 7 8 9 10 11 12 13
# -*- rpm-spec -*-

## rpmbuild options

# default is to build with video support & without truespeech support
%define		video		%{?_without_video:0}%{!?_without_video:1}

# Linphone requires an old osip version, sometimes (e.g. fc6)
# delivered as "compat-"
%define _without_old_osip	0

Name:           linphone
Version:        @VERSION@
jehan's avatar
jehan committed
14
Release:        %(version=`git describe --tags --abbrev=40 | sed -rn 's/^.*-([0-9]+)-g[a-z0-9]{40}$/\1/p'` && if test -z "$version" ; then echo 0 ; else echo $version ; fi)%{?dist}
aymeric's avatar
aymeric committed
15 16 17 18 19 20 21 22 23 24 25
Summary:        Phone anywhere in the whole world by using the Internet

Group:          Applications/Communications
License:        GPL
URL:            http://www.linphone.org
Source0:        http://download.savannah.gnu.org/releases/linphone/stable/source/%{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%ifarch %{ix86}
BuildArch:	i686
%endif

26 27 28
BuildRequires: gtk2-devel 
BuildRequires: belle-sip-devel speex-devel gettext 
BuildRequires: intltool gettext-devel 
aymeric's avatar
aymeric committed
29
%if %{video}
30
BuildRequires: ffmpeg-devel SDL-devel
aymeric's avatar
aymeric committed
31 32 33
%endif

%description
34
Linphone is a SIP compliant audio & video phone. It can be used to run calls 
35
over the internet. It has a gtk+ and console interface.
aymeric's avatar
aymeric committed
36 37

%package devel
38 39 40
Summary:       Development libraries for linphone
Group:         Development/Libraries
Requires:      %{name} = %{version}-%{release}
41
Requires:      ortp-devel = 1:@ORTP_VERSION@
42 43
Requires:      mediastreamer-devel = @MS2_VERSION@
Requires:      glib2-devel
aymeric's avatar
aymeric committed
44 45 46 47 48 49 50 51 52

%description    devel
Libraries and headers required to develop software with linphone.

%prep
%setup -q

%build
%configure \
jehan's avatar
jehan committed
53 54
%if !%{video}
	--disable-video \
aymeric's avatar
aymeric committed
55
%endif
Margaux Clerc's avatar
Margaux Clerc committed
56
	--disable-tests --docdir=%{_docdir} --enable-ipv6 --enable-static --enable-external-mediastreamer --enable-external-ortp --enable-ldap
aymeric's avatar
aymeric committed
57 58 59 60 61 62 63
%__make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%find_lang %{name}
jehan's avatar
jehan committed
64
desktop-file-install \
aymeric's avatar
aymeric committed
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
  --delete-original \
  --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  --add-category X-Fedora \
  --add-category Telephony \
  --add-category GTK \
  $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig


%files -f %{name}.lang
%defattr(-,root,root)
Simon Morlat's avatar
Simon Morlat committed
82
%doc AUTHORS ChangeLog COPYING NEWS README.md TODO
Simon Morlat's avatar
Simon Morlat committed
83 84 85
%{_bindir}/linphone
%{_bindir}/linphonec
%{_bindir}/linphonecsh
86 87
%{_bindir}/linphone-daemon
%{_bindir}/linphone-daemon-pipetest
Simon Morlat's avatar
Simon Morlat committed
88 89
%{_bindir}/lp-autoanswer
%{_bindir}/lp-test-ecc
jehan's avatar
jehan committed
90
%{_libdir}/*.so.*
aymeric's avatar
aymeric committed
91
%{_mandir}/*
jehan's avatar
jehan committed
92
%{_datadir}/applications/%{name}.desktop
93
%{_datadir}/applications/audio-assistant.desktop
aymeric's avatar
aymeric committed
94
%{_datadir}/pixmaps/linphone
jehan's avatar
jehan committed
95
%{_datadir}/linphone
96
%{_datadir}/icons/*
aymeric's avatar
aymeric committed
97
%{_datadir}/sounds/linphone
Simon Morlat's avatar
Simon Morlat committed
98
%{_datadir}/appdata/linphone.appdata.xml
aymeric's avatar
aymeric committed
99 100 101

%files devel
%defattr(-,root,root)
Simon Morlat's avatar
Simon Morlat committed
102 103
%{_bindir}/lpc2xml_test
%{_bindir}/xml2lpc_test
Simon Morlat's avatar
Simon Morlat committed
104
%{_bindir}/lp-sendmsg
aymeric's avatar
aymeric committed
105
%{_includedir}/linphone
jehan's avatar
jehan committed
106 107 108
%{_libdir}/*.a
%{_libdir}/*.la
%{_libdir}/*.so
aymeric's avatar
aymeric committed
109
%{_libdir}/pkgconfig/linphone.pc
jehan's avatar
jehan committed
110
%{_datadir}/tutorials/linphone/*.c
jehan's avatar
jehan committed
111
%{_docdir}
aymeric's avatar
aymeric committed
112 113

%changelog
jehan's avatar
jehan committed
114 115 116
* Mon Aug 19 2013 Jehan Monnier <jehan.monnier@linphone.org> - 3.6.99
- belle sip migration

aymeric's avatar
aymeric committed
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159
* Wed Sep 28 2005 Francois-Xavier 'FiX' KOWALSKI <francois-xavier.kowalski@hp.com> - 1.2.0pre3
- Updated to latests Simon's work

* Fri May 27 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.0.1-3
- Fix multiple menu entry and missing icon (#158975)
- Clean up spec file

* Fri May  6 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.0.1-2
- Fix libosip2-devel BR

* Wed May  4 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.0.1-1
- Update to 1.0.1
- Port patches from devel

* Wed Mar 23 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.12.2-7
- pkgconfig and -devel fixes

* Wed Mar 23 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.12.2-6
- Fix build on x86_64

* Sat Mar 19 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.12.2-5
- %%

* Sat Mar 19 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.12.2-4
- Used %%find_lang
- Tightened up %%files
- Streamlined spec file

* Thu Mar 17 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.12.2-3
- Broke %%description at 80 columns

* Wed Mar 16 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.12.2-2
- Removed explicit Requires

* Tue Mar 15 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.12.2-1
- Bump release to 1
- Cleaned up the -docs and -speex patches

* Fri Jan 21 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0:0.12.2-0.iva.1
- Fixed a silly spec error

* Fri Jan 21 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0:0.12.2-0.iva.0
- Initial RPM release.