libgdk-pixbuf/libgdk-pixbuf.spec

399 lines
13 KiB
RPMSpec

%define majversion %(echo %version | cut -d. -f 1-2)
%ifarch x86_64
%define arch_suffix -64
%else
%define arch_suffix -32
%endif
Name: libgdk-pixbuf
Epoch: 1
Version: 2.36.8
Release: 1mamba
Summary: An image loading library
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://slackpacks.tchelinux.com.br/gdk-pixbuf
Source: ftp://ftp.gnome.org/pub/gnome/sources/gdk-pixbuf/%{majversion}/gdk-pixbuf-%{version}.tar.xz
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libX11-devel
BuildRequires: libXau-devel
BuildRequires: libXdmcp-devel
BuildRequires: libblkid-devel
BuildRequires: libbsd-devel
BuildRequires: libffi-devel
BuildRequires: libglib-devel
BuildRequires: libjasper-devel
BuildRequires: libjpeg-devel
BuildRequires: libmount-devel
BuildRequires: libpcre-devel
BuildRequires: libpng-devel
BuildRequires: libselinux-devel
BuildRequires: libsepol-devel
BuildRequires: libuuid-devel
BuildRequires: libxcb-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
#BuildRequires: libdb47-devel
BuildRequires: vim
#%ifarch x86_64
#BuildRequires: gcc-multilib
#BuildRequires: glibc-multilib-devel
#BuildRequires: lib32-libglib-devel
#BuildRequires: lib32-libpng-devel
#BuildRequires: lib32-libjpeg-turbo-devel
#BuildRequires: lib32-libtiff-devel
#%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-root
# checking for mediaLib 2.3... checking for mlib_ImageSetStruct in -lmlib... no
# see http://docs.sun.com/app/docs/doc/816-5173/libmlib-3lib?l=en&a=view
# Require gobject-introspection >= 0.9.5
%description
%{name} is an image loading library that can be extended by loadable modules for new image formats. It is used by toolkits such as GTK+ or clutter.
%package devel
Summary: Devel package for %{name}
Group: Development/Libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
%{name} is an image loading library that can be extended by loadable modules for new image formats. It is used by toolkits such as GTK+ or clutter.
This package contains libraries and header files need for development.
%package -n lib32-%{name}
Summary: An image loading library
Group: System/Libraries
%description -n lib32-%{name}
An image loading library.
%package -n lib32-%{name}-devel
Summary: Devel package for lib32-%{name}
Group: Development/Libraries
Requires: lib32-%{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: %{name}-devel = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib32-%{name}-devel
%{name} is an image loading library that can be extended by loadable modules for new image formats. It is used by toolkits such as GTK+ or clutter.
This package contains libraries and header files need for development.
%package apidocs
Summary: %{name} API documentation
Group: Documentation
%description apidocs
This package contains %{name} API documentation.
%prep
%setup -q -n gdk-pixbuf-%{version}
%build
%configure \
--enable-gtk-doc \
--with-libjasper \
--with-x11 \
--program-suffix=%{arch_suffix}
%make
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%makeinstall \
RUN_QUERY_LOADER_TEST=false
touch %{buildroot}%{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders.cache
%find_lang gdk-pixbuf
#%ifarch x86_64
## x86_64 lib64 support
#make clean
#CC=%{_target_platform}-gcc \
#CFLAGS="%{optflags} -m32" \
#CXXFLAGS="%{optflags} -m32" \
#./configure \
# --prefix=%{_prefix} \
# --libdir=%{_prefix}/lib \
# --with-x11 \
# --disable-introspection \
# --program-suffix=-i586
#
#make
#make install DESTDIR=`pwd`/lib32 RUN_QUERY_LOADER_TEST=false
#cp -a lib32/%{_prefix}/lib %{buildroot}%{_prefix}/
#%endif
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%post
/sbin/ldconfig
:
%postun
/sbin/ldconfig
:
%posttrans
if [ $1 -ge 1 ]; then
%ifarch %{ix86}
if [ ! -e /usr/lib64/gdk-pixbuf-2.0/2.10.0/loaders.cache ]; then
%endif
ln -snf gdk-pixbuf-query-loaders%{arch_suffix} %{_bindir}/gdk-pixbuf-query-loaders
%ifarch %{ix86}
fi
%endif
%{_bindir}/gdk-pixbuf-query-loaders%{arch_suffix} --update-cache || :
# legacy cleanups
rm -f /etc/gtk-2.0/gdk-pixbuf.loaders
rm -f /etc/gtk-3.0/gdk-pixbuf.loaders
rm -f /etc/gtk-2.0/%{_target_platform}/gdk-pixbuf.loaders
rm -f /etc/gtk-3.0/%{_target_platform}/gdk-pixbuf.loaders
rmdir /etc/gtk-2.0/%{_target_platform} 2>/dev/null || true
rmdir /etc/gtk-3.0/%{_target_platform} 2>/dev/null || true
fi
:
%posttrans devel
if [ $1 -ge 1 ]; then
%ifarch %{ix86}
if [ ! -e /usr/lib64/gdk-pixbuf-2.0/2.10.0/loaders.cache ]; then
%endif
ln -snf gdk-pixbuf-csource%{arch_suffix} %{_bindir}/gdk-pixbuf-csource
ln -snf gdk-pixbuf-pixdata%{arch_suffix} %{_bindir}/gdk-pixbuf-pixdata
%ifarch %{ix86}
fi
%endif
fi
:
%post -n lib32-%{name} -p /sbin/ldconfig
%postun -n lib32-%{name} -p /sbin/ldconfig
%files -f gdk-pixbuf.lang
%defattr(-,root,root)
%{_bindir}/gdk-pixbuf-query-loaders%{arch_suffix}
%{_bindir}/gdk-pixbuf-thumbnailer%{arch_suffix}
%{_libdir}/libgdk_pixbuf-2.0.so.*
%{_libdir}/libgdk_pixbuf_xlib-2.0.so.*
%dir %{_libdir}/gdk-pixbuf-2.0
%dir %{_libdir}/gdk-pixbuf-2.0/2.10.0
%dir %{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders
%{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-*.so
%ghost %{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders.cache
%{_libdir}/girepository-1.0/GdkPixbuf-2.0.typelib
%{_datadir}/thumbnailers/gdk-pixbuf-thumbnailer.thumbnailer
%{_mandir}/man1/gdk-pixbuf-query-loaders%{arch_suffix}.1*
%doc AUTHORS COPYING
%files devel
%defattr(-,root,root)
%{_bindir}/gdk-pixbuf-csource%{arch_suffix}
%{_bindir}/gdk-pixbuf-pixdata%{arch_suffix}
%dir %{_includedir}/gdk-pixbuf-2.0
%dir %{_includedir}/gdk-pixbuf-2.0/gdk-pixbuf
%{_includedir}/gdk-pixbuf-2.0/gdk-pixbuf/*.h
%dir %{_includedir}/gdk-pixbuf-2.0/gdk-pixbuf-xlib
%{_includedir}/gdk-pixbuf-2.0/gdk-pixbuf-xlib/*.h
%{_libdir}/libgdk_pixbuf-2.0.so
%{_libdir}/libgdk_pixbuf_xlib-2.0.so
%{_libdir}/libgdk_pixbuf-2.0.la
%{_libdir}/libgdk_pixbuf_xlib-2.0.la
%{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-*.la
%{_datadir}/gir-1.0/GdkPixbuf-2.0.gir
%{_libdir}/pkgconfig/gdk-pixbuf-2.0.pc
%{_libdir}/pkgconfig/gdk-pixbuf-xlib-2.0.pc
%{_mandir}/man1/gdk-pixbuf-csource%{arch_suffix}.1*
%doc NEWS
%files apidocs
%defattr(-,root,root)
%dir %{_datadir}/gtk-doc/html/gdk-pixbuf
%{_datadir}/gtk-doc/html/gdk-pixbuf/*
#%ifarch x86_64
#%files -n lib32-%{name}
#%defattr(-,root,root)
#%{_prefix}/lib/libgdk_pixbuf-2.0.so.*
#%{_prefix}/lib/libgdk_pixbuf_xlib-2.0.so.*
#%dir %{_prefix}/lib/gdk-pixbuf-2.0/2.10.0/loaders
#%{_prefix}/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-*.so
#%files -n lib32-%{name}-devel
#%defattr(-,root,root)
#%{_prefix}/lib/libgdk_pixbuf-2.0.so
#%{_prefix}/lib/libgdk_pixbuf_xlib-2.0.so
#%{_prefix}/lib/libgdk_pixbuf-2.0.la
#%{_prefix}/lib/libgdk_pixbuf_xlib-2.0.la
#%{_prefix}/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-*.la
#%{_prefix}/lib/pkgconfig/gdk-pixbuf-2.0.pc
#%{_prefix}/lib/pkgconfig/gdk-pixbuf-xlib-2.0.pc
#%endif
%changelog
* Fri Aug 11 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 2.36.8-1mamba
- update to 2.36.8
* Sat Apr 30 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.34.0-1mamba
- update to 2.34.0
* Mon Jun 01 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.30.8-6mamba
- run gtk-pixbuf-query-loaders with default directory
* Thu May 28 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.30.8-5mamba
- multiarch cohexistence of gdk-pixbuf.loaders
* Fri Apr 03 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.30.8-4mamba
- fix posttrans creation of gtk-pixbuf-{csource,pixdata} links
* Tue Mar 31 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.30.8-3mamba
- use -32 or -64 suffix as more widely used
* Thu Mar 26 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.30.8-2mamba
- provide gdk-pixbuf-query-loaders with arch suffix to support biarch environment
* Tue May 27 2014 Automatic Build System <autodist@mambasoft.it> 2.30.8-1mamba
- automatic version update by autodist
* Tue Mar 25 2014 Automatic Build System <autodist@mambasoft.it> 2.30.7-1mamba
- automatic version update by autodist
* Tue Mar 04 2014 Automatic Build System <autodist@mambasoft.it> 2.30.6-1mamba
- automatic version update by autodist
* Tue Feb 18 2014 Automatic Build System <autodist@mambasoft.it> 2.30.5-1mamba
- automatic version update by autodist
* Tue Feb 04 2014 Automatic Build System <autodist@mambasoft.it> 2.30.4-1mamba
- automatic version update by autodist
* Tue Jan 14 2014 Automatic Build System <autodist@mambasoft.it> 2.30.3-1mamba
- automatic version update by autodist
* Tue Dec 17 2013 Automatic Build System <autodist@mambasoft.it> 2.30.2-1mamba
- automatic version update by autodist
* Mon Nov 11 2013 Automatic Build System <autodist@mambasoft.it> 2.30.1-1mamba
- automatic version update by autodist
* Mon Oct 28 2013 Automatic Build System <autodist@mambasoft.it> 2.30.0-1mamba
- automatic version update by autodist
* Tue Oct 22 2013 Automatic Build System <autodist@mambasoft.it> 2.29.3-1mamba
- automatic update by autodist
* Thu May 02 2013 Automatic Build System <autodist@mambasoft.it> 2.29.0-1mamba
- automatic version update by autodist
* Mon Apr 15 2013 Automatic Build System <autodist@mambasoft.it> 2.28.1-1mamba
- automatic version update by autodist
* Tue Mar 26 2013 Automatic Build System <autodist@mambasoft.it> 2.28.0-1mamba
- automatic version update by autodist
* Tue Mar 19 2013 Automatic Build System <autodist@mambasoft.it> 2.27.3-1mamba
- automatic version update by autodist
* Fri Mar 08 2013 Automatic Build System <autodist@mambasoft.it> 2.27.2-1mamba
- automatic version update by autodist
* Mon Feb 11 2013 Automatic Build System <autodist@mambasoft.it> 2.27.1-1mamba
- automatic version update by autodist
* Mon Feb 11 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.26.5-1mamba
- update to 2.26.5
- downgrade to stable release to fix
- don't build png as included loader
* Sat Feb 02 2013 Automatic Build System <autodist@mambasoft.it> 2.27.1-1mamba
- automatic version update by autodist
* Sun Jan 20 2013 Automatic Build System <autodist@mambasoft.it> 2.27.0-1mamba
- automatic version update by autodist
* Sat Nov 10 2012 Automatic Build System <autodist@mambasoft.it> 2.26.5-1mamba
- automatic version update by autodist
* Tue Sep 18 2012 Automatic Build System <autodist@mambasoft.it> 2.26.4-1mamba
- automatic version update by autodist
* Tue Aug 21 2012 Automatic Build System <autodist@mambasoft.it> 2.26.3-1mamba
- automatic version update by autodist
* Mon Aug 06 2012 Automatic Build System <autodist@mambasoft.it> 2.26.2-1mamba
- automatic version update by autodist
* Sat Apr 14 2012 Automatic Build System <autodist@mambasoft.it> 2.26.1-1mamba
- automatic version update by autodist
* Mon Apr 02 2012 Automatic Build System <autodist@mambasoft.it> 2.26.0-1mamba
- automatic version update by autodist
* Wed Mar 14 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 2.24.1-2mamba
- rebuilt with --with-x11
* Mon Mar 12 2012 Automatic Build System <autodist@mambasoft.it> 2.24.1-1mamba
- update to 2.24.1
* Mon Dec 12 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 2.24.0-2mamba
- move gir file from devel to main package
* Sat Aug 27 2011 Automatic Build System <autodist@mambasoft.it> 2.24.0-1mamba
- automatic version update by autodist
* Tue Jun 28 2011 Automatic Build System <autodist@mambasoft.it> 2.23.5-1mamba
- automatic update by autodist
* Tue Jun 14 2011 Automatic Build System <autodist@mambasoft.it> 2.23.4-1mamba
- automatic update by autodist
* Tue Apr 05 2011 Automatic Build System <autodist@mambasoft.it> 2.23.3-1mamba
- automatic update by autodist
* Sat Nov 06 2010 Automatic Build System <autodist@mambasoft.it> 2.22.1-1mamba
- automatic update to 2.22.1 by autodist
* Wed Oct 06 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 2.22.0-3mamba
- remove static package containing libtool *.la files that are needed in devel
* Mon Oct 04 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 2.22.0-2mamba
- imported in openmamba devel
* Wed Sep 29 2010 gil <puntogil@libero.it> 2.22.0-1mamba
- update to 2.22.0
- renamed libgdk-pixbuf2
* Fri Jul 02 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.22.0-8mamba
- rebuilt with libpng 1.4
* Mon Jun 08 2009 Automatic Build System <autodist@mambasoft.it> 0.22.0-7mamba
- automatic rebuild by autodist
* Sun Jun 22 2008 Fabio Giani <fabio.giani@gmail.com> 0.22.0-6mamba
- update Vendor, Distribution, Packager, buildrequirements list
* Thu Apr 27 2006 Davide Madrisan <davide.madrisan@qilinux.it> 0.22.0-5qilnx
- p4
* Tue Apr 12 2005 Davide Madrisan <davide.madrisan@qilinux.it> 0.22.0-4qilnx
- fixed security issue QSA-2005-040 (CAN-2005-0891)
* Thu Nov 25 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 0.22.0-3qilnx
- rebuilt removing wrong buildconflict libgnome1-devel (??)
* Tue Oct 19 2004 Davide Madrisan <davide.madrisan@qilinux.it> 0.22.0-2qilnx
- security fixes: QSA-2004-048 (CAN-2004-0753, CAN-2004-[0782,0783,0788])
- add post/postun
- own /usr/lib/gdk-pixbuf, /usr/lib/gdk-pixbuf/loaders
- fixed underquoted m4 definition
- HTML documentation moved to devel package
* Mon Oct 07 2003 Silvan Calarco <silvan.calarco@mambasoft.it> 0.22.0-1qilnx
- first build