Notification time stamped 2022-11-29 15:18:02 UTC
From d9d11e9215db53a55e71fd097fd1eb91d8a6d568 Mon Sep 17 00:00:00 2001
From: Benjamin A. Beasley <code(a)musicinmybrain.net>
Date: Nov 29 2022 03:47:48 +0000
Subject: General tidying of spec file
- Use modern macros
- Install HTML format description as documentation
---
diff --git a/woff.spec b/woff.spec
index e01647d..dc90c41 100644
--- a/woff.spec
+++ b/woff.spec
@@ -15,33 +15,41 @@ URL:
https://web.archive.org/web/20170630235618/%{original_url}
# There is no longer a working URL for this archive.
Source0: %{original_url}/woff-code-latest.zip
-BuildRequires: make
-BuildRequires: zlib-devel
+BuildRequires: make
BuildRequires: gcc
+BuildRequires: zlib-devel
+
%description
Encoding and Decoding for Web Open Font Format(Woff)
%prep
-%autosetup -c
+%autosetup -c
+
%build
-make CFLAGS="${RPM_OPT_FLAGS}" %{?_smp_mflags}
+%set_build_flags
+%make_build CFLAGS="${CFLAGS}"
%install
-mkdir -m 755 -p $RPM_BUILD_ROOT/%{_bindir}
-install -m755 sfnt2woff woff2sfnt $RPM_BUILD_ROOT/%{_bindir}/
+# The Makefile has no install target.
+install -d '%{buildroot}%{_bindir}'
+install -t '%{buildroot}%{_bindir}' -p sfnt2woff woff2sfnt
+
%files
-%doc
+%doc woff-2009-10-03.html
%{_bindir}/sfnt2woff
%{_bindir}/woff2sfnt
+
%changelog
* Tue Nov 29 2022 Benjamin A. Beasley <code(a)musicinmybrain.net> - 0.20091126-27
- Clarify URL/Source situation, and do not claim to have a working source
archive URL
+- General tidying of spec file; use modern macros and install HTML format
+ description as documentation
* Sat Jul 23 2022 Fedora Release Engineering <releng(a)fedoraproject.org> -
0.20091126-26
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
https://src.fedoraproject.org/rpms/woff/c/d9d11e9215db53a55e71fd097fd1eb9...