-
Notifications
You must be signed in to change notification settings - Fork 26
/
socnetv.spec
251 lines (217 loc) · 8.83 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
#
# spec file for package socnetv
#
# Dimitris Kalamaras [email protected]
#
# Refer to the following for more info on .spec file syntax:
#
# http://www.rpm.org/max-rpm/
# http://www.rpm.org/max-rpm-snapshot/ (Updated version)
# https://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/
# https://rpm-packaging-guide.github.io/
#
# See also http://www.rpm.org
#
### Define our defaults, they will be overriden in the distro detection below.
%define qmake /usr/bin/qmake-qt6
%define lrelease /usr/bin/lrelease-qt6
### Detect host Linux distribution and update defines.
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version}
%define qmake /usr/bin/qmake6
%define lrelease /usr/bin/lrelease-qt6
%endif
%if 0%{?suse_version}
%define qmake /usr/bin/qmake6
%define lrelease /usr/bin/lrelease6
%endif
%if 0%{?mageia}
%define qmake /usr/bin/qmake-qt6
%define lrelease /usr/bin/lrelease-qt6
%endif
Name: socnetv
Version: 3.1
Release: 1{?dist}
Summary: A Social Networks Analyser and Visualiser
License: GPL-3.0-or-later
Group: Productivity/Scientific/Math
URL: https://socnetv.org/
Source0: app-%{version}.tar.gz
BuildRequires: make
BuildRequires: gcc-c++
BuildRequires: gzip
%if 0%{?suse_version}
BuildRequires: qt6-tools-linguist
BuildRequires: libQt6Core5Compat6
%endif
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version}
BuildRequires: qt6-linguist
BuildRequires: qt6-qt5compat
BuildRequires: glibc-all-langpacks
%endif
BuildRequires: desktop-file-utils
BuildRequires: pkgconfig(Qt6Core)
BuildRequires: pkgconfig(Qt6Gui)
BuildRequires: pkgconfig(Qt6PrintSupport)
BuildRequires: pkgconfig(Qt6Widgets)
BuildRequires: pkgconfig(Qt56etwork)
BuildRequires: pkgconfig(Qt6Xml)
BuildRequires: pkgconfig(Qt6OpenGL)
# qt6-qtsvg-devel
BuildRequires: pkgconfig(Qt6Svg)
# qt6-qtcharts-devel
BuildRequires: pkgconfig(Qt6Charts)
%description
SocNetV (Social Network Visualizer) is a flexible, user-friendly
free software application for social network analysis and
visualisation.
### Added to avoid "empty files file debugsourcefiles.list " error
### see https://en.opensuse.org/Fedora_packaging
### Another solution would be to add CONFIG += force_debug_info in qmake
%global debug_package %{nil}
%prep
### Runn autosetup. The autosetup macro is new, see: https://rpm.org/user_doc/autosetup.html
%autosetup -p 0 -n app-%{version}
### Unzip changelog
gunzip changelog.gz
chmod -x changelog
### Debugging: Show files
pwd
find .
%build
# Run lrelease to generate Qt message files from Qt Linguist translation files
lrelease-qt6 socnetv.pro
### Run qmake
qmake CONFIG+=release
### Run make to build the application
%__make %{?_smp_mflags}
# NOTE: Also available as the make_build macro, but that is not available for openSUSE 13.2, Leap 42.2 and SLE 12 SP2 (rpm < 4.12).
%install
%{make_install} INSTALL_ROOT=%{buildroot}
### Debugging: Show where we are and show files in build root.
pwd
find %{buildroot}
%check
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
### Debugging: show where we are again
pwd
pwd
### Run post install and post uninstall Scriptlets
### Read more: https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/
%post
### Scriptlet executed before the package is installed on the target system.
/usr/bin/update-desktop-database &> /dev/null || :
%postun
### Scriptlet executed just after the package is uninstalled from the target system.
/usr/bin/update-desktop-database &> /dev/null || :
### Debugging: show where we are for a last time
pwd
pwd
pwd
%files
%defattr(-,root,root)
%dir /usr/share/socnetv
%license COPYING
%doc AUTHORS NEWS README.md changelog
%{_bindir}/%{name}
%{_datadir}/%{name}/%{name}_*.qm
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/metainfo/%{name}.appdata.xml
%{_mandir}/man1/%{name}.1.gz
###
### CHANGELOG SECTION
###
%changelog
* Mon Jun 12 2023 Dimitris Kalamaras <[email protected]> - 3.1-1
- Upstream v3.1
* Fri Jul 30 2021 Dimitris Kalamaras <[email protected]> - 3.0.4-1
- Upstream v3.0.4
* Fri Jul 30 2021 Dimitris Kalamaras <[email protected]> - 3.0.3-1
- Upstream v3.0.3
* Fri Jul 30 2021 Dimitris Kalamaras <[email protected]> - 3.0.2-1
- Upstream v3.0.2
* Fri Jul 30 2021 Dimitris Kalamaras <[email protected]> - 3.0.1-1
- Upstream v3.0.1
* Fri Jul 30 2021 Dimitris Kalamaras <[email protected]> - 3.0-1
- Upstream v3.0
* Mon Jun 14 2021 Dimitris Kalamaras <[email protected]> - 2.9-1
- Upstream v2.9
* Sun Jan 03 2021 Dimitris Kalamaras <[email protected]> - 2.8-1
- Upstream v2.8
* Mon Dec 28 2020 Dimitris Kalamaras <[email protected]> - 2.7-1
- Sync with upstream v2.7
* Mon Dec 28 2020 Dimitris Kalamaras <[email protected]> - 2.6-2
- Synced with fixed upstream development 2.6 version
* Mon Dec 28 2020 Dimitris Kalamaras <[email protected]> - 2.6-1
- Synced with upstream development 2.6 version
* 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