diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..f087b42 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.tar.gz filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1534ba5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.rpm +*.log +*spec-20* diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a678d71 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for source rpm: bglibs +# $Id: Makefile,v 1.1 2016/02/03 21:28:06 vip-ire Exp $ +NAME := bglibs +SPECFILE = $(firstword $(wildcard *.spec)) + +define find-makefile-common +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +endef + +MAKEFILE_COMMON := $(shell $(find-makefile-common)) + +ifeq ($(MAKEFILE_COMMON),) +# attept a checkout +define checkout-makefile-common +test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 +endef + +MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) +endif + +include $(MAKEFILE_COMMON) diff --git a/README.md b/README.md index 26e4efa..697b319 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,11 @@ # bglibs -3rd Party (Maintained by Koozali) git repo for bglibs smeserver \ No newline at end of file +3rd Party (Maintained by Koozali) git repo for bglibs smeserver + +## Description + +
*This description has been generated by an LLM AI system and cannot be relied on to be fully correct.* +*Once it has been checked, then this comment will be deleted* +
+ +bglibs is a software package that provides a range of basic functions for the development of graphics-based applications. It includes a library of functions for drawing lines, circles, rectangles and text, as well as functions for creating and manipulating images. It also provides support for loading and saving various image formats, and other basic image manipulation functions. diff --git a/bglibs-2.04-mock.patch b/bglibs-2.04-mock.patch new file mode 100644 index 0000000..5a9c1a8 --- /dev/null +++ b/bglibs-2.04-mock.patch @@ -0,0 +1,12 @@ +--- bglibs-2.04.old/selftests.sh 2018-02-23 11:24:55.000000000 -0500 ++++ bglibs-2.04/selftests.sh 2022-03-05 21:25:11.625000000 -0500 +@@ -10,6 +10,9 @@ + trap 'echo "Cleaning up $t"; rm -r $t' EXIT + + do_test() { ++ if [ $1 == 'net/resolve_ipv4addr.c' ]; then ++ return 0 ++ fi + echo "Testing $1" + rm -f $t/* + diff --git a/bglibs-2.04.tar.gz b/bglibs-2.04.tar.gz new file mode 100644 index 0000000..be437c3 --- /dev/null +++ b/bglibs-2.04.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e4ae34a4c43f72ff0c5f100b3ac432460e7d736a7f0708d5e429c97dd5c52474 +size 713673 diff --git a/bglibs.spec b/bglibs.spec new file mode 100644 index 0000000..9a500b3 --- /dev/null +++ b/bglibs.spec @@ -0,0 +1,89 @@ +%define basedir /usr/local/bglibs +%define _libdir %{basedir}/lib +%define _includedir %{basedir}/include + +Name: bglibs +Summary: BG Libraries Collection +Version: 2.04 +Release: 1 +License: GPL +Group: Development/Libraries +Source: http://untroubled.org/%{name}/%{name}-%{version}.tar.gz +Patch0: bglibs-2.04-mock.patch +BuildRoot: %{_tmppath}/%{name}-buildroot +BuildRequires: libtool +BuildRequires: glibc glibc-static glibc-devel +BuildRequires: mtools autoconf +URL: http://untroubled.org/%{name}/ +Packager: Bruce Guenter + +%description +BG Libraries Collection + +%package devel +Summary: Development includes and libraries for bglibs +Requires: bglibs = %{version} +Group: Development/Libraries + +%description devel +The bglibs-devel package contains the header and object files necessary +for developing programs which use the bglibs libraries. + +%prep +%setup +%patch0 -p1 +echo gcc "%{optflags}" -g >conf-cc +echo gcc -g -L. >conf-ld +echo %{_includedir} >conf-include +echo %{_libdir} >conf-lib +echo %{_bindir} >conf-bin +echo %{_mandir} >conf-man + +%build +make + +%install +rm -fr %{buildroot} +make install_prefix=%{buildroot} install + +cp -a doc %{buildroot}%{basedir} + +%clean +rm -rf %{buildroot} + +%post +fgrep -x /usr/local/bglibs/lib /etc/ld.so.conf >/dev/null \ +|| echo /usr/local/bglibs/lib >>/etc/ld.so.conf +/sbin/ldconfig + +%files +%defattr(-,root,root) +%doc ANNOUNCEMENT COPYING NEWS README +%{basedir}/lib/*.so.* +%{_bindir}/bg-installer + +%files devel +%defattr(-,root,root) +%{basedir}/doc +%{basedir}/include +%{basedir}/lib/*.a +%{basedir}/lib/*.la +#%{basedir}/lib/*.lib +%{basedir}/lib/*.so +#%{basedir}/lib/*/*.a +%{_bindir}/cli-generate +%{_bindir}/crc-gentab +%{_mandir}/*/* + +%changelog +* Wed Jul 12 2023 BogusDateBot +- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, + by assuming the date is correct and changing the weekday. + +* Sat Mar 05 2022 Jean-Philippe Pialasse 2.04-1.sme +- initial build for SME10 [SME: 11883] + patched selftests.sh to avoid net/resolve_ipv4addr.c test which fails under mock + added BuildRequires glibc glibc-static glibc-devel mtools autoconf + commented out files for devel %{basedir}/lib/*.lib and %{basedir}/lib/*/*.a + as they fails. + diff --git a/contriborbase b/contriborbase new file mode 100644 index 0000000..ef36a67 --- /dev/null +++ b/contriborbase @@ -0,0 +1 @@ +sme10