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