%global commit 9a14622852538fccdad2fc13e68ffde6b2bf4571 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global commit_count 8 Name: libfragmentzip Version: 0.0 Release: 1.git%{shortcommit}%{?dist} Summary: A library allowing to download single files from a remote zip archive License: LGPLv3 URL: https://github.com/tihmstar/libfragmentzip Source0: https://github.com/tihmstar/libfragmentzip/archive/%{commit}.tar.gz Patch0: 01-configure.ac-remove-git-references.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool BuildRequires: git BuildRequires: libcurl-devel BuildRequires: libzip-devel BuildRequires: zlib-devel %description A library allowing to download single files from a remote zip archive %package devel Summary: Development package for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Files for development with %{name}. %prep %autosetup -n %{name}-%{commit} ./autogen.sh %build %configure --disable-static %make_build %install %make_install find %{buildroot} -name '*.la' -delete %files %license COPYING %doc README %{_libdir}/%{name}.so.* %files devel %{_libdir}/pkgconfig/%{name}.pc %{_libdir}/%{name}.so %{_includedir}/%{name} %{_includedir}/%{name}/%{name}.h %changelog * Fri Aug 30 2019 Carlos Mogas da Silva - 0.1-1.git9a14622 - Initial release