%global srcver 2.0.2 %global commit c2156b4a133714d0a9c04a7cd341efb1af415a33 %global gitdate 20260222 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global githubproject dwbuiten/obuparse %global so_ver 2 Name: obuparse Version: %{srcver} Release: 0.%{gitdate}.git%{shortcommit}%{?dist}.1sunshine Summary: A simple and portable AV1 OBU parser License: ISC URL: https://github.com/%{githubproject} Source0: https://github.com/%{githubproject}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz Patch0: 0001-Makefile-allow-setting-libdir-and-LDFLAGS.patch BuildRequires: gcc %description A simple and portable AV1 OBU parser library. %package devel Summary: Development files for %{name} Group: Development/Libraries %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %setup -q -n %{name}-%{commit} %patch -P 0 -p1 -b.libdir %build %make_build EXTRA_LDFLAGS="%{build_ldflags}" CPPFLAGS="%{optflags}" %install %make_install PREFIX=%{buildroot}%{_prefix} LIBDIR=%{buildroot}%{_libdir} rm -f %{buildroot}%{_libdir}/*.a %ldconfig_scriptlets %files %license LICENSE %{_libdir}/*.so.%{so_ver}* %files devel %license LICENSE %{_includedir}/*.h %{_libdir}/*.so %changelog * Fri May 15 2026 Moritz Barsnick 2.0.2-0.20260222.gitc2156b4.1sunshine - initial RPM