Name: libfwnt Version: 20240415 Summary: Libyal library for Windows NT data types License: LGPL-3.0-or-later Group: System Environment/Libraries URL: https://github.com/libyal/libfwnt # https://github.com/libyal/libfwnt/releases %global gituser libyal %global gitname libfwnt %global gitdate %{version} %global commit 24d81387a2c8bbabad5e787e75967039e8bfae29 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Release: 1%{?dist} Source0: %{url}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz #Patch build to use the shared system libraries rather than using embedded ones Patch0: %{name}-000-libs.patch # Allow older autotools for EPEL builds Patch1: %{name}-001-configure.ac.patch BuildRequires: gcc BuildRequires: make BuildRequires: pkgconfig BuildRequires: automake BuildRequires: libtool BuildRequires: gettext-devel BuildRequires: libcerror-devel BuildRequires: libcthreads-devel BuildRequires: libcdata-devel BuildRequires: libcnotify-devel %description Library for Windows NT data types. %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} Requires: zlib-devel Requires: pkgconfig %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %autosetup -n %{gitname}-%{commit} #%%patch0 -p 1 -b .libs ./autogen.sh %build %configure --disable-static --enable-wide-character-type %make_build %install %make_install find %{buildroot} -name '*.la' -exec rm -f {} ';' %ldconfig_scriptlets %check make check %files %doc AUTHORS COPYING NEWS README %{_libdir}/*.so.* %files devel %{_includedir}/%{name}.h %{_includedir}/%{name}/ %{_libdir}/*.so %{_libdir}/pkgconfig/%{name}.pc %{_mandir}/man3/%{name}.3* %changelog * Mon May 13 2024 Michal Ambroz - 20240415-1 - bump to 20240415 * Mon Aug 01 2016 Michal Ambroz - 20160429-1 - bump to 20160429 * Sat Jun 06 2015 Michal Ambroz - 20150104-1 - Initial build for Fedora