b245442
%global _hardened_build 1
2b75540
%{!?__global_ldflags: %global __global_ldflags -Wl,-z,relro -Wl,-z,now}
b245442
7dd024c
Name:		SDL_image
0b5f347
Version:	1.2.12
c8be37d
Release:	30%{?dist}
7dd024c
Summary:	Image loading library for SDL
7dd024c
9796481
License:	LGPLv2+
7dd024c
URL:		http://www.libsdl.org/projects/SDL_image/
7dd024c
Source0:	http://www.libsdl.org/projects/%{name}/release/%{name}-%{version}.tar.gz
b9944a9
Patch0:         SDL_image-1.2.12-interlaced-png-warning-fix.patch
7dd024c
c65b1c5
BuildRequires:  gcc make
4d6a992
BuildRequires: 	SDL-devel >= 1.2.10
7dd024c
BuildRequires:	libjpeg-devel
7dd024c
BuildRequires:	libpng-devel
7dd024c
BuildRequires:	libtiff-devel
7dd024c
cd8f0ba
%description
cd8f0ba
Simple DirectMedia Layer (SDL) is a cross-platform multimedia library
cd8f0ba
designed to provide fast access to the graphics frame buffer and audio
cd8f0ba
device.  This package contains a simple library for loading images of
cd8f0ba
various formats (BMP, PPM, PCX, GIF, JPEG, PNG) as SDL surfaces.
cd8f0ba
7dd024c
cd8f0ba
%package devel
4d6a992
Summary:	Development files for %{name}
7dd024c
Requires:	%{name} = %{version}-%{release}
4d6a992
Requires:	SDL-devel >= 1.2.10
4692c43
Requires:	pkgconfig
7dd024c
cd8f0ba
cd8f0ba
%description devel
4d6a992
The %{name}-devel package contains libraries and header files for
4d6a992
developing applications that use %{name}.
cd8f0ba
cd8f0ba
7dd024c
%prep
cd8f0ba
%setup -q
b9944a9
%patch0 -p1
1f68f1f
7dd024c
cd8f0ba
%build
fe87b28
# XCF support is crashy in 1.2.4
f00ccce
%configure --disable-dependency-tracking	\
f00ccce
	--enable-tif				\
f00ccce
	--disable-jpg-shared			\
f00ccce
	--disable-png-shared			\
f00ccce
	--disable-tif-shared			\
363154d
	--disable-static                        \
363154d
	--disable-rpath
c65b1c5
# Remove useless /usr/lib64 rpath on 64bit archs
c65b1c5
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
c65b1c5
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
cd8f0ba
make %{?_smp_mflags}
cd8f0ba
7dd024c
cd8f0ba
%install
cd8f0ba
%makeinstall
cd8f0ba
mkdir -p $RPM_BUILD_ROOT%{_bindir}
cd8f0ba
./libtool --mode=install /usr/bin/install showimage $RPM_BUILD_ROOT%{_bindir}
cd8f0ba
4d6a992
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
cd8f0ba
7dd024c
09e7d88
%ldconfig_scriptlets
cd8f0ba
7dd024c
cd8f0ba
%files
c65b1c5
%doc README CHANGES
c65b1c5
%license COPYING
cd8f0ba
%{_bindir}/showimage
cd8f0ba
%{_libdir}/lib*.so.*
cd8f0ba
7dd024c
cd8f0ba
%files devel
cd8f0ba
%{_libdir}/lib*.so
4d6a992
%{_includedir}/SDL/
4692c43
%{_libdir}/pkgconfig/%{name}.pc
cd8f0ba
7dd024c
cd8f0ba
%changelog
c8be37d
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.12-30
c8be37d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
c8be37d
c65b1c5
* Thu Jul 29 2021 Hans de Goede <hdegoede@redhat.com> - 1.2.12-29
c65b1c5
- Fix FTBFS (disable rpath harder) (rhbz#1987360)
c65b1c5
30ed1c8
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.12-28
30ed1c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
30ed1c8
363154d
* Thu May 27 2021 Gwyn Ciesla <gwync@protonmail.com> - 1.2.12-27
363154d
- Disable rpath.
363154d
4bca51b
* Mon Jan 25 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.12-26
4bca51b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
4bca51b
12dbe0b
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.12-25
12dbe0b
- Second attempt - Rebuilt for
12dbe0b
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
12dbe0b
2e9c535
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.12-24
2e9c535
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2e9c535
b51b1c5
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.12-23
b51b1c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
b51b1c5
b02124f
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.12-22
b02124f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
b02124f
d21620a
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.12-21
d21620a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
d21620a
142a5f2
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.12-20
142a5f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
142a5f2
b01d249
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.2.12-19
b01d249
- Escape macros in %%changelog
b01d249
2025b1e
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.12-18
2025b1e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2025b1e
e24c224
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.12-17
e24c224
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
e24c224
99a6429
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.12-16
99a6429
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
99a6429
d48c513
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.12-15
d48c513
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
d48c513
a76f3b4
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.12-14
a76f3b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
a76f3b4
b9944a9
* Sat Dec 26 2015 Hans de Goede <hdegoede@redhat.com> - 1.2.12-13
b9944a9
- Fix runtime warnings when loading interlaced pngs (rhbz#829419)
b9944a9
a2387cc
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.12-12
a2387cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
a2387cc
2b75540
* Thu Oct 23 2014 Moez Roy <moez.roy@gmail.com> - 1.2.12-11
b245442
- Add global harderning flags
b245442
0575d23
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.12-9
0575d23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
0575d23
7e27b1e
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.12-8
7e27b1e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
7e27b1e
f938cd4
* Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.12-7
f938cd4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f938cd4
833de01
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.12-6
833de01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
833de01
e58969c
* Fri Jan 18 2013 Adam Tkac <atkac redhat com> - 1.2.12-5
e58969c
- rebuild due to "jpeg8-ABI" feature drop
e58969c
0275b3e
* Fri Dec 21 2012 Adam Tkac <atkac redhat com> - 1.2.12-4
0275b3e
- rebuild against new libjpeg
0275b3e
506e3d3
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.12-3
506e3d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
506e3d3
22dbf8d
* Mon May 07 2012 Jon Ciesla <limburgher@gmail.com> - 1.2.12-2
22dbf8d
- Rebuild for new libtiff.
22dbf8d
0b5f347
* Tue Jan 31 2012 Jon Ciesla <limburgher@gmail.com> - 1.2.12-1
0b5f347
- New upstream.
0b5f347
- libpng15 patch upstreamed.
0b5f347
0768508
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.10-4
0768508
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
0768508
Jon Ciesla aeba8e1
* Sun Nov 06 2011 Jon Ciesla <limb@jcomserv.net> - 1.2.10-3
Jon Ciesla aeba8e1
- Rebuilt for libpng 1.5.
Jon Ciesla aeba8e1
3903669
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.10-2
3903669
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
3903669
4692c43
* Mon Jan 18 2010 Brian Pepple <bpepple@fedoraproject.org> - 1.2.10-1
4692c43
- Update to 1.2.10.
4692c43
1f68f1f
* Sun Aug  9 2009 Brian Pepple <bpepple@fedoraproject.org> - 1.2.7-1
1f68f1f
- Update to 1.2.7.
1f68f1f
- Drop IMG_lbm patch.  Fixed upstream.
1f68f1f
- Drop buffer overflow patch.  Fixed upstream.
1f68f1f
34fe12c
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.6-8
34fe12c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
34fe12c
71efa02
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.6-7
71efa02
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
71efa02
a52599e
* Fri Feb  8 2008 Brian Pepple <bpepple@fedoraproject.org> - 1.2.6-6
a52599e
- Rebuild for gcc-4.3.
a52599e
e58b6a9
* Tue Jan 29 2008 Brian Pepple <bpepple@fedoraproject.org> - 1.2.6-5
e58b6a9
- Add patch to fix ILBM image buffer overflow. (#430693)
e58b6a9
1565df6
* Thu Jan 24 2008 Brian Pepple <bpepple@fedoraproject.org> - 1.2.6-4
e58b6a9
- Add patch to fix buffer-overflow. (#430100)
1565df6
961d9c9
* Tue Aug 21 2007 Brian Pepple <bpepple@fedoraproject.org> - 1.2.6-3
961d9c9
- Rebuild.
961d9c9
9796481
* Sun Aug  5 2007 Brian Pepple <bpepple@fedoraproject.org> - 1.2.6-2
9796481
- Update license tag.
9796481
3c55bf8
* Mon Jul 30 2007 Brian Pepple <bpepple@fedoraproject.org> - 1.2.6-1
3c55bf8
- Update to 1.2.6.
3c55bf8
- remove IMG_xpm patch.  fixed upstream.
3c55bf8
f00ccce
* Tue Dec 19 2006 Brian Pepple <bpepple@fedoraproject.org> - 1.2.5-4
f00ccce
- Disable run-time loading of libs. (#219902)
f00ccce
37f3735
* Tue Oct 31 2006 Brian Pepple <bpepple@fedoraproject.org> - 1.2.5-3
37f3735
- Add patch to fix IMG_ReadXPMFromArray crash. (#213282)
37f3735
95f2931
* Thu Aug 31 2006 Brian Pepple <bpepple@fedoraproject.org> - 1.2.5-2
95f2931
- Rebuild for FC6.
95f2931
4d6a992
* Sat Aug 26 2006 Brian Pepple <bpepple@fedoraproject.org> - 1.2.5-1
4d6a992
- Update to 1.2.5.
4d6a992
- Simplify description & summary for devel package.
4d6a992
- Update SDL version required.
4d6a992
- Use disable-static configure flag.
4d6a992
e8a8366
* Mon Feb 13 2006 Brian Pepple <bdpepple@ameritech.net> - 1.2.4-5
e8a8366
- rebuilt for new gcc4.1 snapshot and glibc changes
e8a8366
7dd024c
* Tue Sep 27 2005 Brian Pepple <bdpepple@ameritech.net> - 1.2.4-4
7dd024c
- Bump release so it upgrades from FC4.
7dd024c
- General spec formatting cleanup.
7dd024c
b70388b
* Sat Jun 25 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.2.4-2
b70388b
- Rebuild.
b70388b
fe87b28
* Sun Jun 19 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.2.4-1
fe87b28
- 1.2.4, patches obsolete.
fe87b28
- Bring back TIFF support (BuildRequire libtiff-devel).
fe87b28
- Build with dependency tracking disabled.
fe87b28
- Require exact EVR of main package in -devel.
fe87b28
bba2cf0
* Thu May 26 2005 Bill Nottingham <notting@redhat.com> 1.2.3-9
c374e9f
- rebuild
c374e9f
cd8f0ba
* Wed Feb  9 2005 Thomas Woerner <twoerner@redhat.com> 1.2.3-7
cd8f0ba
- rebuild
cd8f0ba
cd8f0ba
* Thu Sep 30 2004 Thomas Woerner <twoerner@redhat.com> 1.2.3-6
cd8f0ba
- moved to new autofoo utils
cd8f0ba
cd8f0ba
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cd8f0ba
- rebuilt
cd8f0ba
cd8f0ba
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
cd8f0ba
- rebuilt
cd8f0ba
cd8f0ba
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cd8f0ba
- rebuilt
cd8f0ba
cd8f0ba
* Wed Jun 18 2003 Thomas Woerner <twoerner@redhat.com> 1.2.3-3
cd8f0ba
- fixed build with automake-1.7
cd8f0ba
cd8f0ba
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
cd8f0ba
- rebuilt
cd8f0ba
cd8f0ba
* Tue May  6 2003 Thomas Woerner <twoerner@redhat.com> 1.2.3-1
cd8f0ba
- new version 1.2.3
cd8f0ba
cd8f0ba
* Mon Feb 17 2003 Elliot Lee <sopwith@redhat.com>
cd8f0ba
- ppc64 fix
cd8f0ba
cd8f0ba
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
cd8f0ba
- rebuilt
cd8f0ba
cd8f0ba
* Sun Dec 01 2002 Elliot Lee <sopwith@redhat.com>
cd8f0ba
- Remove unpackaged files
cd8f0ba
cd8f0ba
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
cd8f0ba
- automated rebuild
cd8f0ba
cd8f0ba
* Sun May 26 2002 Tim Powers <timp@redhat.com>
cd8f0ba
- automated rebuild
cd8f0ba
cd8f0ba
* Thu May 23 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.2.2-1
cd8f0ba
- 1.2.2
cd8f0ba
cd8f0ba
* Fri Mar  1 2002 Than Ngo <than@redhat.com> 1.2.1-4
cd8f0ba
- rebuild in new env
cd8f0ba
cd8f0ba
* Thu Jan 24 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.2.1-3
cd8f0ba
- Rebuild to get rid of superfluous dependencies
cd8f0ba
- Clean up spec file
cd8f0ba
cd8f0ba
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
cd8f0ba
- automated rebuild
cd8f0ba
cd8f0ba
* Mon Jan  7 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.2.1-1
cd8f0ba
- 1.2.1
cd8f0ba
- Require arts-devel rather than the obsolete kdelibs-sound-devel
cd8f0ba
cd8f0ba
* Fri Oct 26 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.2.0-4
cd8f0ba
- Rebuild with new libpng
cd8f0ba
cd8f0ba
* Tue Jul 24 2001 Bernhard Rosenkraenzer <bero@redhat.com>
cd8f0ba
- Add build requirements (#49827)
cd8f0ba
cd8f0ba
* Tue Jul 10 2001 Elliot Lee <sopwith@redhat.com>
cd8f0ba
- Rebuild
cd8f0ba
cd8f0ba
* Sun Apr 15 2001 Bernhard Rosenkraenzer <bero@redhat.com>
cd8f0ba
- 1.2.0
cd8f0ba
cd8f0ba
* Sun Jan  7 2001 Bernhard Rosenkraenzer <bero@redhat.com>
cd8f0ba
- 1.1.0
cd8f0ba
- Use %%post -p, %%postun -p
cd8f0ba
- devel requires %%{name} = %%{version} rather than just %%{name}
cd8f0ba
- enable tiff support
cd8f0ba
cd8f0ba
* Tue Dec 19 2000 Than Ngo <than@redhat.com>
b01d249
- added missing %%post and %%postun
cd8f0ba
cd8f0ba
* Wed Nov 29 2000 Than Ngo <than@redhat.com>
cd8f0ba
- first build for 7.1