%global gituser libyal %global gitname libcpath #20150101 #%global commit 626f55595a0d9129930c3c421e9b27a36a67b0f2 #20160425 %global commit 57207207d89a035e458cd37d17fb1002c7f15014 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: libcpath Version: 20160425 Release: 1%{?dist} Summary: Libyal library for cross-platform C path functions Group: System Environment/Libraries License: LGPLv3+ #URL: https://github.com/libyal/libcpath 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: gcc BuildRequires: make BuildRequires: pkgconfig BuildRequires: automake BuildRequires: libtool BuildRequires: gettext-devel BuildRequires: libcstring-devel BuildRequires: libcerror-devel BuildRequires: libclocale-devel BuildRequires: libcsplit-devel BuildRequires: libuna-devel %description Library for cross-platform C path functions. %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 %setup -qn %{gitname}-%{commit} %patch0 -p 1 -b .libs ./autogen.sh %build %configure --disable-static --enable-wide-character-type %make_build %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 Aug 01 2016 Michal Ambroz - 20160425-1 - bump to 20160425 * Sat Jun 06 2015 Michal Ambroz - 20150101-1 - Initial build for Fedora