This repository has been archived by the owner on Feb 3, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscidavis.spec
252 lines (187 loc) · 7.85 KB
/
scidavis.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
%global pluginversion 1.0.0
Name: scidavis
Version: 1.21
Release: 5%{?dist}
Summary: Application for Scientific Data Analysis and Visualization
License: GPLv3+
URL: http://scidavis.sourceforge.net/
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
# To be removed after 1.22 release
Source1: %{name}.appdata.xml
# Patches by Miquel Garriga <gbmiquel.at.gmail.com>
# https://sourceforge.net/p/scidavis/scidavis-bugs/313/
# https://sourceforge.net/p/scidavis/scidavis-bugs/317/
Patch0: scidavis-armv7hl-build.patch
# enable after liborigin-3.0.0 release
#Patch1: fedora-rpm-with-system-liborigin3.patch
Patch2: scidavis-set_python_path.patch
# To be removed after 1.22 release
Patch3: scidavis-fix_bug_316.patch
BuildRequires: desktop-file-utils
BuildRequires: doxygen
BuildRequires: gsl-devel
# enable after liborigin-3.0.0 release
#BuildRequires: liborigin3-devel
BuildRequires: muParser-devel
BuildRequires: qt-assistant-adp-devel
BuildRequires: qt-devel
BuildRequires: qwt5-qt4-devel
BuildRequires: qwtplot3d-qt4-devel
BuildRequires: sip-devel
BuildRequires: zlib-devel
BuildRequires: libappstream-glib
# required for the tests, enable when building locally
#BuildRequires: xorg-x11-server-Xvfb
Requires: PyQt4
Requires: hicolor-icon-theme
Requires: kde-filesystem
Recommends: python2-%{name}
%description
SciDAVis is a free interactive application aimed at data analysis and
publication-quality plotting. It combines a shallow learning curve and
an intuitive, easy-to-use graphical user interface with powerful
features such as scriptability and extensibility.
%package -n python2-%{name}
BuildRequires: python2-devel
BuildRequires: PyQt4-devel
Requires: python2-scipy
Summary: Python 2 bindings for SciDAVis
Requires: %{name}%{?_isa} = %{version}-%{release}
%{?python_provide:%python_provide python2-%{name}}
%description -n python2-%{name}
This module provides SciDAVis bindings to the Python2 programming language.
%prep
%setup -q -n %{name}-%{version}
%ifarch armv7hl
%patch0 -p1
%endif
# enable after liborigin-3.0.0 release
#%patch1 -p1
#rm -rf 3rdparty/liborigin
%patch2 -p0
# To be removed after 1.22 release
%patch3 -p1
%build
%if 0%{?__isa_bits} == 64
%qmake_qt4 PRESET=linux_package libsuff="64" CONFIG+=aegis CONFIG+=python
%else
%qmake_qt4 PRESET=linux_package CONFIG+=aegis CONFIG+=python
%endif
%make_build
%install
make INSTALL_ROOT="%{buildroot}" install
install -pm 644 CHANGES %{buildroot}%{_docdir}/%{name}/
mkdir -p %{buildroot}%{_datadir}/{%{name}/translations,applications,mime/packages,appdata}
cp -p %{name}/translations/*.qm %{buildroot}%{_datadir}/%{name}/translations/
# To be removed after 1.22 release
cp -p %{SOURCE1} %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
# KDE3 remnant - upstream is aware
rm -rf %{buildroot}%{_datadir}/mimelnk/
# man page gets installed under scidavis.1/ subdirectory - fixed upstream, nextrelease
rm -rf %{buildroot}%{_mandir}/man1/%{name}.1
cp -p %{name}/%{name}.1 %{buildroot}%{_mandir}/man1/
# gpl.txt is copied over by the license macro
rm -f %{buildroot}%{_docdir}/%{name}/gpl.txt
# Plugins are unversioned .so files
cd %{buildroot}%{_libdir}/%{name}/plugins
for plugin in `ls *.so`
do
mv ${plugin}.%{pluginversion} ${plugin}
rm -f ${plugin}.*
done
%check
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/*.appdata.xml
# Enable when building locally
#cd test && xvfb-run -a ./unittests
%post
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
%postun
if [ $1 -eq 0 ] ; then
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi
%posttrans
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%files
%license gpl.txt LICENSE license.rtf
%{_mandir}/man1/%{name}.1*
%{_docdir}/%{name}/
%{_bindir}/%{name}
%{_libdir}/%{name}/
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_datadir}/icons/locolor/*/apps/%{name}.*
%files -n python2-%{name}
%{python2_sitearch}/%{name}/
%changelog
* Sat Sep 16 2017 Alexander Ploumistos <[email protected]> - 1.21-5
- Add code and requirements in order to run the provided tests (in local builds)
- Add kde-filesystem requirement
- Combine licenses to GPLv3+
* Thu Sep 14 2017 Alexander Ploumistos <[email protected]> - 1.21-4
- Fix another armv7hl issue - patches by Robert-André Mauchin and Miquel Garriga
- Patch for setting Python paths by Antonio Trande
- Backport patch for https://sourceforge.net/p/scidavis/scidavis-bugs/316/
- Enable all build options (CONFIG+=aegis)
- Include AppData file from next release
- More code cleanup
* Tue Sep 12 2017 Alexander Ploumistos <[email protected]> - 1.21-3
- Enable Python scripting
- Remove more redundant code
* Mon Sep 11 2017 Alexander Ploumistos <[email protected]> - 1.21-2
- Hold off unbundling until liborigin-3.0.0 official release
- Remove x-sciprj.desktop and /usr/share/mimelnk/application/
- Fix manpage location
- Remove redundant code from the spec file
* Sat Aug 19 2017 Alexander Ploumistos <[email protected]> - 1.21-1
- New version
* Tue Aug 01 2017 Alexander Ploumistos <[email protected]> - 1.19-2
- Enable ARM builds - patch by Miquel Garriga <gbmiquel.at.gmail.com>
- Clean up spec file
* Thu Jul 20 2017 Alexander Ploumistos <[email protected]> - 1.19-1
- New version
* Wed Jun 28 2017 Alexander Ploumistos <[email protected]> - 1.18-2.20170628git7c6e07df
- Unbundle liborigin - patch by Miquel Garriga <gbmiquel.at.gmail.com>
* Fri Jun 23 2017 Alexander Ploumistos <[email protected]> - 1.18-1
- new version
* Mon Jun 12 2017 Alexander Ploumistos <[email protected]> - 1.17-2
- Enabled bundled patched liborigin
* Mon Jun 12 2017 Alexander Ploumistos <[email protected]> - 1.17-1
- new version
* Mon Jul 11 2016 Alexander Ploumistos <[email protected]> - 1.D13-1
- new version
* Tue Nov 24 2015 Christian Dersch <[email protected]> - 1.D9-1
- new version
* Wed Jul 29 2015 Fedora Release Engineering <[email protected]> - 1.D8-12
- Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159
* Wed Jul 22 2015 David Tardon <[email protected]> - 1.D8-11
- rebuild for Boost 1.58
* Fri Jun 19 2015 Fedora Release Engineering <[email protected]> - 1.D8-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sat May 02 2015 Kalev Lember <[email protected]> - 1.D8-9
- Rebuilt for GCC 5 C++11 ABI change
* Mon Jan 26 2015 Petr Machata <[email protected]> - 1.D8-8
- Rebuild for boost 1.57.0
* Fri Jan 02 2015 Christian Dersch <[email protected]> - 1.D8-7
- added patch to fix http://sourceforge.net/p/scidavis/svn/1458/
* Sat Dec 20 2014 Christian Dersch <[email protected]> - 1.D8-6
- added missing find_lang macro
- adjusted condition for 32/64 bit decision
* Mon Dec 15 2014 Christian Dersch <[email protected]> - 1.D8-5
- added ExcludeArch for arm as scidavis doesn't build there
* Mon Dec 15 2014 Christian Dersch <[email protected]> - 1.D8-4
- fixed spec
- added post/postun scripts
- removed versioned .so files
- don't package compiled versions of scidavisrc.py config file
* Thu Aug 7 2014 Christian Dersch <[email protected]> - 1.D8-3
- fixed spec to be conform with guidelines
* Mon Aug 4 2014 Christian Dersch <[email protected]> - 1.D8-2
- fixed BuildRequires
* Mon Aug 4 2014 Christian Dersch <[email protected]> - 1.D8-1
- initial spec
- inspired by old scidavis spec http://pkgs.fedoraproject.org/cgit/scidavis.git/tree/scidavis.spec?h=f15