274 lines
10 KiB
RPMSpec
274 lines
10 KiB
RPMSpec
Name: xloadimage
|
|
Summary: Image viewer and processor
|
|
Version: 4.1
|
|
Release: 43%{?dist}
|
|
License: MIT
|
|
Source0: ftp://ftp.x.org/R5contrib/%{name}.%{version}.tar.gz
|
|
# Patches with number prefix come from Debian
|
|
# Many thanks to all those who have done work on this package over the years
|
|
Patch0: 01_libjpeg-support.dpatch
|
|
Patch1: 02_png-support.dpatch
|
|
Patch2: 03_security-strfoo.dpatch
|
|
Patch3: 04_previous-image.dpatch
|
|
Patch4: 05_idelay-manpage.dpatch
|
|
Patch5: 06_-Wall-cleanup.dpatch
|
|
Patch6: 07_SYSPATHFILE.dpatch
|
|
Patch7: 08_manpage-config-path.dpatch
|
|
Patch8: 09_xloadimagerc-path.dpatch
|
|
Patch9: 10_config.c-HOME-fix.dpatch
|
|
Patch10: 11_fork-implies-quiet.dpatch
|
|
Patch11: 12_fix-tile.dpatch
|
|
Patch12: 13_varargs-is-obsolete.dpatch
|
|
Patch13: 14_errno-not-extern.dpatch
|
|
Patch14: 15_CAN-2005-0638.dpatch
|
|
Patch15: 16_CAN-2005-0639.dpatch
|
|
Patch16: 17_security-sprintf.dpatch
|
|
Patch17: 18_manpage_fixes.dpatch
|
|
Patch18: 19_fix_root_c_resource_leak.dpatch
|
|
Patch19: xloadimage-4.1-ignore-dummy-copyright-variables.patch
|
|
Patch20: xloadimage-4.1-bracketfix.patch
|
|
Patch21: xloadimage-4.1-png-pkg-config.patch
|
|
Patch22: xloadimage-4.1-libtiff4.patch
|
|
Patch23: xloadimage-4.1-png-1.5.patch
|
|
Patch24: xloadimage-4.1-fix-mem-leak.patch
|
|
Patch25: xloadimage-4.1-sub-second-delay.patch
|
|
Patch26: xloadimage-c99.patch
|
|
Patch27: 22-include.patch
|
|
Patch28: 27_shrink-should-not-zoom-upwards.patch
|
|
Patch29: 28_correct-scaling-fullscreen.patch
|
|
Patch30: 29_fix-manpage-hyphens.patch
|
|
Patch31: 32_fix-spelling.patch
|
|
# There is no real upstream for xloadimage anymore, so this work probably stays here forever.
|
|
Patch32: xloadimage-4.1-c23.patch
|
|
URL: http://www.frostbytes.com/~jimf/xloadimage.html
|
|
%if 0%{?fedora} >= 18
|
|
BuildRequires: gcc
|
|
BuildRequires: libtiff-devel >= 4.0
|
|
%else
|
|
BuildRequires: libtiff-devel
|
|
%endif
|
|
BuildRequires: make
|
|
BuildRequires: libX11-devel, libpng-devel, libjpeg-devel
|
|
BuildRequires: libICE-devel
|
|
|
|
%description
|
|
Xloadimage is a utility which will view many different types of images
|
|
under X11, load images onto the root window, or dump processed images
|
|
into one of several image file formats. The current version can read
|
|
many different image file types.
|
|
|
|
A variety of options are available to modify images prior to viewing.
|
|
These options include clipping, dithering, depth reduction, zoom (either
|
|
X or Y axis independently or both at once), brightening or darkening,
|
|
and image merging. When applicable, these options are done automatically
|
|
(eg a color image to be displayed on a monochrome screen will be
|
|
dithered automatically).
|
|
|
|
%prep
|
|
%setup -q -n %{name}.%{version}
|
|
%patch -P0 -p1
|
|
%patch -P1 -p1
|
|
%patch -P2 -p1
|
|
%patch -P3 -p1
|
|
%patch -P4 -p1
|
|
%patch -P5 -p1
|
|
%patch -P6 -p1
|
|
%patch -P7 -p1
|
|
%patch -P8 -p1
|
|
%patch -P9 -p1
|
|
%patch -P10 -p1
|
|
%patch -P11 -p1
|
|
%patch -P12 -p1
|
|
%patch -P13 -p1
|
|
%patch -P14 -p1
|
|
%patch -P15 -p1
|
|
%patch -P16 -p1
|
|
%patch -P17 -p1
|
|
%patch -P18 -p1
|
|
%patch -P19 -p1
|
|
%patch -P20 -p1
|
|
%patch -P21 -p1 -b .png-pkg-config
|
|
%if 0%{?fedora} >= 18
|
|
%patch -P22 -p1 -b .tiff4
|
|
%endif
|
|
%patch -P23 -p1 -b .png15
|
|
%patch -P24 -p1 -b .fix-mem-leak
|
|
%patch -P25 -p1 -b .sub-second-delay
|
|
%patch -P26 -p1
|
|
%patch -P27 -p1
|
|
%patch -P28 -p1
|
|
%patch -P29 -p1
|
|
%patch -P30 -p1
|
|
%patch -P31 -p1
|
|
%patch -P32 -p1 -b .c23
|
|
|
|
chmod +x configure
|
|
|
|
%build
|
|
%configure
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
# First, the binaries:
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
install -m 0755 uufilter %{buildroot}%{_bindir}
|
|
install -m 0755 xloadimage %{buildroot}%{_bindir}
|
|
# Next, the symlinks
|
|
pushd %{buildroot}%{_bindir}
|
|
ln -s xloadimage xsetbg
|
|
ln -s xloadimage xview
|
|
popd
|
|
# The configuration file
|
|
mkdir -p %{buildroot}%{_sysconfdir}/X11/
|
|
install -m 0644 xloadimagerc %{buildroot}%{_sysconfdir}/X11/Xloadimage
|
|
# Now, the man pages
|
|
mkdir -p %{buildroot}%{_mandir}/man1/
|
|
install -m 0644 xloadimage.man %{buildroot}%{_mandir}/man1/xloadimage.1x
|
|
install -m 0644 uufilter.man %{buildroot}%{_mandir}/man1/uufilter.1x
|
|
# And some copies for the symlinks (we can't really make symlinks here because of how rpm
|
|
# compresses man pages)
|
|
cp -a %{buildroot}%{_mandir}/man1/xloadimage.1x %{buildroot}%{_mandir}/man1/xsetbg.1x
|
|
cp -a %{buildroot}%{_mandir}/man1/xloadimage.1x %{buildroot}%{_mandir}/man1/xview.1x
|
|
|
|
%files
|
|
%doc README mit.cpyrght
|
|
%{_bindir}/uufilter
|
|
%{_bindir}/xloadimage
|
|
%{_bindir}/xsetbg
|
|
%{_bindir}/xview
|
|
%config(noreplace) %{_sysconfdir}/X11/Xloadimage
|
|
%{_mandir}/man1/*
|
|
|
|
%changelog
|
|
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 4.1-43
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
|
|
|
|
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 4.1-42
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
|
|
|
|
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 4.1-41
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
|
|
|
* Mon Feb 24 2025 Tom Callaway <spot@fedoraproject.org> - 4.1-40
|
|
- bring over more Debian patches
|
|
- apply a lot of cleanups for c23 support
|
|
|
|
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 4.1-39
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
|
|
|
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.1-38
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
|
|
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.1-37
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.1-36
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.1-35
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
* Sun Nov 27 2022 Florian Weimer <fweimer@redhat.com> - 4.1-34
|
|
- Port to strict(er) C99 compilers (#2148739)
|
|
|
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.1-33
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.1-32
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.1-31
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
* Thu Jan 28 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.1-30
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.1-29
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.1-28
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.1-27
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.1-26
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.1-25
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.1-24
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.1-23
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.1-22
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.1-21
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.1-20
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1-19
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1-18
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1-17
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1-16
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1-15
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
* Mon Jan 21 2013 Adam Tkac <atkac redhat com> - 4.1-14
|
|
- rebuild due to "jpeg8-ABI" feature drop
|
|
|
|
* Wed Jan 2 2013 Tom Callaway <spot@fedoraproject.org> - 4.1-13
|
|
- fix memory leak caused by opening a lot of files at once then cycling through them with "N"
|
|
- enable support for sub-second-delay values
|
|
- thanks to Roger Heflin for both patches
|
|
|
|
* Tue Nov 27 2012 Tom Callaway <spot@fedoraproject.org> - 4.1-12
|
|
- fix png 1.5 support
|
|
|
|
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1-11
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
* Mon May 7 2012 Tom Callaway <spot@fedoraproject.org> - 4.1-10
|
|
- build against libtiff 4 (on Fedora 18+)
|
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1-9
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
* Thu Dec 08 2011 Tom Callaway <spot@fedoraproject.org> - 4.1-8
|
|
- fix configure and Makefile.in to use pkg-config info on libpng
|
|
|
|
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 4.1-7
|
|
- Rebuild for new libpng
|
|
|
|
* Tue Jun 28 2011 Tom Callaway <spot@fedoraproject.org> - 4.1-6
|
|
- comment out unused copyright variables
|
|
- add missing bracket in C_ARITH_CODING_SUPPORTED conditional in jpeg.c
|
|
|
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
* Wed Dec 10 2008 Tom "spot" Callaway <tcallawa@redhat.com> 4.1-2
|
|
- drop unnecessary BR: zlib-devel (dragged in by libpng-devel)
|
|
|
|
* Thu Dec 4 2008 Tom "spot" Callaway <tcallawa@redhat.com> 4.1-1
|
|
- Initial package for Fedora
|