version 0.73.0
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
This directory contains info on how to build a rpm file.
|
||||
a sample RPM spec file for Tiny COBOL and info.
|
||||
|
||||
Note:
|
||||
Status is not functional. Rpm spec file is a prototype and requires configure.
|
||||
|
||||
To build:
|
||||
rpm -ba tinycobol.spec
|
||||
|
||||
This will look for filename in spec file under Source.
|
||||
For example:
|
||||
|
||||
Source: ftp://tiny-cobol.sourceforge.net/pub/tiny-cobol/tinycobol-0.19991230.tar.gz
|
||||
|
||||
The program rpm will look for tinycobol-0.19991230.tar.gz in the $D1/SOURCES directory,
|
||||
where D1 usually defaults to /usr/src/redhat.
|
||||
|
||||
More info can found in rpm-KickStart-HOWTO-13.txt.
|
||||
|
||||
@@ -0,0 +1,110 @@
|
||||
13. Appendix B - Making your own RPMs
|
||||
|
||||
The RPM package format is already very well documented, particularly in the
|
||||
book Maximum RPM by Ed Bailey, which you can download from the RPM WWW site
|
||||
- also available from all good book stores! This is just a couple of quick
|
||||
hints for people in a hurry.
|
||||
|
||||
RPM packages are built from a spec file. This consists (in a similar fashion
|
||||
to the KickStart config file) of a recipe of steps that need to be taken in
|
||||
order to build the package - it's expected that you'll have to build it from
|
||||
source, potentially for multiple platforms, and may need to apply patches
|
||||
before compiling. Once built and installed, a binary RPM will be created
|
||||
from the files and directories you specify as being associated with the
|
||||
package. It's important to note that RPM has no idea of which files and
|
||||
directories are related to a given package - you have to tell it.
|
||||
|
||||
Here's a sample specification for a custom RPM of the Squid WWW cache
|
||||
server:
|
||||
|
||||
Summary: Squid Web Cache server
|
||||
Name: squid
|
||||
Version: 1.NOVM.22
|
||||
Release: 1
|
||||
Copyright: GPL/Harvest
|
||||
Group: Networking/Daemons
|
||||
Source: squid-1.NOVM.22-src.tar.gz
|
||||
Patch: retry-1.NOVM.20.patch
|
||||
%description
|
||||
This is just a first attempt to package up the Squid Web Cache for easy
|
||||
installation on our RedHat Linux servers
|
||||
|
||||
%prep
|
||||
%setup
|
||||
%build
|
||||
configure --prefix=/usr/squid
|
||||
perl -spi -e 's!#( -DALLOW_HOSTNAME_UNDERSCORES)!$1!' src/Makefile
|
||||
make
|
||||
|
||||
%install
|
||||
make install
|
||||
|
||||
%files
|
||||
/usr/squid
|
||||
|
||||
Here's how to build this RPM:
|
||||
|
||||
% mkdir -p SOURCES BUILD SRPMS RPMS/i386
|
||||
% cp ~/squid-1.NOVM.22-src.tar.gz SOURCES
|
||||
% cp ~/retry-1.NOVM.20.patch SOURCES
|
||||
% rpm -ba squid-1.NOVM.22+retry-1.spec
|
||||
|
||||
This will automatically create a subdirectory under the BUILD directory,
|
||||
into which it'll unpack the source code and then apply the patch (there are
|
||||
a number of options available for patching - check the book for details).
|
||||
Now, RPM will automatically build the package by running configure and then
|
||||
make, install it using make install, and take a snapshot of the files under
|
||||
/usr/squid. It's the latter which will form the binary RPM of the Squid
|
||||
software.
|
||||
|
||||
Note that we can insert arbitrary shell commands into the unpacking,
|
||||
building and installing processes, e.g. the call to perl which tweaks one of
|
||||
Squid's compile-time parameters.
|
||||
|
||||
The final binary RPM will be left under the RPMS directory in the platform
|
||||
specific subdirectory i386. In this case it will be called
|
||||
squid-1.NOVM.22-1.i386.rpm. Note that the filename is created by
|
||||
concatenating the values of the following parameters from the spec file:
|
||||
Name, Version and Release - plus the hardware platform in question, i386 in
|
||||
this case. Try to bear this in mind when creating your own RPMs, to avoid
|
||||
giving them overly long or painful names!
|
||||
|
||||
It's also worth bearing in mind that you can build RPMs without having to
|
||||
rebuild the whole software package, e.g.
|
||||
|
||||
Summary: Linux 2.0.36 kernel + filehandle patch + serial console patch
|
||||
|
||||
Name: linux
|
||||
Version: 2.0.36+filehandle+serial_console
|
||||
Release: 1
|
||||
Copyright: GPL
|
||||
Group: Base/Kernel
|
||||
Source: linux-2.0.36+filehandle+serial_console.tar.gz
|
||||
%description
|
||||
This is just a first attempt to package up the Linux kernel with patches
|
||||
for installation on our RedHat Linux servers
|
||||
|
||||
%prep
|
||||
echo
|
||||
|
||||
%setup
|
||||
echo
|
||||
|
||||
%build
|
||||
echo
|
||||
|
||||
%install
|
||||
echo
|
||||
|
||||
%post
|
||||
/sbin/lilo
|
||||
|
||||
%files
|
||||
/lib/modules/2.0.36
|
||||
/boot/vmlinuz
|
||||
|
||||
In this case we simply create an RPM based on the /boot/vmlinuz file and the
|
||||
contents of the directory /lib/modules/2.0.36, and execute /sbin/lilo after
|
||||
the package has been installed on a target machine. Let me know if you know
|
||||
much neater way of writing the spec file than this.
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
Summary: COBOL compiler.
|
||||
Name: tinycobol
|
||||
Version: 0.61
|
||||
Release: 1
|
||||
Source: http://prdownloads.sourceforge.net/tiny-cobol/tinycobol-0.61.tar.gz
|
||||
Group: Development/Languages
|
||||
Copyright: GPL/LGPL
|
||||
Packager: Bernard Giroud <bgiroud@nospam.free.fr.nospam>
|
||||
|
||||
%description
|
||||
TinyCOBOL, htcobol, is a COBOL 85 compliant compiler for the IA32 (i386) architecture.
|
||||
|
||||
%prep
|
||||
|
||||
%setup
|
||||
|
||||
%build
|
||||
./configure --prefix=/usr/local
|
||||
make
|
||||
|
||||
%install
|
||||
make install
|
||||
|
||||
%files
|
||||
%doc ANNOUNCE AUTHORS COPYING COPYING.LIB COPYRIGHT
|
||||
%doc INSTALL INSTALL.bin INSTALL.Win32 README STATUS
|
||||
%doc info/htcobf2f_man.html info/htcobol_man.html info/htcobolpp_man.html
|
||||
/usr/local/bin/htcobol
|
||||
/usr/local/lib/libhtcobol.a
|
||||
/usr/local/share/htcobol/htcobolrc
|
||||
/usr/local/share/htcobol/htcobolpp
|
||||
/usr/local/share/htcobol/copybooks/screen.cpy
|
||||
/usr/local/man/man1/htcobol.1
|
||||
/usr/local/man/man1/htcobf2f.1
|
||||
/usr/local/man/man1/htcobolpp.1
|
||||
|
||||
%changelog
|
||||
|
||||
* Thur Sept 10 2003 David Essex
|
||||
* Sun Feb 03 2003 Bernard Giroud
|
||||
* Tue Jan 29 2002 David Essex
|
||||
* Wed July 11 2001 David Essex
|
||||
|
||||
- Updated previous version.
|
||||
@@ -0,0 +1,26 @@
|
||||
Summary: The Tiny COBOL compiler
|
||||
Name: htcobol
|
||||
Version: 0.0
|
||||
Release: 19991230
|
||||
Copyright: GPL
|
||||
Group: Development/Languages
|
||||
Source: ftp://tiny-cobol.sourceforge.net/pub/tiny-cobol/tinycobol-0.19991230.tar.gz
|
||||
|
||||
%description
|
||||
Tiny COBOL, htcobol, is a ANSI 74 compliant COBOL compiler for the
|
||||
i386 architecture.
|
||||
|
||||
%prep
|
||||
%setup
|
||||
|
||||
%build
|
||||
configure --prefix=/usr/local
|
||||
make
|
||||
|
||||
%install
|
||||
make install
|
||||
|
||||
%files
|
||||
/usr/local/bin/htcobol
|
||||
/usr/local/lib/libhtcobol.a
|
||||
/usr/local/share/htcobol/cobopt
|
||||
@@ -0,0 +1,54 @@
|
||||
Summary: The Tiny COBOL compiler
|
||||
Name: tinycobol
|
||||
Version: 0.2
|
||||
Release: 1
|
||||
Copyright: GPL
|
||||
Group: Development/Languages
|
||||
Source: ftp://tiny-cobol.sourceforge.net/pub/tiny-cobol/tinycobol-0.2.tar.gz
|
||||
|
||||
%description
|
||||
TinyCOBOL, htcobol, is a COBOL ANSI/ISO 85 compliant compiler for the
|
||||
i386 architecture.
|
||||
|
||||
%prep
|
||||
%setup -n tinycobol
|
||||
|
||||
%build
|
||||
./configure --prefix=/usr/local
|
||||
make
|
||||
cd utils/cobpp
|
||||
make
|
||||
|
||||
%install
|
||||
make install
|
||||
cd utils/cobpp
|
||||
make install
|
||||
|
||||
%files
|
||||
/usr/local/bin/htcobol
|
||||
/usr/local/bin/htcobpp
|
||||
/usr/local/lib/libhtcobol.a
|
||||
/usr/local/share/htcobol/cobopt
|
||||
%doc AUTHORS
|
||||
%doc BUGS
|
||||
%doc CHANGES
|
||||
%doc COPYING
|
||||
%doc COPYING.LIB
|
||||
%doc COPYRIGHT
|
||||
%doc ChangeLog
|
||||
%doc HISTORY
|
||||
%doc INSTALL
|
||||
%doc INSTALL.bin
|
||||
%doc README
|
||||
%doc TODO
|
||||
%doc info
|
||||
%doc test.code
|
||||
%doc test_suite
|
||||
%doc tinycobol.lsm
|
||||
%doc utils/Readme.txt
|
||||
%doc utils/cobpp/AUTHORS
|
||||
%doc utils/cobpp/COPYING
|
||||
%doc utils/cobpp/COPYRIGHT
|
||||
%doc utils/cobpp/Readme.txt
|
||||
%doc info
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
Summary: The Tiny COBOL compiler
|
||||
Name: tinycobol
|
||||
Version: 0.3
|
||||
Release: 1
|
||||
Copyright: GPL
|
||||
Group: Development/Languages
|
||||
Source: ftp://tiny-cobol.sourceforge.net/pub/tiny-cobol/tinycobol-0.3.tar.gz
|
||||
|
||||
%description
|
||||
TinyCOBOL, htcobol, is a COBOL 85 compliant compiler for the
|
||||
i386 architecture.
|
||||
|
||||
%prep
|
||||
|
||||
%setup
|
||||
|
||||
%build
|
||||
./configure --prefix=/usr/local
|
||||
make
|
||||
|
||||
%install
|
||||
make install
|
||||
|
||||
%files
|
||||
/usr/local/bin/htcobol
|
||||
/usr/local/bin/htcobpp
|
||||
/usr/local/lib/libhtcobol.a
|
||||
/usr/local/share/htcobol/cobopt
|
||||
%doc AUTHORS
|
||||
%doc BUGS
|
||||
%doc CHANGES
|
||||
%doc COPYING
|
||||
%doc COPYING.LIB
|
||||
%doc COPYRIGHT
|
||||
%doc ChangeLog
|
||||
%doc HISTORY
|
||||
%doc INSTALL
|
||||
%doc INSTALL.bin
|
||||
%doc README
|
||||
%doc TODO
|
||||
%doc info
|
||||
%doc test.code
|
||||
%doc test_suite
|
||||
%doc tinycobol.lsm
|
||||
%doc utils/Readme.txt
|
||||
%doc utils/cobpp/AUTHORS
|
||||
%doc utils/cobpp/COPYING
|
||||
%doc utils/cobpp/COPYRIGHT
|
||||
%doc utils/cobpp/Readme.txt
|
||||
%doc info
|
||||
@@ -0,0 +1,54 @@
|
||||
Summary: The Tiny COBOL compiler
|
||||
Name: tinycobol
|
||||
Version: 0.4
|
||||
Release: 1
|
||||
Copyright: GPL
|
||||
Group: Development/Languages
|
||||
Source: ftp://tiny-cobol.sourceforge.net/pub/tiny-cobol/tinycobol-0.4.tar.gz
|
||||
|
||||
%description
|
||||
TinyCOBOL, htcobol, is a COBOL 85 compliant compiler for the
|
||||
i386 architecture.
|
||||
|
||||
%prep
|
||||
|
||||
%setup
|
||||
|
||||
%build
|
||||
./configure --prefix=/usr/local
|
||||
make
|
||||
|
||||
%install
|
||||
make install
|
||||
|
||||
%files
|
||||
/usr/local/bin/htcobol
|
||||
/usr/local/bin/htcobpp
|
||||
/usr/local/lib/libhtcobol.a
|
||||
/usr/local/share/htcobol/cobopt
|
||||
/usr/local/share/htcobol/htcobolpp
|
||||
/usr/local/share/htcobol/copybooks/CMDLine.cpy
|
||||
/usr/local/share/htcobol/copybooks/CMDLine1.cpy
|
||||
/usr/local/share/htcobol/copybooks/ENVAR1.cpy
|
||||
%doc AUTHORS
|
||||
%doc BUGS
|
||||
%doc CHANGES
|
||||
%doc COPYING
|
||||
%doc COPYING.LIB
|
||||
%doc COPYRIGHT
|
||||
%doc ChangeLog
|
||||
%doc HISTORY
|
||||
%doc INSTALL
|
||||
%doc INSTALL.bin
|
||||
%doc README
|
||||
%doc TODO
|
||||
%doc info
|
||||
%doc test.code
|
||||
%doc test_suite
|
||||
%doc tinycobol.lsm
|
||||
%doc utils/Readme.txt
|
||||
%doc utils/cobpp/AUTHORS
|
||||
%doc utils/cobpp/COPYING
|
||||
%doc utils/cobpp/COPYRIGHT
|
||||
%doc utils/cobpp/Readme.txt
|
||||
%doc info
|
||||
@@ -0,0 +1,54 @@
|
||||
Summary: The Tiny COBOL compiler
|
||||
Name: tinycobol
|
||||
Version: 0.50
|
||||
Release: 1
|
||||
Copyright: GPL
|
||||
Group: Development/Languages
|
||||
Source: ftp://tiny-cobol.sourceforge.net/pub/tiny-cobol/tinycobol-0.50.tar.gz
|
||||
|
||||
%description
|
||||
TinyCOBOL, htcobol, is a COBOL 85 compliant compiler for the
|
||||
i386 architecture.
|
||||
|
||||
%prep
|
||||
|
||||
%setup
|
||||
|
||||
%build
|
||||
./configure --prefix=/usr/local
|
||||
make
|
||||
|
||||
%install
|
||||
make install
|
||||
|
||||
%files
|
||||
/usr/local/bin/htcobol
|
||||
/usr/local/bin/htcobpp
|
||||
/usr/local/lib/libhtcobol.a
|
||||
/usr/local/share/htcobol/cobopt
|
||||
/usr/local/share/htcobol/htcobolpp
|
||||
/usr/local/share/htcobol/copybooks/CMDLine.cpy
|
||||
/usr/local/share/htcobol/copybooks/CMDLine1.cpy
|
||||
/usr/local/share/htcobol/copybooks/ENVAR1.cpy
|
||||
%doc AUTHORS
|
||||
%doc BUGS
|
||||
%doc CHANGES
|
||||
%doc COPYING
|
||||
%doc COPYING.LIB
|
||||
%doc COPYRIGHT
|
||||
%doc ChangeLog
|
||||
%doc HISTORY
|
||||
%doc INSTALL
|
||||
%doc INSTALL.bin
|
||||
%doc README
|
||||
%doc TODO
|
||||
%doc info
|
||||
%doc test.code
|
||||
%doc test_suite
|
||||
%doc tinycobol.lsm
|
||||
%doc utils/Readme.txt
|
||||
%doc utils/cobpp/AUTHORS
|
||||
%doc utils/cobpp/COPYING
|
||||
%doc utils/cobpp/COPYRIGHT
|
||||
%doc utils/cobpp/Readme.txt
|
||||
%doc info
|
||||
@@ -0,0 +1,31 @@
|
||||
Summary: The Tiny COBOL compiler
|
||||
Name: tinycobol
|
||||
Version: 0.1.5.3
|
||||
Release: 1cl
|
||||
Copyright: GPL
|
||||
Group: Development/Languages
|
||||
Source: ftp://tiny-cobol.sourceforge.net/pub/tiny-cobol/tinycobol-0.1.5.3.tar.gz
|
||||
|
||||
%description
|
||||
TinyCOBOL, htcobol, is a COBOL ANSI/ISO 85 compliant compiler for the
|
||||
i386 architecture.
|
||||
|
||||
%prep
|
||||
%setup
|
||||
|
||||
%build
|
||||
./configure --prefix=/usr/local
|
||||
make
|
||||
|
||||
%install
|
||||
make install
|
||||
|
||||
%files
|
||||
/usr/local/bin/htcobol
|
||||
/usr/local/lib/libhtcobol.a
|
||||
/usr/local/share/htcobol/cobopt
|
||||
|
||||
%changelog
|
||||
|
||||
*
|
||||
- Creating a rpm package
|
||||
@@ -0,0 +1,71 @@
|
||||
Name: tinycobol
|
||||
Version: 0.57
|
||||
Release: 1
|
||||
Copyright: GPL
|
||||
Source: tinycobol-0.57.tar.gz
|
||||
URL: http://prdownloads.sourceforge.net/tiny-cobol/tinycobol-0.57.tar.gz
|
||||
Summary: tinycobol-0.57
|
||||
Group: Development/Languages/Applications
|
||||
|
||||
%define ver 0.57
|
||||
%define rel 1
|
||||
%define prefix /usr/local
|
||||
|
||||
%description
|
||||
TinyCOBOL, htcobol, is a COBOL 85 compliant compiler for the IA32 (i386) architecture.
|
||||
|
||||
Home page:
|
||||
http://tiny-cobol.sourceforge.net/
|
||||
|
||||
Download:
|
||||
http://tiny-cobol.sourceforge.net/snapshots/
|
||||
http://download.sourceforge.net/tiny-cobol/
|
||||
http://www.ibiblio.org/pub/Linux/devel/lang/cobol/
|
||||
|
||||
Mailing list:
|
||||
http://lists.sourceforge.net/mailman/listinfo/tiny-cobol-users
|
||||
|
||||
Mailing list archives:
|
||||
http://www.geocrawler.com/redir-sf.php3?list=tiny-cobol-users
|
||||
|
||||
See INSTALL for build, install instructions.
|
||||
See INSTALL.bin for binary install instructions.
|
||||
See INSTALL.Win32 for Win32 systems install instructions.
|
||||
|
||||
%prep
|
||||
%setup
|
||||
%build
|
||||
* ./configure --prefix=%prefix --with-libdb=3
|
||||
./configure --prefix=%prefix
|
||||
make
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
make install
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-, root, root)
|
||||
%doc ANNOUNCE AUTHORS BUGS COPYING COPYING.LIB COPYRIGHT ChangeLog
|
||||
%doc HISTORY INSTALL INSTALL.bin INSTALL.Win32 README tinycobol.lsm
|
||||
/usr/local/bin/htcobol
|
||||
/usr/local/lib/libhtcobol.a
|
||||
/usr/local/share/htcobol/cobopt
|
||||
/usr/local/share/htcobol/htcobolpp
|
||||
/usr/local/share/htcobol/copybooks/CMDLine.cpy
|
||||
/usr/local/man/man1/htcobol.1
|
||||
/usr/local/man/man1/htcobf2f.1
|
||||
/usr/local/man/man1/htcobolpp.1
|
||||
|
||||
%changelog
|
||||
|
||||
* Tue Jan 29 2002 David Essex
|
||||
* Sun Jul 15 2001 David Essex
|
||||
* Fri Jul 13 2001 David Billsbrough
|
||||
Reference in New Issue
Block a user