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