75766d
Name:           libgxps
75766d
Version:        0.3.0
75766d
Release:        4%{?dist}
75766d
Summary:        GObject based library for handling and rendering XPS documents
75766d
Group:          System Environment/Libraries
75766d
75766d
License:        LGPLv2+
75766d
URL:            https://wiki.gnome.org/Projects/libgxps
75766d
Source0:        https://ftp.gnome.org/pub/gnome/sources/%{name}/0.3/%{name}-%{version}.tar.xz
75766d
75766d
Patch0:         libgxps-0.2.4-GXPSImage.patch
75766d
Patch1:         libgxps-0.2.5-private-methods.patch
75766d
75766d
# https://bugzilla.redhat.com/show_bug.cgi?id=1574844
75766d
Patch2:         libgxps-0.3.0-archive-fill-error.patch
75766d
Patch3:         libgxps-0.3.0-archive-handle-error.patch
75766d
75766d
# https://bugzilla.redhat.com/show_bug.cgi?id=1591133
75766d
Patch4:         libgxps-0.3.0-integer-overflow.patch
75766d
Patch5:         libgxps-0.3.0-clear-error.patch
75766d
75766d
BuildRequires:  meson
75766d
BuildRequires:  gcc
75766d
BuildRequires:  gtk3-devel
75766d
BuildRequires:  glib2-devel
75766d
BuildRequires:  gobject-introspection-devel
75766d
BuildRequires:  gtk-doc
75766d
BuildRequires:  cairo-devel
75766d
BuildRequires:  libarchive-devel
75766d
BuildRequires:  freetype-devel
75766d
BuildRequires:  libjpeg-devel
75766d
BuildRequires:  libtiff-devel
75766d
BuildRequires:  lcms2-devel
75766d
75766d
%description
75766d
libgxps is a GObject based library for handling and rendering XPS
75766d
documents.
75766d
75766d
%package        devel
75766d
Summary:        Development files for %{name}
75766d
Group:          Development/Libraries
75766d
Requires:       %{name}%{?_isa} = %{version}-%{release}
75766d
75766d
%description    devel
75766d
The %{name}-devel package contains libraries and header files for
75766d
developing applications that use %{name}.
75766d
75766d
%package        tools
75766d
Summary:        Command-line utility programs for manipulating XPS files
75766d
Group:          Applications/Text
75766d
Requires:       %{name}%{?_isa} = %{version}-%{release}
75766d
75766d
%description    tools
75766d
The %{name}-tools contains command-line programs for manipulating XPS format
75766d
documents using the %{name} library.
75766d
75766d
75766d
%prep
75766d
%autosetup -p1
75766d
75766d
75766d
%build
75766d
%meson -Denable-gtk-doc=true -Denable-man=true
75766d
%meson_build
75766d
75766d
75766d
%install
75766d
%meson_install
75766d
75766d
75766d
%post -p /sbin/ldconfig
75766d
75766d
75766d
%postun -p /sbin/ldconfig
75766d
75766d
75766d
%files
75766d
%doc AUTHORS MAINTAINERS NEWS README TODO
75766d
%license COPYING
75766d
%{_libdir}/*.so.*
75766d
%{_libdir}/girepository-1.0/*.typelib
75766d
75766d
75766d
%files devel
75766d
%{_includedir}/*
75766d
%{_libdir}/*.so
75766d
%{_libdir}/pkgconfig/*.pc
75766d
%{_datadir}/gir-1.0/*.gir
75766d
%{_datadir}/gtk-doc/html/libgxps
75766d
75766d
75766d
%files tools
75766d
%{_bindir}/xpsto*
75766d
%{_mandir}/man1/xpsto*.1.gz
75766d
75766d
75766d
%changelog
75766d
* Thu Jun 21 2018 Marek Kasik <mkasik@redhat.com> - 0.3.0-4
75766d
- Fix integer overflow in png decoder
75766d
- Resolves: #1591133
75766d
75766d
* Fri Jun 01 2018 Marek Kasik <mkasik@redhat.com> - 0.3.0-3
75766d
- Fix crash in loading of png image
75766d
- Resolves: #1575188
75766d
75766d
* Fri Jun 01 2018 Marek Kasik <mkasik@redhat.com> - 0.3.0-2
75766d
- Ensure gxps_archive_read_entry() fills the GError in case of failure
75766d
- Handle errors returned by archive_read_data()
75766d
- Resolves: #1574844
75766d
75766d
* Thu May 31 2018 Marek Kasik <mkasik@redhat.com> - 0.3.0-1
75766d
- Update to 0.3.0
75766d
- Resolves: #1569731
75766d
75766d
* Tue Feb 28 2017 Marek Kasik <mkasik@redhat.com> - 0.2.5-1
75766d
- Update to newly released 0.2.5
75766d
- Preserve ABI by exporting the same set of methods as before
75766d
- Resolves: #1384959
75766d
75766d
* Fri Feb 17 2017 Marek Kasik <mkasik@redhat.com> - 0.2.4-1
75766d
- Update to 0.2.4
75766d
- Backport several important patches from current master
75766d
- Revert addition of GXPSImage (it would change ABI)
75766d
- Resolves: #1384959
75766d
75766d
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.2.2-9
75766d
- Mass rebuild 2014-01-24
75766d
75766d
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.2.2-8
75766d
- Mass rebuild 2013-12-27
75766d
75766d
* Tue Mar 26 2013 Daniel Mach <dmach@redhat.com> - 0.2.2-7.1
75766d
- Rebuild for libarchive
75766d
75766d
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2-7
75766d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
75766d
75766d
* Fri Jan 18 2013 Adam Tkac <atkac redhat com> - 0.2.2-6
75766d
- rebuild due to "jpeg8-ABI" feature drop
75766d
75766d
* Thu Jan 17 2013 Tomas Bzatek <tbzatek@redhat.com> - 0.2.2-5
75766d
- Rebuilt for new libarchive
75766d
75766d
* Fri Dec 21 2012 Adam Tkac <atkac redhat com> - 0.2.2-4
75766d
- rebuild against new libjpeg
75766d
75766d
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2-3
75766d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
75766d
75766d
* Sun May  6 2012 Tom Hughes <tom@compton.nu> - 0.2.2-2
75766d
- Rebuilt for new libtiff.
75766d
75766d
* Mon Mar 19 2012 Tom Hughes <tom@compton.nu> - 0.2.2-1
75766d
- Update to 0.2.2 upstream release.
75766d
75766d
* Thu Jan 26 2012 Tomas Bzatek <tbzatek@redhat.com> - 0.2.1-4
75766d
- Rebuilt for new libarchive
75766d
75766d
* Thu Jan 26 2012 Tom Hughes <tom@compton.nu> - 0.2.1-3
75766d
- Correct summary and description for tools package.
75766d
75766d
* Thu Jan 26 2012 Tom Hughes <tom@compton.nu> - 0.2.1-2
75766d
- Rebuild for libarchive soname bump.
75766d
75766d
* Sat Jan 21 2012 Tom Hughes <tom@compton.nu> - 0.2.1-1
75766d
- Update to 0.2.1 upstream release.
75766d
75766d
* Wed Jan  4 2012 Tom Hughes <tom@compton.nu> - 0.2.0-2
75766d
- Rebuilt for gcc 4.7 mass rebuild.
75766d
- Run autoreconf to update libtool.
75766d
75766d
* Thu Dec  1 2011 Tom Hughes <tom@compton.nu> - 0.2.0-1
75766d
- Update to 0.2.0 upstream release.
75766d
75766d
* Sat Nov  5 2011 Tom Hughes <tom@compton.nu> - 0.1.0-2
75766d
- Fix base package dependency in devel package.
75766d
75766d
* Fri Nov  4 2011 Tom Hughes <tom@compton.nu> - 0.1.0-1
75766d
- Initial build.