bglibs/bglibs.spec

90 lines
2.2 KiB
RPMSpec
Raw Normal View History

%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 <bruce@untroubled.org>
%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 <tests@pialasse.com> 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.