gdk-pixbuf2/gdk-pixbuf2.spec

179 lines
5.2 KiB
RPMSpec
Raw Normal View History

%global glib2_version 2.56.0
2019-09-30 10:39:35 -04:00
Name: gdk-pixbuf2
2023-01-31 16:27:23 +08:00
Version: 2.42.10
Release: 4
2019-09-30 10:39:35 -04:00
Summary: gdk is a multi-platform toolkit for creating graphical user interfaces.
License: LGPLv2+
URL: https://gitlab.gnome.org/GNOME/gdk-pixbuf
2022-04-13 12:18:34 +08:00
Source0: https://download.gnome.org/sources/gdk-pixbuf/2.42/gdk-pixbuf-%{version}.tar.xz
2024-06-26 12:07:52 +08:00
Patch6000: backport-CVE-2022-48622.patch
BuildRequires: docbook-style-xsl
BuildRequires: gettext
BuildRequires: pkgconfig(gio-2.0) >= %{glib2_version}
BuildRequires: libpng-devel
BuildRequires: libjpeg-devel
BuildRequires: libtiff-devel
BuildRequires: libxslt
BuildRequires: meson
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: shared-mime-info
2023-01-31 16:27:23 +08:00
BuildRequires: cmake gi-docgen python3-docutils
2022-04-13 12:18:34 +08:00
Requires: glib2%{?_isa} >= %{glib2_version}
Requires: shared-mime-info
2019-09-30 10:39:35 -04:00
%description
gdk is written in C but has been designed from the ground up to support a wide range of languages.
It provide a complete set of widgets,and suitable for projects ranging from small one-off
tools to complete application suites.
%package modules
Summary: Additional image modules for gdk-pixbuf2
Requires: %{name}%{?_isa} = %{version}-%{release}
%description modules
This package contains the additional modules that are needed to load various
image formats such as ICO and JPEG.
2019-09-30 10:39:35 -04:00
%package devel
Summary: Development files for gdk-pixbuf2
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: glib2-devel%{?_isa} >= %{glib2_version}
%description devel
2019-09-30 10:39:35 -04:00
This package contains libraries and header files needed for doing development and
speeding up your development time
%package tests
Summary: Tests for the %{name} package
Requires: %{name}%{?_isa} = %{version}-%{release}
%description tests
The %{name}-tests package contains tests that can be used to verify
the functionality of the installed %{name} package.
2019-09-30 10:39:35 -04:00
%package help
Summary: Development Documentation files for gdk-pixbuf2 and xlib library
Buildarch: noarch
Requires: %{name} = %{version}-%{release}
%description help
The gdk-pixbuf2 package contains the documentation files which is useful for
developing applications that uses gdk-pixbuf2 xlib and test.
%prep
%autosetup -n gdk-pixbuf-%{version} -p1
%build
%meson \
2023-01-31 16:27:23 +08:00
-Dgtk_doc=true \
-Dman=true \
%{nil}
2019-09-30 10:39:35 -04:00
%global _smp_mflags -j1
%meson_build
%install
%meson_install
touch $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders.cache
(cd $RPM_BUILD_ROOT%{_bindir}
mv gdk-pixbuf-query-loaders gdk-pixbuf-query-loaders-%{__isa_bits}
)
2023-01-31 16:27:23 +08:00
sed -i -e 's/gdk-pixbuf-query-loaders/gdk-pixbuf-query-loaders-%{__isa_bits}/' \
$RPM_BUILD_ROOT%{_libdir}/pkgconfig/gdk-pixbuf-2.0.pc
2019-09-30 10:39:35 -04:00
%find_lang gdk-pixbuf
%transfiletriggerin -- %{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders
gdk-pixbuf-query-loaders-%{__isa_bits} --update-cache
%transfiletriggerpostun -- %{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders
gdk-pixbuf-query-loaders-%{__isa_bits} --update-cache
%files -f gdk-pixbuf.lang
2019-12-26 15:10:28 +08:00
%license COPYING
%doc NEWS
%{_libdir}/libgdk_pixbuf-2.0.so.*
2019-09-30 10:39:35 -04:00
%{_libdir}/girepository-1.0
%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
2019-09-30 10:39:35 -04:00
%ghost %{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders.cache
%{_bindir}/gdk-pixbuf-query-loaders-%{__isa_bits}
%{_bindir}/gdk-pixbuf-thumbnailer
%{_datadir}/thumbnailers/
%files modules
%{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/*.so
2019-09-30 10:39:35 -04:00
%files devel
%dir %{_includedir}/gdk-pixbuf-2.0
2019-09-30 10:39:35 -04:00
%{_includedir}/gdk-pixbuf-2.0/gdk-pixbuf
%{_libdir}/libgdk_pixbuf-2.0.so
%{_libdir}/pkgconfig/gdk-pixbuf-2.0.pc
2019-09-30 10:39:35 -04:00
%{_bindir}/gdk-pixbuf-csource
%{_bindir}/gdk-pixbuf-pixdata
%{_datadir}/gir-1.0/
%files tests
2019-09-30 10:39:35 -04:00
%{_libexecdir}/installed-tests
%{_datadir}/installed-tests
%files help
2019-12-26 15:10:28 +08:00
%defattr(-,root,root)
2019-09-30 10:39:35 -04:00
%{_mandir}/man1/gdk-pixbuf-query-loaders.1*
%{_mandir}/man1/gdk-pixbuf-csource.1*
%{_datadir}/doc/gdk-pixbuf/
%{_datadir}/doc/gdk-pixdata/
2019-09-30 10:39:35 -04:00
%changelog
* Mon Oct 14 2024 zhangpan <zhangpan103@h-partners.com> - 2.42.10-4
- fix duplicate packaged files for help subpackages
2024-06-26 12:07:52 +08:00
* Wed Jun 26 2024 liningjie <liningjie@xfusion.com> - 2.42.10-3
- Fix CVE-2022-48622
* Tue Mar 07 2023 zhouwenpei <zhouwenpei1@h-partners.com> - 2.42.10-2
- disable make check
2023-01-31 16:27:23 +08:00
* Mon Jan 2 2023 lin zhang <lin.zhang@turbolinux.com.cn> - 2.42.10-1
- Update to 2.42.10
* Tue Sep 06 2022 zhouwenpei <zhouwenpei1@h-partners.com> - 2.42.8-2
- fix test fails when testing gif images
2022-04-13 12:18:34 +08:00
* Mon Mar 28 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 2.42.8-1
- Update to 2.42.8
2022-03-30 17:02:53 +08:00
* Wed Mar 30 2022 liuyumeng <liuyumeng5@h-partners.com> - 2.42.6-2
- enable tests
* Thu Dec 2 2021 hanhui <hanhui15@huawei.com> - 2.42.6-1
- update to 2.42.6
2021-07-20 16:02:54 +08:00
* Thu Jul 20 2021 liuyumeng <liuyumeng5@huawei.com> - 2.40.0-2
- delete gdb in buildrequires
2020-07-23 20:33:20 +08:00
* Mon Jul 20 2020 wangye <wangye70@huawei.com> - 2.40.0-1
- version update 2.40.0
2020-03-20 11:03:55 +08:00
* Fri Mar 20 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.38.0-9
- add gdb in buildrequires
2020-01-20 17:40:42 +08:00
* Mon Jan 20 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.38.0-8
- remove the jasper
2019-12-26 15:10:28 +08:00
* Tue Dec 24 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.38.0-7
- change the path of files
2019-11-06 19:07:27 +08:00
* Mon Oct 28 2019 zoujing <zoujing13@huawei.com> - 2.38.0-6
- add gobject-introspection-devel
2019-09-30 10:39:35 -04:00
* Wed Sep 18 2019 openEuler jimmy<dukaitian@huawei.com> - 2.38.0-5
- Package init jimmy