From 355d27c5207f129e8e601d9a838091784b650bd0 Mon Sep 17 00:00:00 2001 From: Jochen Schmitt Date: Sep 10 2008 16:28:58 +0000 Subject: Initiional import --- diff --git a/.cvsignore b/.cvsignore index e69de29..b06af22 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +open-cobol-1.1.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..996ee54 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +open-cobol-1_0_90-2_fc9:HEAD:open-cobol-1.0.90-2.fc9.src.rpm:1221064053 diff --git a/open-cobol.spec b/open-cobol.spec new file mode 100644 index 0000000..9ebf870 --- /dev/null +++ b/open-cobol.spec @@ -0,0 +1,115 @@ +%define cobvers 1.1 + +Name: open-cobol +Version: 1.0.90 +Release: 2%{?dist} +Summary: OpenCOBOL - COBOL compiler + +Group: Development/Languages +License: GPLv2+ and LGPLv2+ + +URL: http://www.opencobol.org +# Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz +Source: http://www.sim-basis.de/%{name}-%{cobvers}.tar.gz + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: gmp-devel >= 4.1.4 +BuildRequires: readline-devel +BuildRequires: db4-devel >= 4.1.24 +BuildRequires: libtool +BuildRequires: libtool-ltdl-devel + +Requires: gcc +Requires: glibc-devel +Requires: gmp >= 4.1.4 +Requires: gmp-devel >= 4.1.4 +Requires: db4 >= 4.1.24 +Requires: ncurses >= 5.4 +Requires: libcob = %{version} +Requires(post): /sbin/install-info + +%description +OpenCOBOL is an open-source COBOL compiler, which translates COBOL +programs to C code and compiles it using GCC. + +%package -n libcob +Summary: OpenCOBOL runtime library +Group: Development/Libraries +Requires(post): /sbin/ldconfig +Requires(postun): /sbin/ldconfig + +%description -n libcob +%{summary}. +Runtime libraries for OpenCOBOL + +%prep +%setup -q -n %{name}-%{cobvers} + +%build +%configure --disable-rpath +sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool +sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT/%{_libdir} -type f -name "*.*a" -exec rm -f {} ';' +rm -rf $RPM_BUILD_ROOT/%{_infodir}/dir + +%find_lang %{name} + +%check +make check + +%files -f %{name}.lang +%defattr (-,root,root,-) +%doc AUTHORS COPYING ChangeLog +%doc NEWS README THANKS +%{_bindir}/cobc +%{_bindir}/cob-config +%{_bindir}/cobcrun +%{_datadir}/open-cobol +%{_infodir}/open-cobol.info* +%{_includedir}/* +%{_libdir}/libcob.so + +%files -n libcob +%defattr (-,root,root,-) +%doc COPYING.LIB +%{_libdir}/libcob.so.* + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +/sbin/install-info %{_infodir}/open-cobol.info %{_infodir}/dir 2>/dev/null || : + +%postun +if [ $1 = 0 ]; then + /sbin/install-info --delete %{_infodir}/open-cobol.info %{_infodir}/dir 2>/dev/null || : +fi + +%post -n libcob -p /sbin/ldconfig + +%postun -n libcob -p /sbin/ldconfig + +%changelog +* Sun Aug 17 2008 Jochen Schmitt 1.0.90-2 +- Fix dependency open-cobol -> libcob + +* Tue Aug 12 2008 Jochen Schmitt 1.0.90-1 +- Prerelease of opben-cobol-1.1 + +* Tue Aug 5 2008 Jochen Schmitt 1.0-3 +- Blocking Test #98 to failing + +* Wed Jul 30 2008 Jochen Schmitt 1.0-2 +- OpenCOBOL req. libcob-devel +- Fix URIs +- Fix tiwce groups + +* Wed Jul 30 2008 Jochen Schmitt 1.0-1 +- Initional Fedora RPM package + diff --git a/sources b/sources index e69de29..09e701b 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +eeb826ab1c181ce0024c7c64b8d32f52 open-cobol-1.1.tar.gz