]> git.pld-linux.org Git - packages/twinkle.git/blob - twinkle.spec
- BR: speex-devel
[packages/twinkle.git] / twinkle.spec
1 #
2 # Conditional build:
3 %bcond_without  kde             # disable KDE support
4 #
5 Summary:        twinkle - SIP Soft Phone
6 Summary(pl):    twinkle - telefon programowy SIP
7 Name:           twinkle
8 Version:        0.7
9 Release:        1
10 License:        GPL v2
11 Group:          Applications/Communications
12 Source0:        http://www.xs4all.nl/~mfnboer/twinkle/download/%{name}-%{version}.tar.gz
13 # Source0-md5:  641bfbc84ee02233f3e21d40be74304d
14 Source1:        %{name}.desktop
15 Patch0:         %{name}-gcc4.patch
16 Patch1:         %{name}-gsm.patch
17 URL:            http://www.twinklephone.com/
18 BuildRequires:  autoconf
19 BuildRequires:  automake
20 BuildRequires:  alsa-lib-devel
21 BuildRequires:  commoncpp2-devel >= 1.3.0
22 BuildRequires:  ccrtp-devel >= 1.3.4
23 %{?with_kde:BuildRequires:      kdelibs-devel}
24 BuildRequires:  libtool
25 BuildRequires:  libgsm-devel >= 1.0.11
26 BuildRequires:  libsndfile-devel
27 BuildRequires:  pkgconfig
28 BuildRequires:  qmake
29 BuildRequires:  qt-devel >= 6:3.3.0
30 BuildRequires:  speex-devel
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33 %description
34 Twinkle is a SIP based soft phone for making telephone calls over IP
35 networks.
36
37 %description -l pl
38 Twinkle to oparty na SIP programowy telefon do wykonywania po³±czeñ
39 telefonicznych po sieciach IP.
40
41 %prep
42 %setup -q
43 %patch0 -p1
44 %patch1 -p1
45
46 %build
47 %{__libtoolize}
48 %{__aclocal}
49 %{__autoconf}
50 %{__automake}
51 export QTDIR=%{_prefix}
52 %configure \
53 %if "%{_lib}" == "lib64"
54         --enable-libsuffix=64 \
55 %endif
56         --%{?debug:en}%{!?debug:dis}able-debug%{?debug:=full} \
57         %{!?with_kde:--without-kde} \
58         --with-qt-libraries=%{_libdir}
59 %{__make}
60
61 %install
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}}
64
65 %{__make} install \
66         DESTDIR=$RPM_BUILD_ROOT
67
68 install src/gui/images/twinkle48.png $RPM_BUILD_ROOT%{_pixmapsdir}/twinkle.png
69 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %files
75 %defattr(644,root,root,755)
76 %doc AUTHORS ChangeLog README THANKS
77 %attr(755,root,root) %{_bindir}/*
78 %{_datadir}/twinkle
79 %{_pixmapsdir}/twinkle.png
80 %{_desktopdir}/twinkle.desktop
This page took 0.073245 seconds and 4 git commands to generate.