| 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 |
|---|
| 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 | # Package description |
|---|
| 18 | Summary: OSSIE Core Framework Revision 7005 |
|---|
| 19 | Name: %{_name} |
|---|
| 20 | Version: %{_version} |
|---|
| 21 | Release: %{_release} |
|---|
| 22 | License: GNU GPL v2 |
|---|
| 23 | Group: Radio |
|---|
| 24 | URL: http://ossie.wireless.vt.edu |
|---|
| 25 | |
|---|
| 26 | # Package prereqs |
|---|
| 27 | # requires for omniidl? |
|---|
| 28 | #BuildRequires: libomniorb libomniorb-devel |
|---|
| 29 | BuildRequires: xerces-c xerces-c-devel |
|---|
| 30 | BuildRequires: glibc-devel libtool |
|---|
| 31 | BuildRequires: boost boost-devel |
|---|
| 32 | BuildRequires: gcc gcc-c++ |
|---|
| 33 | |
|---|
| 34 | # Package source instructions |
|---|
| 35 | Source: %{_name}-%{_version}.tar.gz |
|---|
| 36 | Buildroot: %{_tmppath}/%{_name}-%{_version} |
|---|
| 37 | |
|---|
| 38 | %description |
|---|
| 39 | OSSIE (Open Source SCA Implementation::Embedded project is an initiative |
|---|
| 40 | by the Mobile and Portable Radio Research Group at Virginia Tech to |
|---|
| 41 | provide a platform that is simple, easy to expand, and open-source for the |
|---|
| 42 | development of waveforms following the guidelines laid down by the SCA |
|---|
| 43 | specifications under the Joint Tactical Radio System program as well as |
|---|
| 44 | the Object Management Group. |
|---|
| 45 | |
|---|
| 46 | This is the OSSIE core framework. It is required for all OSSIE installs. |
|---|
| 47 | Please see http://ossie.wireless.vt.edu/ for more information. |
|---|
| 48 | |
|---|
| 49 | For a full OSSIE installation, make sure to also get the OSSIE Standard |
|---|
| 50 | Interfaces, Node Booter, the domain, default node, and GPP Device. |
|---|
| 51 | |
|---|
| 52 | %package %{_name} |
|---|
| 53 | Summary: OSSIE Core Framework |
|---|
| 54 | Group: Radio |
|---|
| 55 | Provides: ossiecf = %{_version} %{_name} = %{_version}-%{_release} |
|---|
| 56 | Obsoletes: %{_name} |
|---|
| 57 | |
|---|
| 58 | %description %{_name} |
|---|
| 59 | OSSIE core framework. It is required for all OSSIE installs |
|---|
| 60 | See http://ossie.wireless.vt.edu/ for more information |
|---|
| 61 | |
|---|
| 62 | # Let rpmbuild auto-handle the prep steps, the -q option |
|---|
| 63 | # makes the unpack quiet |
|---|
| 64 | %prep |
|---|
| 65 | %setup -q |
|---|
| 66 | |
|---|
| 67 | # Standard auto-foo build procedure |
|---|
| 68 | %build |
|---|
| 69 | ./reconf |
|---|
| 70 | ./configure |
|---|
| 71 | %{?make:%make}%{!?make:make} all |
|---|
| 72 | #make |
|---|
| 73 | |
|---|
| 74 | # Install the binaries / libraries / etc |
|---|
| 75 | %install |
|---|
| 76 | #make install DESTDIR=$RPM_BUILD_ROOT |
|---|
| 77 | %{?makeinstall_std:%makeinstall_std}%{!?makeinstall_std:make DESTDIR=%{buildroot} install} |
|---|
| 78 | |
|---|
| 79 | # Clean up after ourselves so that we don't bloat /usr/src |
|---|
| 80 | %clean |
|---|
| 81 | [ -z %{buildroot} ] || rm -rf %{buildroot} |
|---|
| 82 | #rm -rf $RPM_BUILD_ROOT |
|---|
| 83 | |
|---|
| 84 | # Update system library directories |
|---|
| 85 | # TODO change ldconf dirs? |
|---|
| 86 | /sbin/ldconfig |
|---|
| 87 | |
|---|
| 88 | %files |
|---|
| 89 | %defattr(-,root,root,-) |
|---|
| 90 | # OSSIE libraries |
|---|
| 91 | %{_libdir}/*.a |
|---|
| 92 | %{_libdir}/*.la |
|---|
| 93 | %{_libdir}/*.so |
|---|
| 94 | %{_libdir}/*.so.0 |
|---|
| 95 | %{_libdir}/*.so.0.0.4 |
|---|
| 96 | %{_libdir}/pkgconfig/ossie.pc |
|---|
| 97 | |
|---|
| 98 | # OSSIE include headers and idls |
|---|
| 99 | %{_includedir}/ossie/*.h |
|---|
| 100 | %{_includedir}/ossie/*.idl |
|---|
| 101 | |
|---|
| 102 | # OSSIE Python bindings |
|---|
| 103 | /usr/local/lib/python2.5/site-packages/ossie/* |
|---|
| 104 | /usr/lib/python2.5/site-packages/ossie.pth |
|---|
| 105 | |
|---|