-
Notifications
You must be signed in to change notification settings - Fork 0
/
watcher.spec
146 lines (123 loc) · 3.55 KB
/
watcher.spec
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
%define _project Watcher
%define _name watcher
%define _prefix /usr/%{_project}
Summary: Visualization tool for large networks
Name: %{_project}-%{_name}
Version: 20100818
Release: 1
License: Other
Group: Applications/System
URL: http://code.google.com/p/watcher-visualization/
Vendor: SPARTA
Source: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Prefix: %{_prefix}
BuildRequires: automake
BuildRequires: autoconf
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: boost-devel
BuildRequires: libconfig-devel
BuildRequires: sqlite-devel
BuildRequires: cta-logger-devel
BuildRequires: libkml-devel
BuildRequires: uriparser-devel
# Legacy Watcher
BuildRequires: qt-devel
BuildRequires: qwt-devel
%description
%package lib
Summary: ARL1X/CTA Watcher library files.
Group: Libraries/CTA
%description lib
%package devel
Summary: ARL1X/CTA Watcher development files.
Group: Development/CTA
Requires: %{name}-lib = %{version}
%description devel
%prep
if [ "$RPM_BUILD_ROOT" ] && [ "$RPM_BUILD_ROOT" != "/" ]; then
rm -rf $RPM_BUILD_ROOT
fi
%setup -n %{_name}
export PKG_CONFIG_PATH=%{_libdir}/pkgconfig
cd src
./autogen.sh
%configure --enable-earthWatcher --with-qwt=/usr
%build
cd src
make DESTDIR=$RPM_BUILD_ROOT
cd clients/legacyWatcher
qmake-qt4
make
%install
cd src
make DESTDIR=$RPM_BUILD_ROOT install
%{__install} -m0755 clients/legacyWatcher/watcher %{buildroot}%{_bindir}/
%clean
if [ "$RPM_BUILD_ROOT" ] && [ "$RPM_BUILD_ROOT" != "/" ]; then
rm -rf $RPM_BUILD_ROOT
fi
%files
%defattr(-,root,root,-)
%dir %{_bindir}
%{_bindir}/watcher
%{_bindir}/connectivity2dot
%{_bindir}/earthWatcher
%{_bindir}/gps2eventdb
%{_bindir}/messageStream2Text
%{_bindir}/randomScenario
%{_bindir}/routeFeeder
%{_bindir}/sendColorMessage
%{_bindir}/sendConnectivityMessage
%{_bindir}/sendDataPointMessage
%{_bindir}/sendEdgeMessage
%{_bindir}/sendGPSMessage
%{_bindir}/sendLabelMessage
%{_bindir}/sendNodePropertiesMessage
%{_bindir}/showClock
%{_bindir}/%{_name}d
%files lib
%defattr(444,root,root,755)
%dir %{_libdir}
%{_libdir}/lib%{_name}msg.so
%{_libdir}/lib%{_name}msg.so.0
%{_libdir}/lib%{_name}msg.so.0.0.0
%files devel
%defattr(444,root,root,755)
%dir %{_includedir}
%dir %{_includedir}/lib%{_name}
%{_includedir}/lib%{_name}/client.h
%{_includedir}/lib%{_name}/colorMessage.h
%{_includedir}/lib%{_name}/colors.h
%{_includedir}/lib%{_name}/connection_fwd.h
%{_includedir}/lib%{_name}/connectivityMessage.h
%{_includedir}/lib%{_name}/dataPointMessage.h
%{_includedir}/lib%{_name}/edgeMessage.h
%{_includedir}/lib%{_name}/gpsMessage.h
%{_includedir}/lib%{_name}/initConfig.h
%{_includedir}/lib%{_name}/labelMessage.h
%{_includedir}/lib%{_name}/message.h
%{_includedir}/lib%{_name}/messageHandler.h
%{_includedir}/lib%{_name}/messageStreamFilter.h
%{_includedir}/lib%{_name}/messageStreamFilterMessage.h
%{_includedir}/lib%{_name}/messageTypesAndVersions.h
%{_includedir}/lib%{_name}/message_fwd.h
%{_includedir}/lib%{_name}/nodePropertiesMessage.h
%{_includedir}/lib%{_name}/nodeStatusMessage.h
%{_includedir}/lib%{_name}/sendMessageHandler.h
%{_includedir}/lib%{_name}/singletonConfig.h
%{_includedir}/lib%{_name}/watcherColors.h
%{_includedir}/lib%{_name}/watcherGlobalFunctions.h
%{_includedir}/lib%{_name}/watcherMessageFwd.h
%{_includedir}/lib%{_name}/watcherTypes.h
%dir %{_libdir}
%{_libdir}/lib%{_name}.a
%{_libdir}/lib%{_name}msg.a
%{_libdir}/lib%{_name}msg.la
%{_libdir}/lib%{_name}utils.a
%dir %{_libdir}/pkgconfig
%{_libdir}/pkgconfig/%{_name}.pc
%{_libdir}/pkgconfig/%{_name}msg.pc
%{_libdir}/pkgconfig/%{_name}utils.pc
%changelog