Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

[0e0ee5]: coastal-qt.spec.cmake Maximize Restore History

Download this file

coastal-qt.spec.cmake    96 lines (77 with data), 2.5 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# 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: coastal-qt
Summary: QT Desktop Applications
Version: @VERSION@
Release: 0%{?dist}
License: GPLv3+
URL: http://www.gnutelephony.org
Group: Applications/System
Source: http://www.gnutelephony.org/dist/tarballs/coastal-qt-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: qt4-devel cmake
Requires: %{name}-runtime = %{version}-%{release}
%package runtime
Group: Development/Libraries
Summary: Runtime library support for coastal applications
%package devel
Requires: %{name}-runtime = %{version}-%{release}
Requires: qt4-devel
Group: Development/Libraries
Summary: Headers for building coastal applications
%description
Generic QT desktop system applications. This includes coastal-manpager
and coastal-search.
%description devel
Header files for building applications with coastal library. Used in
conjunction with Qt.
%description runtime
Runtime library required by coastal applications. This offers extensions
for the Qt framework that we use.
%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}/coastal-manpager
%{_bindir}/coastal-search
%{_datadir}/applications/coastal-manpager.desktop
%{_datadir}/applications/coastal-search.desktop
%{_datadir}/icons/coastal-manpager.png
%{_datadir}/icons/coastal-search.png
%files runtime
%defattr(-,root,root,-)
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root,-)
%{_libdir}/*.so
%{_includedir}/coastal.h
%{_libdir}/pkgconfig/*.pc
%post runtime
/sbin/ldconfig
%postun runtime
/sbin/ldconfig
%changelog