libgdk-pixbuf/libgdk-pixbuf.spec

365 lines
12 KiB
RPMSpec

%define majversion %(echo %version | cut -d. -f 1-2)
Name: libgdk-pixbuf
Epoch: 1
Version: 2.42.12
Release: 1mamba
Summary: An image loading library
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.gnome.org
Source: https://download-fallback.gnome.org/sources/gdk-pixbuf/%{majversion}/gdk-pixbuf-%{version}.tar.xz
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libglib-devel
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel
BuildRequires: libtiff-devel
BuildRequires: shared-mime-info
## AUTOBUILDREQ-END
BuildRequires: vim
BuildRequires: xdg-utils
BuildRequires: %{_bindir}/rst2man
Requires: gdk-pixbuf = %{?epoch:%epoch:}%{version}-%{release}
%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 gdk-pixbuf
Summary: Tools for %{name}
Group: System/Tools
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n gdk-pixbuf
%{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.
%debug_package
%prep
%setup -q -n gdk-pixbuf-%{version}
%build
%meson \
-Dgtk_doc=true \
-Dbuiltin_loaders=all \
-Dinstalled_tests=false \
-Dintrospection=enabled \
-Dman=true \
-Dothers=enabled \
%ifarch aarch64
-Dgio_sniffing=false
%endif
# FIXME: -Dgio_sniffing=false fixes runtime on docker buildvm
%meson_build
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%meson_install
install -d -m0755 %{buildroot}%{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders
%find_lang gdk-pixbuf
# biarch support
install -d -m0755 %{buildroot}%{_libexecdir}
mv %{buildroot}%{_bindir}/gdk-pixbuf-query-loaders %{buildroot}%{_libexecdir}/gdk-pixbuf-query-loaders
ln -s %{_libexecdir}/gdk-pixbuf-query-loaders %{buildroot}%{_bindir}/gdk-pixbuf-query-loaders
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%post
/sbin/ldconfig
:
%postun
/sbin/ldconfig
:
%posttrans
if [ $1 -ge 1 ]; then
# legacy cleanups
rm -f /etc/gtk-2.0/gdk-pixbuf.loaders
rm -f /etc/gtk-3.0/gdk-pixbuf.loaders
rm -f /etc/gtk-4.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
:
%transfiletriggerin -- %{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders
%{_libexecdir}/gdk-pixbuf-query-loaders --update-cache
%transfiletriggerpostun -- %{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders
%{_libexecdir}/gdk-pixbuf-query-loaders --update-cache
%pre devel
if [ $1 -ge 1 ]; then
[ -L %{_bindir}/gdk-pixbuf-csource ] && rm -f %{_bindir}/gdk-pixbuf-csource
[ -L %{_bindir}/gdk-pixbuf-pixdata ] && rm -f %{_bindir}/gdk-pixbuf-pixdata
fi
:
%files
%defattr(-,root,root)
%{_libdir}/libgdk_pixbuf-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
%ghost %{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders.cache
%{_libdir}/girepository-1.0/GdkPixbuf-2.0.typelib
%{_libdir}/girepository-1.0/GdkPixdata-2.0.typelib
%{_libexecdir}/gdk-pixbuf-query-loaders
%doc COPYING
%files -n gdk-pixbuf -f gdk-pixbuf.lang
%defattr(-,root,root)
%{_bindir}/gdk-pixbuf-query-loaders
%{_bindir}/gdk-pixbuf-thumbnailer
%{_datadir}/thumbnailers/gdk-pixbuf-thumbnailer.thumbnailer
%{_mandir}/man1/gdk-pixbuf-query-loaders.1*
%files devel
%defattr(-,root,root)
%{_bindir}/gdk-pixbuf-csource
%{_bindir}/gdk-pixbuf-pixdata
%dir %{_includedir}/gdk-pixbuf-2.0
%dir %{_includedir}/gdk-pixbuf-2.0/gdk-pixbuf
%{_includedir}/gdk-pixbuf-2.0/gdk-pixbuf/*.h
%{_libdir}/libgdk_pixbuf-2.0.so
%{_datadir}/gir-1.0/GdkPixbuf-2.0.gir
%{_datadir}/gir-1.0/GdkPixdata-2.0.gir
%{_libdir}/pkgconfig/gdk-pixbuf-2.0.pc
%{_mandir}/man1/gdk-pixbuf-csource.1*
%doc NEWS
%files apidocs
%defattr(-,root,root)
%dir %{_docdir}/gdk-pixbuf
%{_docdir}/gdk-pixbuf/*
%dir %{_docdir}/gdk-pixdata
%{_docdir}/gdk-pixdata/*
%changelog
* Sat May 18 2024 Automatic Build System <autodist@openmamba.org> 2.42.12-1mamba
- automatic version update by autodist
* Sun Apr 21 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 2.42.11-2mamba
- added a patch to fix typo in build script
- added more configure options
- added triggers to gdk-pixbuf-query-loaders
* Fri Apr 19 2024 Automatic Build System <autodist@openmamba.org> 2.42.11-1mamba
- automatic update by autodist
* Wed Oct 26 2022 Automatic Build System <autodist@mambasoft.it> 2.42.10-1mamba
- automatic version update by autodist
* Tue Aug 16 2022 Automatic Build System <autodist@mambasoft.it> 2.42.9-1mamba
- automatic version update by autodist
* Sat Mar 19 2022 Automatic Build System <autodist@mambasoft.it> 2.42.8-1mamba
- automatic version update by autodist
* Fri May 21 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.42.6-1mamba
- update to 2.42.6
* Fri Mar 19 2021 Automatic Build System <autodist@mambasoft.it> 2.42.2-1mamba
- automatic version update by autodist
* Mon Nov 30 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.42.0-1mamba
- update to 2.42.0
* Sun May 10 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.40.0-1mamba
- update to 2.40.0
* Fri Feb 09 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 2.36.9-2mamba
- rebuilt to try to fix warning on libpng linking
* Sun Nov 19 2017 Automatic Build System <autodist@mambasoft.it> 2.36.9-1mamba
- automatic update by autodist
* 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
* Tue Oct 07 2003 Silvan Calarco <silvan.calarco@mambasoft.it> 0.22.0-1qilnx
- first build