[5928fa]: switchview.spec Maximize Restore History

Download this file

switchview.spec    59 lines (48 with data), 1.6 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Copyright (c) 2012 David Sugar, Tycho Softworks.
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
Name: switchview
Summary: SIP Witch Desktop Interface
Version: 0.1.2
Release: 0%{?dist}
License: GPLv3+
URL: http://www.gnutelephony.org
Group: Applications/System
Source: http://www.gnutelephony.org/dist/tarballs/switchview-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: qt4-devel >= 4.8.0
BuildRequires: cmake >= 2.6.0
BuildRequires: coastal-qt-devel >= 0.4.1
%description
QT based GNU SIP Witch desktop gui client application.
%prep
%setup -q
%build
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DSYSCONFDIR=%{_sysconfdir} \
-DMANDIR=%{_mandir} \
-DDATADIR=%{_datadir} \
-DCMAKE_VERBOSE_MAKEFILE=TRUE \
-DCMAKE_C_FLAGS_RELEASE:STRING="$RPM_OPT_FLAGS" \
-DCMAKE_CXX_FLAGS_RELEASE:STRING="$RPM_OPT_FLAGS" \
%{__make} %{?_smp_mflags}
%install
cd build
%{__rm} -rf %{buildroot}
%{__make} install DESTDIR=%{buildroot}
%{__rm} -rf %{buildroot}%{_libdir}/*.la
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc README COPYING TODO NOTES ChangeLog
%{_bindir}/switchview
%{_datadir}/applications/switchview.desktop
%{_datadir}/icons/switchview.png
%changelog