forked from RedhawkSDR/framework-GPP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGPP.spec
131 lines (102 loc) · 3.44 KB
/
GPP.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
#
# This file is protected by Copyright. Please refer to the COPYRIGHT file
# distributed with this source distribution.
#
# This file is part of REDHAWK core.
#
# REDHAWK core is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option) any
# later version.
#
# REDHAWK core is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see http://www.gnu.org/licenses/.
#
# By default, the RPM will install to the standard REDHAWK SDR root location (/var/redhawk/sdr)
# You can override this at install time using --prefix /new/sdr/root when invoking rpm (preferred method, if you must)
%{!?_sdrroot: %define _sdrroot /var/redhawk/sdr}
%define _prefix %{_sdrroot}
Prefix: %{_prefix}
Name: GPP
Version: 1.8.4
Release: 3%{?dist}
Summary: Redhawk GPP
Group: Applications/Engineering
License: LGPLv3+
URL: http://redhawksdr.org/
Source: %{name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-root
Requires: redhawk >= 1.8.3
BuildRequires: redhawk >= 1.8.3
BuildRequires: autoconf automake libtool
# Python requirements
Requires: python omniORBpy
BuildRequires: libomniORBpy3-devel
BuildRequires: python-devel >= 2.3
# Temporary to aide with upgrading from 1.7.X
Obsoletes: redhawk-GPP
%package profile
Summary: Basic GPP profile
Group: Redhawk/Framework
Prereq: redhawk >= 1.8.3
Prereq: %{name} = %{version}-%{release}
# Temporary to aide with upgrading from 1.7.X
Obsoletes: redhawk-GPP-profile
%description
A device representing a general purpose processor
%description profile
Generates a GPP profile on the installation machine
%prep
%setup
%build
# Implementation DCE:35406744-52f8-4fed-aded-0bcd3aae362b
pushd python
./reconf
%define _bindir %{_prefix}/dev/devices/GPP/python
%configure
make
popd
%install
rm -rf $RPM_BUILD_ROOT
# Implementation DCE:35406744-52f8-4fed-aded-0bcd3aae362b
pushd python
%define _bindir %{_prefix}/dev/devices/GPP/python
make install DESTDIR=$RPM_BUILD_ROOT
popd
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,redhawk,redhawk)
%dir %{_prefix}/dev/devices/%{name}
%{_prefix}/dev/devices/%{name}/GPP.spd.xml
%{_prefix}/dev/devices/%{name}/GPP.prf.xml
%{_prefix}/dev/devices/%{name}/GPP.scd.xml
%{_prefix}/dev/devices/%{name}/python
%files profile
# GPP-profile doesn't install any files
%post profile
# Source profile script for architecture, if available
[ -e /etc/profile.d/redhawk.sh ] && source /etc/profile.d/redhawk.sh
# configure the gpp and the dcd
echo "Configuring the Node..."
%{_prefix}/dev/devices/%{name}/python/nodeconfig.py -v \
--clean \
--gpppath=/devices/%{name} \
--disableevents \
--domainname=REDHAWK_DEV \
--sdrroot=%{_prefix} \
--inplace
%changelog
* Fri Mar 29 2012 1.8.4-1
- Remove unnecessary defines
- Correct required version of Redhawk; needs at least 1.8.3 due to eventing
* Tue Mar 12 2012 1.8.3-4
- Update licensing information
- Add URL for website
- Change group to a standard one, per Fedora