| 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 |
|---|
| 22 | Summary: OSSIE Core Framework 0.6.2 |
|---|
| 23 | Name: %{_name} |
|---|
| 24 | Version: %{_version} |
|---|
| 25 | Release: %{_release} |
|---|
| 26 | License: GNU GPL v2 |
|---|
| 27 | Group: Radio |
|---|
| 28 | URL: http://ossie.wireless.vt.edu |
|---|
| 29 | |
|---|
| 30 | # Package prereqs |
|---|
| 31 | BuildRequires: libomniorb libomniorb-devel |
|---|
| 32 | BuildRequires: libomniorbpy libomniorbpy-standard |
|---|
| 33 | BuildRequires: libomniorbpy-devel |
|---|
| 34 | BuildRequires: xerces-c xerces-c-devel |
|---|
| 35 | BuildRequires: glibc-devel libtool |
|---|
| 36 | BuildRequires: boost boost-devel |
|---|
| 37 | BuildRequires: gcc gcc-c++ |
|---|
| 38 | |
|---|
| 39 | # Package source instructions |
|---|
| 40 | Source: %{_name}-%{_version}.tar.gz |
|---|
| 41 | Buildroot: %{_tmppath}/%{_name}-%{_version} |
|---|
| 42 | |
|---|
| 43 | %description |
|---|
| 44 | OSSIE (Open Source SCA Implementation::Embedded project is an initiative |
|---|
| 45 | by the Mobile and Portable Radio Research Group at Virginia Tech to |
|---|
| 46 | provide a platform that is simple, easy to expand, and open-source for the |
|---|
| 47 | development of waveforms following the guidelines laid down by the SCA |
|---|
| 48 | specifications under the Joint Tactical Radio System program as well as |
|---|
| 49 | the Object Management Group. |
|---|
| 50 | |
|---|
| 51 | This is the OSSIE core framework. It is required for all OSSIE installs. |
|---|
| 52 | Please see http://ossie.wireless.vt.edu/ for more information. |
|---|
| 53 | |
|---|
| 54 | For a full OSSIE installation, make sure to also get the OSSIE Standard |
|---|
| 55 | Interfaces, Node Booter, the domain, default node, and GPP Device. |
|---|
| 56 | |
|---|
| 57 | %package %{_name} |
|---|
| 58 | Summary: OSSIE Core Framework |
|---|
| 59 | Group: Radio |
|---|
| 60 | Provides: ossie_cf = %{_version} %{_name} = %{_version}-%{_release} |
|---|
| 61 | Obsoletes: %{_name} |
|---|
| 62 | requires: 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} |
|---|
| 65 | OSSIE core framework. It is required for all OSSIE installs |
|---|
| 66 | See 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 |
|---|
| 85 | mkdir -p %{buildroot}%{py_sysdir} |
|---|
| 86 | cp idl/python/ossie.pth %{buildroot}%{py_sysdir} |
|---|
| 87 | # Update the system library configuration |
|---|
| 88 | echo '/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 | |
|---|