%define checkout 20150316git Name: gf-complete Version: 1.03 Release: 2.%{checkout}%{?dist} Summary: A library for Galois Field arithmetic License: BSD URL: http://lab.jerasure.org/jerasure/gf-complete # Loic haven't done any releases yet. So: # git archive -o ../gf-complete-1.03-20150316git.tar.gz --prefix=gf-complete-1.03-20150316git/ HEAD Source0: gf-complete-%{version}-%{checkout}.tar.gz BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool %description A comprehensive Open Source library for Galois Field arithmetic. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %package tools Summary: CLI tools for %{name} %description tools Various utilities that come with the %{name} library. %prep %setup -q -n %{name}-%{version}-%{checkout} %build autoreconf --force --install -I m4 %configure --disable-static sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool make %{?_smp_mflags} # We're supplied with test material, but have to run it manually using # mysterious parameters. There's no test harness of any kind. See Manual.pdf. #check #test/gf_unit 32 A -1 -m SPLIT 32 4 -r ALTMAP - %install %make_install find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' # We found no good way to inhibit building of examples, so we build # and kill them. We leave tool binaries in (they go in their own package). rm $RPM_BUILD_ROOT/%{_bindir}/gf_example_* %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc COPYING README %{_libdir}/*.so.* %files devel %doc COPYING README # Seems overkill and unnecessary to create a -doc subpackage for Manual.pdf. %doc Manual.pdf %{_includedir}/* %{_libdir}/*.so %files tools %doc COPYING README %{_bindir}/gf_add %{_bindir}/gf_div %{_bindir}/gf_inline_time %{_bindir}/gf_methods %{_bindir}/gf_mult %{_bindir}/gf_poly %{_bindir}/gf_time # We include gf_unit for now, discussing a test harness with Kevin. %{_bindir}/gf_unit %changelog * Mon Mar 16 2015 Pete Zaitcev 1.03-2.20150316git - Use repository at jerasure.org * Mon May 5 2014 Pete Zaitcev 1.02-1 - Initial release