forked from socnetv/app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
socnetv.spec
296 lines (238 loc) · 10.2 KB
/
socnetv.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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
# spec file for package socnetv
#
# Copyright (c) 2019 Dimitris Kalamaras [email protected]
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
�fine name socnetv
�fine version 2.5
�fine release 1
�fine prefix /usr/local
�fine lastrev %(LANG=en_US.UTF-8 && date "%a %b %e %Y")
�fine is_suse %(test -e /etc/SuSE-release && echo 1 || echo 0)
�fine is_fedora %(test -e /etc/fedora-release && echo 1 || echo 0)
�fine qmake qmake
�fine lrelease lrelease
#BEGIN BUILDSERVICE COMMANDS
%if 0%{?fedora_version}
�fine is_suse 0
�fine is_fedora 1
%endif
%if 0%{?suse_version}
�fine is_suse 1
�fine is_fedora 0
%endif
#END BUILDSERVICE COMMANDS
%if %{is_fedora}
�fine distr Fedora
�fine breqr qt5-qtbase,qt5-qtbase-devel, qt5-qtcharts-devel, qt5-qtsvg-devel, qt5-qttools, fedora-release, desktop-file-utils
�fine qmake /usr/bin/qmake-qt5
�fine lrelease /usr/bin/lrelease
%endif
%if %{is_suse}
�fine distr SUSE # %(head -1 /etc/SuSE-release)
�fine breqr libqt5-qtbase, libqt5-qtbase-devel, libqt5-qtsvg-devel, libQt5Charts5-devel, libqt5-qttools, unzip, update-desktop-files
�fine qmake /usr/bin/qmake-qt5
�fine lrelease /usr/bin/lrelease
%endif
Name: %{name}
Version: %{version}
Release: %{release}
Summary: A Social Networks Analyser and Visualiser
License: GPL-3.0
Group: Productivity/Scientific/Math
URL: https://socnetv.org/
Vendor: Dimitris V. Kalamaras <[email protected]>
Source0: https://github.com/%{name}/app/archive/master.zip
Distribution: %{distr}
Prefix: %{prefix}
BuildRequires: gcc-c , %{breqr}
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5PrintSupport)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5Charts)
BuildRequires: pkgconfig(Qt5Svg)
Provides: %{name} = %{version}
Obsoletes: %{name} < %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
#
#DESCRIPTION SECTION
#
�scription
SocNetV (Social Network Visualizer) is a flexible, user-friendly
free software application for social network analysis and
visualisation.
It lets you create new networks (graphs) with a few clicks on a
virtual canvas or load networks of various formats (GraphViz,
GraphML, Adjacency, Pajek, etc) and modify them to suit your needs.
The application computes graph theory metrics, such as density,
diameter and distances (shortest paths) in directed and undirected,
weighted or non weighted graphs. It also computes node and
network centrality and prestige indices, such as closeness,
betweeness, eigenvector, information, power centralities
and pagerank prestige. Community detection and structural
equivalence algorithms are included, such as triad census,
clique census, hierarchical cluster analysis, actor similarity
and tie profile dissimilarities.
Various layout algorithms (i.e. Spring-embedder, circular and in
levels according to centrality or prestige) are supported for
meaningful visualisations of your networks.
Furthermore, SocNetV generates random networks using various models
such as Erdos-Renyi, Scale-Free, Small-World, d-regular etc.
The application also includes a simple web crawler to create
a social network of web pages, where edges are the links between
them.
Author: Dimitris V. Kalamaras <[email protected]>
#
#PREPARATION SECTION
#
echo "### PREP SECTION ###"
%prep
echo "### SETUP folder app-master ###"
%setup -q -n app-master ## because master.zip unpacks to app-master/
echo "### SHOWING FILES ###"
find .
echo "### CHANGING OWNERSHIP AND REMOVING FILES ###"
chmod -R a-x X COPYING changelog.gz INSTALL NEWS README.md TODO man src
find . -type f -name '*~' -delete
find . -type f -name '*.bak' -delete
rm -f config.log config.status Makefile socnetv.spec socnetv.mak
# We do not need this replace hack anymore
# because by default our .pro uses /usr as PREFIX and
# qmake adds a useful INSTALL_ROOT variable in front of PREFIX
# so we can use this scheme directly in our make install below
# sed -i -e 's/PREFIX = \/usr/PREFIX = ./g' socnetv.pro
#
#MAKE SECTION
#
echo "### MAKE SECTION ###"
%build
%{qmake}
%__make
#
#INSTALL SECTION
#
echo "###### INSTALL SECTION ######"
%install
%if %{is_fedora}
desktop-file-validate %{name}.desktop
#desktop-file-install --add-category="Math" --delete-original --dir=%{buildroot}%{_datadir}/applications %{buildroot}/%{_datadir}/applnk/Edutainment/%{name}.desktop
%endif
echo "### CALLING MAKE INSTALL ###"
make install INSTALL_ROOT="%buildroot"
# %make_install
# NOTE %make_install is a macro available starting rpm-4.10. It is equivalent to `make install DESTDIR="%{?buildroot}"`.
# I left it out to use INSTALL_ROOT directly...
# We do not need this anymore.
# qmake's Makefile defines copying for us and make does the job...
#echo "### CREATING DIRECTORIES ###"
#mkdir -p %{buildroot}%{_bindir}
#mkdir -p %{buildroot}%{_datadir}/pixmaps/
#mkdir -p %{buildroot}%{_datadir}/applications/
#mkdir -p %{buildroot}%{_mandir}/man1/
#cp -r socnetv %{buildroot}%{_bindir}/%{name}
#cp -r src/images/socnetv.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
#cp -r socnetv.desktop %{buildroot}%{_datadir}/applications/
#cp -r man/socnetv.1.gz %{buildroot}%{_mandir}/man1
rm -rf %{buildroot}/%{_datadir}/doc/%{name}
echo "### CLEAN SECTION ###"
%clean
[ -d %{buildroot} -a "%{buildroot}" != "" ] && %__rm -rf %{buildroot}
#
#FILES SECTION
#
echo " ### FILES SECTION ###"
%files
�fattr(-,root,root)
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/%{name}/
%dir %{_datadir}/%{name}/translations/
%{_datadir}/%{name}/translations/*
%{_datadir}/pixmaps/%{name}.png
%{_mandir}/man1/*
%doc changelog.gz NEWS README.md TODO COPYING AUTHORS INSTALL
#
#CHANGELOG SECTION
#
%changelog
* Fri Mar 8 2019 Dimitris Kalamaras <[email protected]> - 2.5-3
- Synced with new 2.5 version from upstream
* Wed Feb 20 2019 Dimitris Kalamaras <[email protected]> - 2.5-2
- Synced with new beta2 version from upstream
* Tue Feb 19 2019 Dimitris Kalamaras <[email protected]> - 2.5-1
- Synced with new beta version from upstream
* Wed Feb 28 2018 Dimitris Kalamaras <[email protected]> - 2.4-2
- Synced with fixed table version from upstream
* Tue Feb 27 2018 Dimitris Kalamaras <[email protected]> - 2.4-1
- Synced with new stable version from upstream
* Wed Jul 5 2017 Dimitris Kalamaras <[email protected]> - 2.3-1
- Synced with new stable version from upstream
* Sat Jan 21 2017 Dimitris Kalamaras <[email protected]> - 2.2-1
- Synced with new stable version from upstream
* Wed Sep 28 2016 Dimitris Kalamaras <[email protected]> - 2.1-1
- Synced with new stable version from upstream.
* Tue Sep 13 2016 Dimitris Kalamaras <[email protected]> - 2.0-2
- Spec patch for Buildservice
* Mon Sep 12 2016 Dimitris Kalamaras <[email protected]> - 2.0-1
- Synced with new stable version from upstream.
* Tue Jun 23 2015 Dimitris Kalamaras <[email protected]> - 1.9-1
- Synced with DEV version from upstream.
* Fri Jun 05 2015 Dimitris Kalamaras <[email protected]> - 1.8-1
- Synced with new stable version from upstream.
* Wed May 20 2015 Dimitris Kalamaras <[email protected]> - 1.7-1
- Synced with new stable version from upstream.
* Mon May 11 2015 Dimitris Kalamaras <[email protected]> - 1.6-1
- Synced with new stable version from upstream.
* Fri Oct 10 2014 Dimitris Kalamaras <[email protected]> - 1.5-1
- Synced with new stable version from upstream.
* Mon Sep 01 2014 Dimitris Kalamaras <[email protected]> - 1.4-1
- Synced with new stable version from upstream.
* Wed Aug 27 2014 Dimitris Kalamaras <[email protected]> - 1.3-1
- Synced with new stable version from upstream.
* Mon Aug 18 2014 Dimitris Kalamaras <[email protected]> - 1.2-1
- Synced with new stable version 1.2 from upstream.
* Fri Aug 01 2014 Dimitris Kalamaras <[email protected]> - 1.1-1
- Synced with new version from upstream.
* Thu Feb 27 2014 Dimitris Kalamaras <[email protected]> - 1.0-2
- Fixed spec for openSUSE
* Thu Feb 27 2014 Dimitris Kalamaras <[email protected]> - 1.0-1
- Synced with new version from upstream.
* Thu Oct 14 2010 Dimitris Kalamaras <[email protected]> - 0.90-1
- Synced with upstream.
* Thu Jan 28 2010 Dimitris Kalamaras <[email protected]> - 0.81-1
- Synced with upstream.
- Bugfixes for Windows version
* Sat Jan 09 2010 Dimitris Kalamaras <[email protected]> - 0.80-1
- Synced with upstream,
* Mon Jun 29 2009 Dimitris Kalamaras <[email protected]> - 0.70-1
- Synced with upstream
* Wed May 27 2009 Dimitris Kalamaras <[email protected]> - 0.6.0-1
- Synced with upstream
* Thu Feb 26 2009 Dimitris Kalamaras <[email protected]> - 0.52-1
- Synced with upstream.
- Bugfixes into .spec.in for RPMs (Fedora, openSUSE and Mandriva).
* Tue Feb 17 2009 Dimitris Kalamaras <[email protected]> - 0.51-3
- Bugfixes into .spec.in for Fedora and Mandriva.
- RPM for Fedora
* Mon Feb 16 2009 Dimitris Kalamaras <[email protected]> - 0.51-2
- Minor changes to RPM
* Mon Feb 16 2009 Dimitris Kalamaras <[email protected]> - 0.51-1
- Updated to upstream version 0.51
* Fri Feb 13 2009 Dimitris Kalamaras <[email protected]> - 0.50-1
- Updated to upstream version 0.50
* Wed Jan 14 2009 Dimitris Kalamaras <[email protected]> - 0.49-2
- Package .spec fixes
* Tue Jan 13 2009 Dimitris Kalamaras <[email protected]> - 0.49-1
- Updated to 0.49
* Wed Sep 17 2008 Dimitris Kalamaras <[email protected]> - 0.48-1
- First RPM release