[Bug 2119494] Review Request: aubit4gl - Informix-4GL compatible compiler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=2119494



--- Comment #56 from Benson Muite <benson_muite@xxxxxxxxxxxxx> ---
May want to update to something like below:

%global nominalrelease 1.5_3
Name:           aubit4gl
Version:        r12787
Release:        1%{?dist}
Summary:        Informix-4GL compatible compiler

# The entire source code is GPLv2+ except
# tools/cgi_4gl which is MIT
# lib/bin/svn2cl.xsl which is BSD
# lib/libaubit4gl/curl.c which is BSD
# lib/extra_libs/mantisconnect/pregen which is GPL+
# tools/adbload2/adbload2_parse_pregen.tab.c which is GPLv3+
# tools/no_yacc/cygwin/compilers which is GPLv3+
# lib/libui/ui_json/libjson.c which is LGPLv2+
# lib/libui/ui_xml which is LGPLv2+
# incl/json.h which is MIT
# lib/libaubit4gl/json.c which is MIT
# lib/extra_libs/memcached/memcache.h which is MIT
# lib/libaubit4gl/mapm which is NTP
License:        GPLv2+ and GPLv3+ and GPL+ and LGPLv2+ and MIT and BSD
URL:            http://www.aubit.com
Provides:       lib%{name}.so()(64bit)
# Perhaps add a comment that this needs to be generated as the Snapshots are
not persistent
# May want to check on devel mailing list if anyone else has a solution for
obtaining
# a particular from SVN on sourceforge
Source0:       
https://downloads.sourceforge.net/project/aubit4gl/Snapshots/%{name}-%{version}.tar.bz2
# Would be good to explain where these come from since they are not being
obtained from aubit4gl repository
Source1:       
https://downloads.sourceforge.net/project/stansoft/src/aubitmanpages.tar.bz2
Source2:        https://aubit.com/aubit4gl/manuals/aubman.pdf
Source3:        https://aubit.com/aubit4gl/manuals/aubitqref.pdf
Patch0:        
https://downloads.sourceforge.net/project/stansoft/src/libaubit4gl-makefile.patch

BuildRequires:  gcc
BuildRequires:  ncurses-devel
BuildRequires:  libpq-devel
BuildRequires:  bison flex procps-ng
# Used for debugging the build, should be removed
BuildRequires:  tree 

%description
Aubit 4GL compiler is software that translates Informix 4GL programming
language into executable programs.


%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
%{summary}.


%prep
%setup
%patch0 -p0


%build
%configure --disable-prefix-check \
           --with-smtp=no \
           --without-libz
# It does not compile with multiple threads
%make_build -j1


%install
rm -rf %{buildroot}%{_libdir}/%{name}
mkdir -p %{buildroot}%{_libdir}/%{name}
mkdir -p %{buildroot}/etc/ld.so.conf.d
mkdir -p %{buildroot}%{_includedir}/%{name}
mkdir -p %{buildroot}%{_mandir}/man1
tar xvf %{SOURCE1} -C %{buildroot}%{_mandir}/man1
cp %{SOURCE2} %{SOURCE3} %{_builddir}/%{name}-%{version}

# To avoid absolute links, set LIB_INSTALL_LINK and BIN_INSTALL_LINK
# to '.' so the links will be discarded.
# The install places files in non-standard locations, install
# in the build directory, and then move files into correct locations
%make_install PREFIX=%{_builddir}/%{name}-install \
              LIB_INSTALL_LINK=%{_builddir}-install/%{name}/lib \
              BIN_INSTALL_LINK=%{_builddir}-install/%{name}/bin \
              aubitrc=new

# Find out what is installed. Tree should be removed from final spec file
tree %{_builddir}/%{name}-install

# Remove files which will not be packaged, to cleanup licensing.
# compilers/ace/dump_4gl.c contains: "This code is not covered by the GPL"
# Unclear which other binaries should be removed, at present it seems
# only a minimal set of binaries are installed though others may be useful
# for other applications
rm %{_builddir}/%{name}-install/bin/aace_4gl


# Install header files
cp -p %{_builddir}/%{name}-install/incl/*.h %{buildroot}%{_includedir}/%{name}
mkdir %{buildroot}/%{_includedir}/%{name}/dataio
cp -p %{_builddir}/%{name}-install/incl/dataio/*.h
%{buildroot}%{_includedir}/%{name}/dataio

# Move the Aubit4GL library into the system library directory
install %{_builddir}/%{name}-install/lib/lib%{name}*.so %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_libdir}/%{name}/plugins-%{nominalrelease}
install %{_builddir}/%{name}-install/plugins-%{nominalrelease}/*.so \
%{buildroot}%{_libdir}/%{name}/plugins-%{nominalrelease}


# Create file in /etc/ld.so.conf.d for the Aubit4GL shared object plugins
echo -e "%{_libdir}/%{name}/plugins-*" >
%{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf

# Put the Aubit4GL aubitrc config file into place
# This part needs checking
mv %{_builddir}/%{name}-install/etc/aubitrc-bin.in
%{buildroot}%{_libdir}/%{name}/etc/aubitrc
# Fixup paths in aubitrc
# Why put this in %{_libdir}/%{name}/etc rather than /etc ?
sed -i -e "s|%{_builddir}||g" \
       -e "s|%{_builddir}/%{name}-install/etc|%{_libdir}/%{name}/etc|g" \
       %{buildroot}%{_libdir}/%{name}/etc/aubitrc

# Install the binaries
mkdir -p %{buildroot}%{_bindir}
install %{_builddir}/%{name}-install/bin/*.* %{buildroot}%{_bindir}

# To avoid duplicate build-ids with libLEX_C and libLEX_CS, create a link
ln -sf %{buildroot}%{_libdir}/%{name}/plugins-%{nominalrelease}/libLEX_C.so \
%{buildroot}%{_libdir}/%{name}/plugins-%{nominalrelease}/libLEX_CS.so


%check
make test
make -C tools/test


%files
%license docs/COPYING
%doc docs/CREDITS
%doc README.txt aubman.pdf aubitqref.pdf
%doc tools/examples/
%doc tools/examples/comments/*.4gl
%doc tools/examples/embedded_c/*.4gl
%doc tools/examples/file/*.4gl
%doc tools/examples/general/*.4gl
%doc tools/examples/key_handling/*.4gl
%doc tools/examples/logical_reports/*.4gl
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/etc/aubitrc
%{_libdir}/%{name}/plugins-%{nominalrelease}/*.so
%{_libdir}/lib%{name}-*.so
/etc/ld.so.conf.d/%{name}-%{_arch}.conf
#%{_bindir}/4glpc
#%{_bindir}/4glc
#%{_bindir}/fcompile
#%{_bindir}/amkmessage
%{_bindir}/4GL_metrics.cgi
%{_bindir}/4glc
%{_bindir}/4glpc
%{_bindir}/a4gl
%{_bindir}/a4gl.4ae
%{_bindir}/aace
#%{_bindir}/aace_4gl
%{_bindir}/aace_perl
%{_bindir}/aace_runner
%{_bindir}/adbaccess
%{_bindir}/adbschema
%{_bindir}/adecompile
%{_bindir}/afinderr
%{_bindir}/amake
%{_bindir}/amkmessage
%{_bindir}/aperform
%{_bindir}/asql_g.4ae
%{_bindir}/aubit
%{_bindir}/aubit-config
%{_bindir}/configurator
%{_bindir}/convertsql
%{_bindir}/default_frm
%{_bindir}/ecpg_wrap
%{_bindir}/fcompile
%{_bindir}/fdecompile
%{_bindir}/fglproto
%{_bindir}/fshow
%{_bindir}/generate_aace
%{_bindir}/genmake
%{_bindir}/ide1.4ae
%{_bindir}/loadmap
%{_bindir}/mcompile
%{_bindir}/mdecompile
%{_bindir}/prepmake
%{_bindir}/process_report
%{_bindir}/quick_check_logrep
%{_bindir}/quickguide.4ae
%{_bindir}/report.pm
%{_bindir}/runner_fgl_wrapper
%{_bindir}/shtool
%{_bindir}/sql_parse
%{_bindir}/unmkmessage
%{_bindir}/using.pm
%{_mandir}/man1/*


%files devel
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*.h
%{_includedir}/%{name}/dataio/*.h
%{_libdir}/lib%{name}.so


%changelog
* Tue Oct 25 2022 Chad Lemmen <rpm@xxxxxxxxxxxx> - r12787-1
- initial Fedora RPM packaging


-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
https://bugzilla.redhat.com/show_bug.cgi?id=2119494
_______________________________________________
package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/package-review@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux