]>
Commit | Line | Data |
---|---|---|
c2640489 KK |
1 | # |
2 | # Conditional build: | |
3393aaa8 | 3 | %bcond_without kde # disable KDE support |
c2640489 KK |
4 | # |
5 | Summary: twinkle - SIP Soft Phone | |
6d76a556 | 6 | Summary(pl.UTF-8): twinkle - telefon programowy SIP |
c2640489 | 7 | Name: twinkle |
bad3cabb | 8 | Version: 1.4.2 |
d034c0a7 | 9 | Release: 5 |
c2640489 KK |
10 | License: GPL v2 |
11 | Group: Applications/Communications | |
12 | Source0: http://www.xs4all.nl/~mfnboer/twinkle/download/%{name}-%{version}.tar.gz | |
bad3cabb | 13 | # Source0-md5: d70c8972f296ffd998c7fb698774705b |
90efb207 | 14 | Source1: %{name}.desktop |
5a22eb00 | 15 | Patch0: %{name}-nobind.patch |
2413bcde | 16 | Patch1: %{name}-build.patch |
c2640489 | 17 | URL: http://www.twinklephone.com/ |
5a22eb00 | 18 | BuildRequires: alsa-lib-devel |
173f36c7 AM |
19 | BuildRequires: autoconf |
20 | BuildRequires: automake | |
bebd0d01 | 21 | BuildRequires: boost-devel >= 1.35.0 |
bad3cabb AM |
22 | BuildRequires: ccrtp-devel >= 1.7.1 |
23 | BuildRequires: commoncpp2-devel >= 1.7.1 | |
c2640489 | 24 | %{?with_kde:BuildRequires: kdelibs-devel} |
92f38a76 | 25 | BuildRequires: libgsm-devel >= 1.0.11 |
acf2aa11 | 26 | BuildRequires: libilbc-devel |
0039bee3 | 27 | BuildRequires: libmagic-devel |
308dad23 | 28 | BuildRequires: libsndfile-devel |
5a22eb00 AM |
29 | BuildRequires: libtool |
30 | BuildRequires: libxml2-devel | |
bad3cabb | 31 | BuildRequires: libzrtpcpp-devel >= 1.4.3 |
c2640489 KK |
32 | BuildRequires: pkgconfig |
33 | BuildRequires: qmake | |
308dad23 | 34 | BuildRequires: qt-devel >= 6:3.3.0 |
bf59c302 | 35 | BuildRequires: qt-linguist |
70b24120 | 36 | BuildRequires: speex-devel |
c2640489 KK |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
38 | ||
39 | %description | |
40 | Twinkle is a SIP based soft phone for making telephone calls over IP | |
41 | networks. | |
42 | ||
29d03b0f JR |
43 | %description -l pl.UTF-8 |
44 | Twinkle to oparty na SIP programowy telefon do wykonywania połączeń | |
e4a9205c JB |
45 | telefonicznych po sieciach IP. |
46 | ||
c2640489 KK |
47 | %prep |
48 | %setup -q | |
83b87de6 | 49 | %patch0 -p1 |
2413bcde | 50 | %patch1 -p0 |
c2640489 KK |
51 | |
52 | %build | |
173f36c7 AM |
53 | %{__libtoolize} |
54 | %{__aclocal} | |
55 | %{__autoconf} | |
56 | %{__automake} | |
c2640489 KK |
57 | export QTDIR=%{_prefix} |
58 | %configure \ | |
59 | %if "%{_lib}" == "lib64" | |
60 | --enable-libsuffix=64 \ | |
61 | %endif | |
62 | --%{?debug:en}%{!?debug:dis}able-debug%{?debug:=full} \ | |
63 | %{!?with_kde:--without-kde} \ | |
64 | --with-qt-libraries=%{_libdir} | |
65 | %{__make} | |
66 | ||
67 | %install | |
68 | rm -rf $RPM_BUILD_ROOT | |
90efb207 | 69 | install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}} |
c2640489 KK |
70 | |
71 | %{__make} install \ | |
72 | DESTDIR=$RPM_BUILD_ROOT | |
73 | ||
74 | install src/gui/images/twinkle48.png $RPM_BUILD_ROOT%{_pixmapsdir}/twinkle.png | |
90efb207 | 75 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
c2640489 KK |
76 | |
77 | %clean | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %files | |
81 | %defattr(644,root,root,755) | |
82 | %doc AUTHORS ChangeLog README THANKS | |
83 | %attr(755,root,root) %{_bindir}/* | |
84 | %{_datadir}/twinkle | |
85 | %{_pixmapsdir}/twinkle.png | |
90efb207 | 86 | %{_desktopdir}/twinkle.desktop |