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