# # # Name: xmitmsgx.spec[.in] (RPM spec file) # Date: 2023-03-22 (Wed) # http://ftp.rpm.org/max-rpm/s1-rpm-build-creating-spec-file.html # # Build with: # rpmbuild -bb --nodeps xmitmsgx.spec # Summary: xmitmsgx, work-alike for XMITMSG for POSIX #Copyright: Voltage Security, LLC, a division of CyberRes, a Micro Focus company # The name line defines what the package will actually be called. Name: xmitmsgx Version: %SPEC_VERSION% Release: %SPEC_RELEASE% License: GPL # The group line is used to hold a string that defines how # the packaged software should be grouped with other packages. Group: Development/Languages Source: xmitmsgx-%{version}.tar.gz Prefix: %SPEC_PREFIX% #Provides: xmitmsgx URL: https://github.houston.softwaregrp.net/rtroth/ussw/archive/master.zip #Buildroot: /tmp/xmitmsgx # The distribution line identifies the product this package is part of. Distribution: Casita.Net Vendor: La Casita en la Esquina Packager: Sir Santa %description This package provides similar capability for Unix/Linux/POSIX to that of the 'XMITMSG' command and "APPLMSG" assembly language macro found in the VM/CMS environment. # the source has already been fetched %prep true # do a 'make install' and this is not needed %build mkdir -p $HOME/rpmbuild/BUILDROOT/xmitmsgx-%SPEC_VERSION%-%SPEC_RELEASE%.%SPEC_UNAMEM%/%SPEC_PREFIX% rsync -a -u -x -H -O -S %SPEC_STAGING%/. $HOME/rpmbuild/BUILDROOT/xmitmsgx-%SPEC_VERSION%-%SPEC_RELEASE%.%SPEC_UNAMEM%/%SPEC_PREFIX%/. # we should have done a 'make install' before this step %install mkdir -p $HOME/rpmbuild/BUILDROOT/xmitmsgx-%SPEC_VERSION%-%SPEC_RELEASE%.%SPEC_UNAMEM%/%SPEC_PREFIX% rsync -a -u -x -H -O -S %SPEC_STAGING%/. $HOME/rpmbuild/BUILDROOT/xmitmsgx-%SPEC_VERSION%-%SPEC_RELEASE%.%SPEC_UNAMEM%/%SPEC_PREFIX%/. # The %files section is a list of the files that comprise the package. # If it isn't in the file list, it won't be put into the package. %files %SPEC_PREFIX%/bin/xmitmsg %SPEC_PREFIX%/bin/xmiterr %SPEC_PREFIX%/lib/libxmitmsgx.a %SPEC_PREFIX%/lib/libxmitmsgxdyn.so %SPEC_PREFIX%/lib/libxmmrexx.so %SPEC_PREFIX%/include/xmitmsgx.h %SPEC_PREFIX%/share/locale/en_US/xmitmsgx.msgs %SPEC_PREFIX%/share/locale/en_US/errno.msgs %SPEC_PREFIX%/sbin/xmitmivp.sh %SPEC_PREFIX%/src/xmitmivp.c #%SPEC_PREFIX%/src/*.h #%SPEC_PREFIX%/src/makefile #/opt/vendor/package/sbin/install.sh %clean # Here is where we clean-up after all the building and packaging. true %post # Run the 'install.sh' after the content is deployed. #sh /opt/vendor/package/sbin/install.sh true