root/experimental/installation/specs/working/system/ossie_cf.spec @ 7963

Revision 7963, 3.4 KB (checked in by bhilburn, 5 years ago)

Moved from build dependencies to true dependencies.

Line 
1# OSSIE Core Framework RPM specification
2#
3# This spec defines the RPM for the OSSIE CF *only*.  Other components
4# of OSSIE releases are packaged in seperate RPMs.
5#
6# Created: bhilburn
7
8# Initial variable defines
9%define _name ossie_cf
10%define _version 0.6.2
11%define _release 1
12
13# Directory defines
14%define _libdir /usr/local/lib
15%define _includedir /usr/local/include
16
17# Grab the necessary Python directories from the Python system configuration
18%define py_sysdir %(python -c 'from distutils import sysconfig; print sysconfig.get_python_lib(1,0)')
19%define py_localdir %(python -c 'from distutils import sysconfig; print sysconfig.get_python_lib(1,0,"/usr/local/")')
20
21# Package description
22Summary: OSSIE Core Framework 0.6.2
23Name: %{_name}
24Version: %{_version}
25Release: %{_release}
26License: GNU GPL v2
27Group: Radio
28URL: http://ossie.wireless.vt.edu
29
30# Package prereqs
31BuildRequires: libomniorb libomniorb-devel
32BuildRequires: libomniorbpy libomniorbpy-standard
33BuildRequires: libomniorbpy-devel
34BuildRequires: xerces-c xerces-c-devel
35BuildRequires: glibc-devel libtool
36BuildRequires: boost boost-devel
37BuildRequires: gcc gcc-c++
38
39# Package source instructions
40Source: %{_name}-%{_version}.tar.gz
41Buildroot: %{_tmppath}/%{_name}-%{_version}
42
43%description
44OSSIE (Open Source SCA Implementation::Embedded project is an initiative
45by the Mobile and Portable Radio Research Group at Virginia Tech to
46provide a platform that is simple, easy to expand, and open-source for the
47development of waveforms following the guidelines laid down by the SCA
48specifications under the Joint Tactical Radio System program as well as
49the Object Management Group.
50
51This is the OSSIE core framework.  It is required for all OSSIE installs.
52Please see http://ossie.wireless.vt.edu/ for more information.
53
54For a full OSSIE installation, make sure to also get the OSSIE Standard
55Interfaces, Node Booter, the domain, default node, and GPP Device.
56
57%package %{_name}
58Summary: OSSIE Core Framework
59Group: Radio
60Provides: ossie_cf = %{_version} %{_name} = %{_version}-%{_release}
61Obsoletes: %{_name}
62requires: libomniorb, libomniorb-devel, libomniorb-servers, libomniorb-utils, libomniorbpy, libomniorbpy-standard, libomniorbpy-devel, omniORB-bootscripts, xerces-c, xerces-c-devel, glibc-devel, libtool, boost, boost-devel, gcc, gcc-c++
63
64%description  %{_name}
65OSSIE core framework.  It is required for all OSSIE installs
66See http://ossie.wireless.vt.edu/ for more information
67
68# Let rpmbuild auto-handle the prep steps, the -q option
69# makes the unpack quiet
70%prep
71%setup -q
72
73# Standard auto-foo build procedure
74%build
75./reconf
76./configure
77%{?make:%make}%{!?make:make} all
78
79
80# Install procedure...
81%install
82# Install the binaries / libraries / etc
83%{?makeinstall_std:%makeinstall_std}%{!?makeinstall_std:make DESTDIR=%{buildroot} install}
84# Put ossie.pth in the right place... this is kind of an annoying hack
85mkdir -p %{buildroot}%{py_sysdir}
86cp idl/python/ossie.pth %{buildroot}%{py_sysdir}
87# Update the system library configuration
88echo '/usr/local/lib' >> /etc/ld.so.conf
89/sbin/ldconfig
90
91
92# Clean up after ourselves so that we don't bloat /usr/src
93%clean
94[ -z %{buildroot} ] || rm -rf %{buildroot}
95
96
97%files
98%defattr(-,root,root,-)
99# OSSIE libraries
100%{_libdir}/*.a
101%{_libdir}/*.la
102%{_libdir}/*.so
103%{_libdir}/*.so.0
104%{_libdir}/*.so.0.0.4
105%{_libdir}/pkgconfig/ossie.pc
106
107# OSSIE include headers and idls
108%{_includedir}/ossie/*.h
109%{_includedir}/ossie/*.idl
110
111# OSSIE Python bindings
112%{py_localdir}/ossie/*
113%{py_sysdir}/ossie.pth
114
Note: See TracBrowser for help on using the browser.