-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathOpenVLBI-bin.spec
More file actions
76 lines (56 loc) · 2.18 KB
/
OpenVLBI-bin.spec
File metadata and controls
76 lines (56 loc) · 2.18 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
%global forgeurl https://github.com/iliaplatone/openvlbi.git
%define __cmake_in_source_build %{_vpath_builddir}
Name: openvlbi-bin
Version: 3.0.3.git
Release: %(date -u +%%Y%%m%%d%%H%%M%%S)%{?dist}
Summary: OpenVLBI Correlator
License: LGPLv2+ and GPLv2+
# See COPYRIGHT file for a description of the licenses and files covered
Provides: libopenvlbi = %{version}-%{release}
URL: http://www.openvlbi.org
Source0: https://github.com/openvlbi/%{name}/archive/master.tar.gz
BuildRequires: cmake >= 2.4.7
BuildRequires: cmake-data
BuildRequires: libfftw3-devel
BuildRequires: libpng-devel
BuildRequires: libjpeg-devel
BuildRequires: libindi-dev|indi-full
BuildRequires: libnova-devel
BuildRequires: doxygen
BuildRequires: pkgconfig(fftw3)
BuildRequires: pkgconfig(cfitsio)
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(gsl)
BuildRequires: pkgconfig(libjpeg)
BuildRequires: pkgconfig(libusb-1.0)
BuildRequires: pkgconfig(zlib)
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%description
OpenVLBI is an open source correlator for astronomical interferometers.
with OpenVLBI astronomers can join together more telescopes to observe
celestial objects at great resolution.
OpenVLBI can be used with radio antennas or optical sensors.
%package devel
Summary: Libraries, includes, etc. used to develop an application with %{name}
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
Requires: %{name}-static%{?_isa} = %{version}-%{release}
%description devel
These are the header files needed to develop a %{name} application
%package libs
Summary: OpenVLBI shared libraries
%description libs
These are the shared libraries of OpenVLBI.
%package static
Summary: Static libraries, includes, etc. used to develop an application with %{name}
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%description static
Static library needed to develop a %{name} application
%build
dnf install -y doxygen libindi-devel libnova-devel libfftw3-devel libcfitsio-devel cmake build-essential fakeroot devscripts jq
mkdir -p build
pushd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DWITH_DOCS=Off -DWITH_DSP=Off -DWITH_DATA=Off DWITH_VLBI=Off -DWITH_VLBI_SERVER=On ..
make -j$(nproc)
popd
%install
sudo make install