Blame SPECS/woff2.spec

61c6f1
Name:           woff2
61c6f1
Version:        1.0.2
c02f31
Release:        5%{?dist}
61c6f1
Summary:        Web Open Font Format 2.0 library
61c6f1
61c6f1
License:        MIT
61c6f1
URL:            https://github.com/google/woff2
61c6f1
Source0:        https://github.com/google/woff2/archive/v%{version}/%{name}-%{version}.tar.gz
61c6f1
c02f31
# https://github.com/google/woff2/pull/121
61c6f1
Patch0:         covscan.patch
61c6f1
61c6f1
BuildRequires:  cmake
61c6f1
BuildRequires:  brotli-devel >= 1.0
61c6f1
61c6f1
%description
61c6f1
Web Open Font Format (WOFF) 2.0 is an update to the existing WOFF 1.0 with
61c6f1
improved compression that is achieved by using the Brotli algorithm. The primary
61c6f1
purpose of the WOFF2 format is to efficiently package fonts linked to Web
61c6f1
documents by means of CSS @font-face rules.
61c6f1
61c6f1
%package        devel
61c6f1
Summary:        Development files for %{name}
61c6f1
Requires:       %{name}%{?_isa} = %{version}-%{release}
61c6f1
61c6f1
%description    devel
61c6f1
Development files and utils for %{name}
61c6f1
61c6f1
%prep
61c6f1
%autosetup -p1 -n %{name}-%{version}
61c6f1
61c6f1
%build
61c6f1
mkdir -p %{_target_platform}
61c6f1
pushd %{_target_platform}
61c6f1
%cmake .. \
61c6f1
    -DCMAKE_INSTALL_PREFIX="%{_prefix}" \
61c6f1
    -DCMAKE_INSTALL_LIBDIR="%{_libdir}"
61c6f1
popd
61c6f1
61c6f1
make %{?_smp_mflags} -C %{_target_platform}
61c6f1
61c6f1
%install
61c6f1
%make_install -C %{_target_platform}
61c6f1
61c6f1
%files
61c6f1
%license LICENSE
61c6f1
%{_libdir}/libwoff2common.so.*
61c6f1
%{_libdir}/libwoff2dec.so.*
61c6f1
%{_libdir}/libwoff2enc.so.*
61c6f1
61c6f1
%files devel
61c6f1
%{_includedir}/woff2
61c6f1
%{_libdir}/libwoff2common.so
61c6f1
%{_libdir}/libwoff2dec.so
61c6f1
%{_libdir}/libwoff2enc.so
61c6f1
%{_libdir}/pkgconfig/libwoff2common.pc
61c6f1
%{_libdir}/pkgconfig/libwoff2dec.pc
61c6f1
%{_libdir}/pkgconfig/libwoff2enc.pc
61c6f1
61c6f1
%changelog
c02f31
* Mon Feb 01 2021 Eike Rathke <erack@redhat.com> - 1.0.2-5
c02f31
- Resolves: rhbz#1919435 bump NVR for rebuild
c02f31
61c6f1
* Wed Oct 10 2018 Tomas Popela <tpopela@redhat.com> - 1.0.2-4
61c6f1
- Fix Coverity scan issues
61c6f1
- Resolves: rhbz#1637782
61c6f1
61c6f1
* Mon Jul 16 2018 Tomas Popela <tpopela@redhat.com> - 1.0.2-3
61c6f1
- Rebuild for brotli update
61c6f1
61c6f1
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-2
61c6f1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
61c6f1
61c6f1
* Tue Nov 14 2017 Tomas Popela <tpopela@redhat.com> 1.0.2-1
61c6f1
- Update to 1.0.2
61c6f1
61c6f1
* Mon Oct 09 2017 Tomas Popela <tpopela@redhat.com> 1.0.1-1
61c6f1
- Initial import (rhbz#1499676)