]> sjero.net Git - linphone/blob - linphone.spec.in
Aac-eld add missing header according to RFC3640 3.3.6
[linphone] / linphone.spec.in
1 # -*- rpm-spec -*-
2
3 ## rpmbuild options
4
5 # default is to build with video support & without truespeech support
6 %define         video           %{?_without_video:0}%{!?_without_video:1}
7
8 # Linphone requires an old osip version, sometimes (e.g. fc6)
9 # delivered as "compat-"
10 %define _without_old_osip       0
11
12 Name:           linphone
13 Version:        @VERSION@
14 Release:        %(git describe --tags --abbrev=40 | sed -rn 's/^.*-([0-9]+)-g[a-z0-9]{40}$/\1/p' || echo '1')%{?dist}
15 Summary:        Phone anywhere in the whole world by using the Internet
16
17 Group:          Applications/Communications
18 License:        GPL
19 URL:            http://www.linphone.org
20 Source0:        http://download.savannah.gnu.org/releases/linphone/stable/source/%{name}-%{version}.tar.gz
21 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
22 %ifarch %{ix86}
23 BuildArch:      i686
24 %endif
25
26 BuildRequires: gtk2-devel 
27 BuildRequires: libeXosip2-devel speex-devel gettext 
28 BuildRequires: intltool gettext-devel 
29 %if %{video}
30 BuildRequires: ffmpeg-devel SDL-devel
31 %endif
32
33 %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.
36
37 %package devel
38 Summary:       Development libraries for linphone
39 Group:         Development/Libraries
40 Requires:      %{name} = %{version}-%{release}
41 Requires:      ortp-devel = @ORTP_VERSION@
42 Requires:      mediastreamer-devel = @MS2_VERSION@
43 Requires:      glib2-devel
44
45 %description    devel
46 Libraries and headers required to develop software with linphone.
47
48 %prep
49 %setup -q
50 #%patch -p 1 -b .pkgconfig
51 #%patch1 -p 1 -b .Werror
52 #%patch2 -p 1 -b .old
53
54 %build
55 %configure \
56 %if !%{video}
57         --disable-video \
58 %endif
59         --docdir=%{_docdir} --enable-ipv6 --enable-static --enable-external-mediastreamer --enable-external-ortp
60 %__make %{?_smp_mflags}
61
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65 make install DESTDIR=$RPM_BUILD_ROOT
66 install -p -m 0644 pixmaps/linphone.png $RPM_BUILD_ROOT%{_datadir}/pixmaps
67 %find_lang %{name}
68 desktop-file-install \
69   --delete-original \
70   --dir $RPM_BUILD_ROOT%{_datadir}/applications \
71   --add-category X-Fedora \
72   --add-category Telephony \
73   --add-category GTK \
74   $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
75
76 %clean
77 rm -rf $RPM_BUILD_ROOT
78
79 %post -p /sbin/ldconfig
80
81 %postun -p /sbin/ldconfig
82
83
84 %files -f %{name}.lang
85 %defattr(-,root,root)
86 %doc AUTHORS ChangeLog COPYING NEWS README TODO
87 %{_bindir}/*
88 %{_libdir}/liblinphone.so.*
89 %{_mandir}/*
90 %{_datadir}/applications/%{name}.desktop
91 %{_datadir}/pixmaps/linphone
92 %{_datadir}/linphone
93 %{_datadir}/pixmaps/linphone.png
94 %{_datadir}/sounds/linphone
95
96 %files devel
97 %defattr(-,root,root)
98 %{_includedir}/linphone
99 %{_libdir}/liblinphone.a
100 %{_libdir}/liblinphone.la
101 %{_libdir}/liblinphone.so
102 %{_libdir}/pkgconfig/linphone.pc
103 %{_docdir}
104
105 %changelog
106 * Wed Sep 28 2005 Francois-Xavier 'FiX' KOWALSKI <francois-xavier.kowalski@hp.com> - 1.2.0pre3
107 - Updated to latests Simon's work
108
109 * Fri May 27 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.0.1-3
110 - Fix multiple menu entry and missing icon (#158975)
111 - Clean up spec file
112
113 * Fri May  6 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.0.1-2
114 - Fix libosip2-devel BR
115
116 * Wed May  4 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.0.1-1
117 - Update to 1.0.1
118 - Port patches from devel
119
120 * Wed Mar 23 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.12.2-7
121 - pkgconfig and -devel fixes
122
123 * Wed Mar 23 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.12.2-6
124 - Fix build on x86_64
125
126 * Sat Mar 19 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.12.2-5
127 - %%
128
129 * Sat Mar 19 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.12.2-4
130 - Used %%find_lang
131 - Tightened up %%files
132 - Streamlined spec file
133
134 * Thu Mar 17 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.12.2-3
135 - Broke %%description at 80 columns
136
137 * Wed Mar 16 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.12.2-2
138 - Removed explicit Requires
139
140 * Tue Mar 15 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.12.2-1
141 - Bump release to 1
142 - Cleaned up the -docs and -speex patches
143
144 * Fri Jan 21 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0:0.12.2-0.iva.1
145 - Fixed a silly spec error
146
147 * Fri Jan 21 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0:0.12.2-0.iva.0
148 - Initial RPM release.