%global commit ce78dd4913bd77271c07cd5a546ebcfae153c8e8 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: libtexpdf Version: 0~20210923g%{shortcommit} Release: 1%{?dist} Summary: A PDF authoring library extracted from TeX Live License: GPLv3 URL: https://github.com/sile-typesetter/%{name} Source0: https://github.com/sile-typesetter/%{name}/archive/%{commit}/%{name}-%{commit}.tar.gz BuildRequires: automake BuildRequires: gcc BuildRequires: libpng-devel BuildRequires: libtool %description libtexpdf is a PDF authoring library extracted from TeX's dvipdfmx as used by SILE. %package devel Summary: Development headers for libtexpdf Requires: %{name}%{?_isa} = %{version}-%{release} %description devel If you want to develop programs authoring PDF files using libtexpdf, you sohuld install libtexpdf-devel. You'll also need to install the libtexpdf package. %package static Summary: Static libtexpdf PDF authoring library Requires: %{name}-devel%{?_isa} = %{version}-%{release} %description static The libtexpdf-static package contains the statically linkable version of libtexpdf. Linking to static libraries is discouraged for most applicatoins, but it is sometimes necessary. %prep %autosetup -n %{name}-%{commit} %build autoreconf --install -W none %configure %make_build %install rm -rf %{buildroot} %make_install # We don't ship .la files rm -f %{buildroot}%{_libdir}/*.la %files %{_libdir}/libtexpdf.so %{_libdir}/libtexpdf.so.* %files devel %{_includedir}/* %files static %{_libdir}/libtexpdf*.a %changelog * Mon Oct 18 2021 Johannes Maibaum - 0~20210923gce78dd4-1 - Bump libtexpdf for sile 0.12.0 * Sat Jul 24 2021 Johannes Maibaum - 0~20210314gc4ff429-1 - Initial spec file for libtexpdf