Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

[2b75f1]: coastal-qt.spec.cmake Maximize Restore History

Download this file

coastal-qt.spec.cmake    105 lines (84 with data), 2.7 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
 95
 96
 97
 98
 99
100
101
102
103
# 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 >= 4.8.0
BuildRequires: cmake >= 2.6.0
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 >= 4.8.0
Group: Development/Libraries
Summary: Headers for building coastal applications
%description apps
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 library required by coastal applications. This offers extensions
for the Qt framework that we use.
%description dialogs
Small coastal qt dialog applications.
%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
%{__rm} -rf %{buildroot}
%{__make} install DESTDIR=%{buildroot}
%{__rm} -rf %{buildroot}%{_libdir}/*.la
%clean
%{__rm} -rf %{buildroot}
%files apps
%defattr(-,root,root,-)
%{_bindir}/coastal-manpager
%{_bindir}/coastal-search
%{_bindir}/coastal-notify
%{_datadir}/applications/coastal-manpager.desktop
%{_datadir}/applications/coastal-search.desktop
%{_datadir}/icons/coastal-manpager.png
%{_datadir}/icons/coastal-search.png
%{_datadir}/icons/coastal-notify.png
%files
%doc README COPYING TODO NOTES ChangeLog
%defattr(-,root,root,-)
%{_libdir}/*.so.*
%files dialogs
%defattr(-,root,root,-)
%{_bindir}/coastal-icons
%files devel
%defattr(-,root,root,-)
%{_libdir}/*.so
%{_includedir}/coastal.h
%{_libdir}/pkgconfig/*.pc
%post runtime
/sbin/ldconfig
%postun runtime
/sbin/ldconfig
%changelog