# norootforbuild Name: libowfat Version: 0.30 %define pkg_version 0.30 Release: 1.1 # Group: Development/Libraries/C and C++ License: BSD # BuildRoot: %{_tmppath}/%{name}-%{version}-build Provides: %{name}-devel = %{version}-%{release} Provides: %{name}-devel-static = %{version}-%{release} # # Url: http://www.fefe.de/libowfat/ Source: http://www.fefe.de/libowfat/libowfat-%{version}.tar.xz Patch: libowfat-0.28_optflags.patch # Summary: A reimplementation libdjb %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. %prep %setup -q -n %{name}-%{pkg_version} %patch %build make OPTFLAGS="%{optflags} -fno-strict-aliasing" \ prefix="%{_prefix}" \ LIBDIR="%{_libdir}" \ MAN3DIR="%{_mandir}/man3" \ INCLUDEDIR="%{_includedir}/%{name}" havescope.h all %install make install OPTFLAGS="%{optflags} -fno-strict-aliasing" \ prefix="%{buildroot}%{_prefix}" \ LIBDIR="%{buildroot}%{_libdir}" \ MAN3DIR="%{buildroot}%{_mandir}/man3" \ INCLUDEDIR="%{buildroot}%{_includedir}/%{name}" %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root,-) %{_mandir}/man3/* %{_includedir}/%{name} %{_libdir}/libowfat.a %changelog * Wed Feb 10 2016 mrueckert@suse.de - update to 0.30 * Fri Jun 3 2011 mrueckert@suse.de - update to CVS snapshot from today * Tue Jul 13 2010 mrueckert@suse.de - initial package