libowfat/libowfat.spec

83 lines
4.1 KiB
RPMSpec
Raw Permalink Normal View History

Name: libowfat
Version: 0.32
Release: 1mamba
Summary: Reimplement libdjb under GPL
Group: Development/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.fefe.de/libowfat/
Source: https://www.fefe.de/libowfat/libowfat-%{version}.tar.xz
License: GPL
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRequires: dietlibc-devel >= %{version}
%description
libowfat is a library of general purpose APIs extracted from Dan Bernstein's software, reimplemented and covered by the GNU General Public License Version 2 (no later versions).
The API has been slightly extended (for example, I provide a uint32_read function, and I extended the socket API to support IPv6) where I found it necessary or beneficial in a specific project.
Many of the functions I implement here have since been placed in the public domain, so there are other sources to get this code (except for my extensions obviously).
The implementations here may not be as portable as the original versions; I tend to focus on the Single Unix Specification and not on some obsolete legacy systems found in the basements of some vintage hardware clubs.
I also provide man pages for many functions, mostly extracted from Dan's web documentation or documentation found in earlier versions of his software.
For some reason, he abandoned man pages in favor of HTML recently.
On July 4 2002, Dan also placed his DNS routines and supporting low level functions in the public domain, so I copy them here instead of reimplementing them.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
%description devel
libowfat is a library of general purpose APIs extracted from Dan Bernstein's software, reimplemented and covered by the GNU General Public License Version 2 (no later versions).
The API has been slightly extended (for example, I provide a uint32_read function, and I extended the socket API to support IPv6) where I found it necessary or beneficial in a specific project.
Many of the functions I implement here have since been placed in the public domain, so there are other sources to get this code (except for my extensions obviously).
The implementations here may not be as portable as the original versions; I tend to focus on the Single Unix Specification and not on some obsolete legacy systems found in the basements of some vintage hardware clubs.
I also provide man pages for many functions, mostly extracted from Dan's web documentation or documentation found in earlier versions of his software.
For some reason, he abandoned man pages in favor of HTML recently.
On July 4 2002, Dan also placed his DNS routines and supporting low level functions in the public domain, so I copy them here instead of reimplementing them.
This package contains static libraries and header files need for development.
%prep
%setup -q
%build
%make -f GNUmakefile \
prefix=%{_libdir}/dietlibc \
LIBDIR=%{_libdir}/dietlibc/lib-%{_build_arch} \
DIET="%{_bindir}/diet -Os"
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeoldinstall -f GNUmakefile \
prefix=%{buildroot}%{_libdir}/dietlibc \
LIBDIR=%{buildroot}%{_libdir}/dietlibc/lib-%{_build_arch} \
MAN3DIR=%{buildroot}%{_mandir}/man3 \
DIET="%{_bindir}/diet -Os"
# fix conflicting file (from openssl-devel)
mv %{buildroot}%{_mandir}/man3/buffer.3 \
%{buildroot}%{_mandir}/man3/buffer-libowfat.3
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files devel
%defattr(-,root,root)
%{_libdir}/dietlibc/lib-%{_build_arch}/libowfat.a
%dir %{_libdir}/dietlibc/include/libowfat
%{_libdir}/dietlibc/include/libowfat/*.h
%{_mandir}/man3/*
%doc CHANGES COPYING README
%changelog
* Mon Dec 27 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.32-1mamba
- update to 0.32
* Tue Aug 28 2007 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 0.26-1mamba
- update to 0.26
* Wed Apr 28 2004 Davide Madrisan <davide.madrisan@qilinux.it> 0.19.2-1qilnx
- new version rebuild (dl.fefe.de is now reachable)
* Tue Apr 27 2004 Davide Madrisan <davide.madrisan@qilinux.it> 0.16-1qilnx
- first build