public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/mingw-libtiff] f43: Fix %%files, modernize spec
@ 2026-07-14 6:01 Sandro Mani
0 siblings, 0 replies; only message in thread
From: Sandro Mani @ 2026-07-14 6:01 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/mingw-libtiff
Branch : f43
Commit : 867a59f08b82a2dda5ca4ed20cb467657b30c952
Author : Sandro Mani <manisandro@gmail.com>
Date : 2025-12-08T12:36:35+01:00
Stats : +22/-20 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/mingw-libtiff/c/867a59f08b82a2dda5ca4ed20cb467657b30c952?branch=f43
Log:
Fix %%files, modernize spec
---
diff --git a/mingw-libtiff.spec b/mingw-libtiff.spec
index 818a679..c73eb9c 100644
--- a/mingw-libtiff.spec
+++ b/mingw-libtiff.spec
@@ -1,4 +1,4 @@
-%?mingw_package_header
+%{?mingw_package_header}
Summary: MinGW Windows port of the LibTIFF library
Name: mingw-libtiff
@@ -10,17 +10,17 @@ Source: https://download.osgeo.org/libtiff/tiff-%{version}.tar.xz
BuildArch: noarch
-BuildRequires: make
+BuildRequires: make
BuildRequires: mingw32-zlib
BuildRequires: mingw32-libjpeg-turbo
-BuildRequires: mingw32-filesystem >= 95
+BuildRequires: mingw32-filesystem
BuildRequires: mingw32-gcc
BuildRequires: mingw32-gcc-c++
BuildRequires: mingw32-binutils
BuildRequires: mingw64-zlib
BuildRequires: mingw64-libjpeg-turbo
-BuildRequires: mingw64-filesystem >= 95
+BuildRequires: mingw64-filesystem
BuildRequires: mingw64-gcc
BuildRequires: mingw64-gcc-c++
BuildRequires: mingw64-binutils
@@ -77,11 +77,11 @@ Requires: mingw64-libtiff = %{version}-%{release}
Static version of the MinGW Windows LibTIFF library.
-%?mingw_debug_package
+%{?mingw_debug_package}
%prep
-%setup -q -n tiff-%{version}
+%autosetup -p1 -n tiff-%{version}
%build
@@ -92,27 +92,28 @@ export MINGW64_CFLAGS="%{mingw64_cflags} -fno-strict-aliasing"
%install
-%mingw_make_install DESTDIR=$RPM_BUILD_ROOT
+%mingw_make_install DESTDIR=%{buildroot}
# remove docs
-rm -rf $RPM_BUILD_ROOT%{mingw32_datadir}/doc
-rm -rf $RPM_BUILD_ROOT%{mingw32_mandir}
-rm -rf $RPM_BUILD_ROOT%{mingw64_datadir}/doc
-rm -rf $RPM_BUILD_ROOT%{mingw64_mandir}
+rm -rf %{buildroot}%{mingw32_datadir}/doc
+rm -rf %{buildroot}%{mingw32_mandir}
+rm -rf %{buildroot}%{mingw64_datadir}/doc
+rm -rf %{buildroot}%{mingw64_mandir}
# remove binaries
-rm -f $RPM_BUILD_ROOT%{mingw32_bindir}/*.exe
-rm -f $RPM_BUILD_ROOT%{mingw64_bindir}/*.exe
+rm -f %{buildroot}%{mingw32_bindir}/*.exe
+rm -f %{buildroot}%{mingw64_bindir}/*.exe
# Drop all .la files
-find $RPM_BUILD_ROOT -name "*.la" -delete
+find %{buildroot} -name "*.la" -delete
# Win32
%files -n mingw32-libtiff
-%doc COPYRIGHT README.md RELEASE-DATE VERSION TODO ChangeLog
-%{mingw32_bindir}/libtiff-5.dll
-%{mingw32_bindir}/libtiffxx-5.dll
+%doc README.md RELEASE-DATE VERSION TODO ChangeLog
+%license LICENSE.md
+%{mingw32_bindir}/libtiff-6.dll
+%{mingw32_bindir}/libtiffxx-6.dll
%{mingw32_includedir}/*
%{mingw32_libdir}/libtiff.dll.a
%{mingw32_libdir}/libtiffxx.dll.a
@@ -124,9 +125,10 @@ find $RPM_BUILD_ROOT -name "*.la" -delete
# Win64
%files -n mingw64-libtiff
-%doc COPYRIGHT README.md RELEASE-DATE VERSION TODO ChangeLog
-%{mingw64_bindir}/libtiff-5.dll
-%{mingw64_bindir}/libtiffxx-5.dll
+%doc README.md RELEASE-DATE VERSION TODO ChangeLog
+%license LICENSE.md
+%{mingw64_bindir}/libtiff-6.dll
+%{mingw64_bindir}/libtiffxx-6.dll
%{mingw64_includedir}/*
%{mingw64_libdir}/libtiff.dll.a
%{mingw64_libdir}/libtiffxx.dll.a
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-14 6:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-14 6:01 [rpms/mingw-libtiff] f43: Fix %%files, modernize spec Sandro Mani
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox