%global gituser libyal %global gitname libcdata #release 20150104 #%global commit 1a9343ba70ffcbf24da7ef5693b10740cfaef654 #release 20160108 #%global commit e7f9107bd4f947004afcc6c12f13b7afc8788f16 #20160425 %global commit c4a17c07f28fc5b1af0f8ce9a94baf60f9cda431 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: libcdata Version: 20160425 Release: 2%{?dist} Summary: Libyal library for cross-platform C generic data functions Group: System Environment/Libraries License: LGPLv3+ #URL: https://github.com/libyal/libcdata URL: https://github.com/%{gituser}/%{gitname} Source0: https://github.com/%{gituser}/%{gitname}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz #Patch build to use the shared system libraries rather than using embedded ones Patch0: %{name}-libs.patch BuildRequires: pkgconfig BuildRequires: automake BuildRequires: gettext-devel BuildRequires: libtool BuildRequires: libcstring-devel BuildRequires: libcerror-devel BuildRequires: libcthreads-devel %description Library for cross-platform C generic data functions. %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name} = %{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 %setup -qn %{gitname}-%{commit} %patch0 -p 1 -b .libs ./autogen.sh %build %configure --disable-static --enable-wide-character-type make %{?_smp_mflags} %install make install DESTDIR=%{buildroot} INSTALL="install -p" find %{buildroot} -name '*.la' -exec rm -f {} ';' %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %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 Jun 20 2016 Michal Ambroz - 20160425-2 - add build dependencies * Mon Jun 20 2016 Michal Ambroz - 20160425-1 - bump to libewf release 20160224 * Sat Jun 06 2015 Michal Ambroz - 20150104-1 - Initial build for Fedora