#### Red Hat Package Specification File # # File: Fnorb-os2-1.01.spec # # This RPM is a packaging of an OS/2 version of the Fnorb CORBA ORB, # written in Python. When the RPM is installed, it provides a single # .ZIP file of a full OS/2 development environment. # # An independent 'BuildRoot:' directive is used so that that this package # can be built in the /tmp directory, for the case where the existing setup # on the build host would be disrupted by installing-after-build-to-package # onto that system. # # Sample Package Name: # Fnorb-os2-1.01-1.i386.rpm # # Modification History: # 26-Mar-99 jrr Original effort to package 1.0b1 for OS/2 using RPMs # #### #### # Section: Preamble (Items Displayed When Users Request Info About Package) # # The order of the entries below is unimportant. # #### Name: Fnorb-os2 Version: 1.01 Release: 1 Copyright: Free for Non-Commercial (Resale) Use Vendor: University of Queensland URL: http://www.dstc.edu.au/Fnorb Packager: Jeff Rush BuildArchitectures: i386 BuildRoot: /tmp/Fnorb-os2-1.01-rootdir Group: Non-Native/Development/Languages Summary: CORBA 2.0 ORB written in Python AutoReqProv: no Source0: Fnorb-1.01.tar.gz Source1: Fnorb-os2-1.01.makefile Source2: Fnorb-os2-1.01.deunix Patch0: Fnorb-os2-1.01.patch %description A CORBA 2.0 ORB written in Python, a mature, interpreted, object-oriented programming language with powerful high-level datatypes that make it ideally suited as a scripting language for CORBA. Fnorb supports all CORBA 2.0 datatypes (including Any's) and provides a full implementation of IIOP. Fnorb is simple, light-weight, and easy to install and use. With version 1.01 it now supports multithreaded clients and servers. ######################################## ########## # # The following environment variables are automatically defined for use # in any of the following shell scripts: # # RPM_SOURCE_DIR { where sources originally reside } # RPM_BUILD_DIR { where sources get unpacked into } # RPM_DOC_DIR # RPM_OPT_FLAGS # RPM_ARCH # RPM_OS # RPM_ROOT_DIR # RPM_BUILD_ROOT { where final images get placed before packaging } # RPM_PACKAGE_NAME # RPM_PACKAGE_VERSION # RPM_PACKAGE_RELEASE # ########## #### # Section: Prep Script (Prepare to Build; Usually Just Unpacking the Sources) #### %prep %setup -n Fnorb-1.01 # The Fnorb tarball has troublesome file modes. Fix them to give us writes. chmod -R u+w $RPM_BUILD_DIR/Fnorb-1.01 # Strip 1 Level of Directories Off the Patch Filename and Apply Patch 0 %patch0 -p1 # Make a Useful Script that Converts Unix "\n" into OS/2 "\r\n" EOLs cp $RPM_SOURCE_DIR/Fnorb-os2-1.01.deunix $RPM_BUILD_DIR/Fnorb-1.01/deunix #### # Section: Build Script (Actually Perform the Build; Usually Just 'make') #### #%build #### # Section: Install-After-Build Script (Often Just 'make install') #### %install # Make the Necessary Directories install -m755 --directory $RPM_BUILD_ROOT/var/local/pythos2 install -m755 --directory $RPM_BUILD_ROOT/var/local/pythos2/Add-Ons/Fnorb install -m755 --directory $RPM_BUILD_ROOT/var/local/pythos2/lib/site-packages/Fnorb install -m755 --directory $RPM_BUILD_ROOT/var/local/pythos2/lib/lib-dynload #### # Install Fnorb into Python Directory Structure #### install -m644 __init__.py $RPM_BUILD_ROOT/var/local/pythos2/lib/site-packages/Fnorb # Provide the OS/2-Specific Makefile cp -rp compiler/ $RPM_BUILD_ROOT/var/local/pythos2/lib/site-packages/Fnorb/ cp -rp cos/ $RPM_BUILD_ROOT/var/local/pythos2/lib/site-packages/Fnorb/ cp -rp orb/ $RPM_BUILD_ROOT/var/local/pythos2/lib/site-packages/Fnorb/ cp -rp parser/ $RPM_BUILD_ROOT/var/local/pythos2/lib/site-packages/Fnorb/ cp -rp script/ $RPM_BUILD_ROOT/var/local/pythos2/lib/site-packages/Fnorb/ cp -rp script/*.cmd $RPM_BUILD_ROOT/var/local/pythos2/ cp -rp examples/ $RPM_BUILD_ROOT/var/local/pythos2/Add-Ons/Fnorb/ cp -rp src/ $RPM_BUILD_ROOT/var/local/pythos2/Add-Ons/Fnorb/ rm -f $RPM_BUILD_ROOT/var/local/pythos2/Add-Ons/Fnorb/src/{Makefile.pre.in,Setup.in} cp $RPM_SOURCE_DIR/Fnorb-os2-1.01.makefile \ $RPM_BUILD_ROOT/var/local/pythos2/Add-Ons/Fnorb/src/makefile cp -rp ANNOUNCE CHANGES LICENSE.HTML README doc/* \ $RPM_BUILD_ROOT/var/local/pythos2/Add-Ons/Fnorb/ # For Each Subdirectory, Change EOLs to OS/2-Style in Specified Files find $RPM_BUILD_ROOT/var/local/pythos2 -type d \ -exec $RPM_BUILD_DIR/Fnorb-1.01/deunix \{\}/*.{h,c,py,idl,uue,def,y,l,cfg,txt,cmd} \; find $RPM_BUILD_ROOT/var/local/pythos2 -type d \ -exec $RPM_BUILD_DIR/Fnorb-1.01/deunix \{\}/{makefile,ANNOUNCE,CHANGES,LICENSE.HTML,README,README.OS2} \; (cd $RPM_BUILD_ROOT/var/local/pythos2 zip -r0 fnorb101.zip .) #### # Section: Delivery Install/Uninstall Scripts (Pre/Post Install/Erase Scripts) #### #### # Section: Verify Script (Check for Proper Installation of Package) #### #### # Section: Clean Script (Tidy Up Build Area After a Build Completes) #### %clean rm -rf $RPM_BUILD_ROOT #### # Section: Files (List of Files w/Attributes Making Up Package) #### %files %defattr(-, root, wheel) /var/local/pythos2/fnorb101.zip