%global commit 89ec7808e0affae7aac84b7d05248abed50ef578 %global commitdate 20190501 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: libg15 Version: 1.2.7 Release: 1.%{commitdate}git%{shortcommit}%{?dist} Summary: Library for accessing special functions on Logitech G15 keyboards License: GPLv2+ URL: https://sourceforge.net/projects/g15tools/ # Upstream has been dead for a while, this github repo contains several patches, # mainly to support various new variants of the keyboard Source0: https://github.com/jwrdegoede/libg15/archive/%{commit}/%{name}-%{shortcommit}.tar.gz BuildRequires: gcc libtool %description libg15 is a library for accessing the LCD and gaming keys on Logitech G15 (and similar) keyboards. %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}. %prep %autosetup -n %{name}-%{commit} autoreconf -ivf %build %configure --disable-static make %{?_smp_mflags} %install %make_install find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' %files %license COPYING %doc AUTHORS README %{_libdir}/*.so.* %files devel %{_includedir}/* %{_libdir}/*.so %changelog * Wed May 1 2019 Hans de Goede - 1.2.7-1.20190501git89ec780 - Initial libg15 Fedora package