a6c383d
# Filter provides from plugins.
a6c383d
%global __provides_exclude_from ^%{_libdir}/%{name}/.*$
a6c383d
a6c383d
Name:		xreader
Leigh Scott bd22176
Version:	2.6.4
0de20c3
Release:	2%{?dist}
a6c383d
Summary:	Simple document viewer
a6c383d
a6c383d
License:	GPLv2+
a6c383d
URL:		https://github.com/linuxmint/%{name}
d19223c
Source0:	%{url}/archive/%{version}/%{name}-%{version}.tar.gz
a6c383d
84e56f9
BuildRequires:	cmake3
0196de6
BuildRequires:	gcc-c++
f393735
BuildRequires:	meson
381da0f
BuildRequires:	mathjax
a6c383d
BuildRequires:	gtk-doc
a6c383d
BuildRequires:	intltool
a6c383d
BuildRequires:	itstool
a6c383d
BuildRequires:	libappstream-glib
a6c383d
BuildRequires:	pkgconfig(ddjvuapi)
a6c383d
BuildRequires:	pkgconfig(gail-3.0)
a6c383d
BuildRequires:	pkgconfig(glib-2.0)
a6c383d
BuildRequires:	pkgconfig(gio-2.0)
a6c383d
BuildRequires:	pkgconfig(gobject-introspection-1.0)
a6c383d
BuildRequires:	pkgconfig(gthread-2.0)
a6c383d
BuildRequires:	pkgconfig(gtk+-2.0)
a6c383d
BuildRequires:	pkgconfig(gtk+-3.0)
a6c383d
BuildRequires:	pkgconfig(gtk+-unix-print-3.0)
a6c383d
BuildRequires:	pkgconfig(kpathsea)
a6c383d
BuildRequires:	pkgconfig(libgxps)
a6c383d
BuildRequires:	pkgconfig(libsecret-1)
a6c383d
BuildRequires:	pkgconfig(libspectre)
a6c383d
BuildRequires:	pkgconfig(libtiff-4)
a6c383d
BuildRequires:	pkgconfig(libxml-2.0)
a6c383d
BuildRequires:	pkgconfig(poppler-glib)
a6c383d
BuildRequires:	pkgconfig(sm)
2b5a6e9
BuildRequires:	pkgconfig(xapp) >= 1.4.0
a6c383d
BuildRequires:	pkgconfig(zlib)
a6c383d
BuildRequires:	pkgconfig(webkit2gtk-4.0)
a6c383d
BuildRequires:	texlive
Leigh Scott c3b7cb6
BuildRequires:	t1lib-devel
a6c383d
BuildRequires:	yelp-tools
a6c383d
a6c383d
Requires:	shared-mime-info%{?_isa}
a6c383d
Requires:	gsettings-desktop-schemas%{?_isa}
a6c383d
Requires:	xapps%{?_isa}
a6c383d
a6c383d
Recommends:	yelp%{?_isa}
d6d9b17
a6c383d
%description
a6c383d
X-Apps Document Reader is a document viewer capable of displaying
2b5a6e9
multiple and single page document formats like PDF and PostScript.
a6c383d
a6c383d
a6c383d
%package devel
a6c383d
Summary:	Development files for %{name}
d6d9b17
Requires:	%{name}%{?_isa} == %{version}-%{release}
a6c383d
a6c383d
%description devel
a6c383d
This package contains the development files for %{name}.
a6c383d
a6c383d
a6c383d
%package doc
a6c383d
Summary:	Documentation files for %{name}
a6c383d
BuildArch:	noarch
a6c383d
a6c383d
%description doc
a6c383d
This package contains the documentation files for %{name}.
a6c383d
a6c383d
a6c383d
%prep
d6d9b17
%autosetup -p1
a6c383d
a6c383d
%build
f393735
%meson	\
f393735
 -Ddeprecated_warnings=false \
f393735
 -Ddjvu=true \
f393735
 -Ddvi=true \
f393735
 -Dt1lib=true \
f393735
 -Dpixbuf=true \
f393735
 -Dcomics=true \
f393735
 -Dintrospection=true \
e124e74
 -Dhelp_files=true \
e124e74
 -Dtests=false
a6c383d
f393735
%meson_build
a6c383d
a6c383d
%install
f393735
%meson_install
a6c383d
%{_bindir}/find %{buildroot} -type f -name '*.a' -print -delete
a6c383d
%{_bindir}/find %{buildroot} -type f -name '*.la' -print -delete
d6d9b17
%{__sed} -i -e '/.*<project_group>.*/d' \
2b5a6e9
	%{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
a6c383d
%find_lang %{name}
a6c383d
a6c383d
%check
a6c383d
# Validate desktop-files.
d6d9b17
%{_bindir}/desktop-file-validate    \
2b5a6e9
	%{buildroot}%{_datadir}/applications/%{name}.desktop
a6c383d
a6c383d
# Validate AppData-files.
d6d9b17
%{_bindir}/appstream-util validate-relax --nonet    \
2b5a6e9
	%{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
a6c383d
2b5a6e9
%ldconfig_scriptlets
a6c383d
a6c383d
%files -f %{name}.lang
a6c383d
%license AUTHORS COPYING debian/copyright
a6c383d
%doc ChangeLog README debian/changelog
a6c383d
%{_bindir}/%{name}*
d6d9b17
%{_datadir}/%{name}/
a6c383d
%{_datadir}/applications/%{name}.desktop
a6c383d
%{_datadir}/appdata/%{name}.appdata.xml
a6c383d
%{_datadir}/dbus-1/services/*
a6c383d
%{_datadir}/glib-2.0/schemas/*
d6d9b17
%{_datadir}/help/*/%{name}/
a6c383d
%{_datadir}/icons/hicolor/*/*/*
a6c383d
%{_datadir}/thumbnailers/%{name}.thumbnailer
a6c383d
%{_libdir}/girepository-1.0/*
a6c383d
%{_libdir}/*.so.*
d6d9b17
%{_libdir}/%{name}/
381da0f
%{_libexecdir}/xreaderd
a6c383d
%{_mandir}/man?/*.*
a6c383d
a6c383d
%files devel
a6c383d
%{_datadir}/gir-1.0/*
d6d9b17
%{_includedir}/%{name}/
a6c383d
%{_libdir}/*.so
79bb089
%{_libdir}/pkgconfig/xreader-document-1.5.pc
79bb089
%{_libdir}/pkgconfig/xreader-view-1.5.pc
a6c383d
a6c383d
%files doc
353021a
%license %{_datadir}/licenses/%{name}*
353021a
%doc %{_datadir}/doc/%{name}*
a6c383d
a6c383d
%changelog
0de20c3
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.4-2
0de20c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
0de20c3
Leigh Scott bd22176
* Tue Jul 14 2020 Leigh Scott <leigh123linux@gmail.com> - 2.6.4-1
Leigh Scott bd22176
- Update to 2.6.4 release
Leigh Scott bd22176
Leigh Scott 4a483c1
* Sat Jun 06 2020 Leigh Scott <leigh123linux@gmail.com> - 2.6.2-1
Leigh Scott 4a483c1
- Update to 2.6.2 release
Leigh Scott 4a483c1
Leigh Scott 80b10b0
* Sat May 23 2020 Leigh Scott <leigh123linux@gmail.com> - 2.6.1-1
Leigh Scott 80b10b0
- Update to 2.6.1 release
Leigh Scott 80b10b0
Leigh Scott 43f30f6
* Tue May 12 2020 Leigh Scott <leigh123linux@gmail.com> - 2.6.0-1
Leigh Scott 43f30f6
- Update to 2.6.0 release
Leigh Scott 43f30f6
dfcb606
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.4-4
dfcb606
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
dfcb606
ea24464
* Fri Jan 17 2020 Marek Kasik <mkasik@redhat.com> - 2.4.4-3
ea24464
- Rebuild for poppler-0.84.0
ea24464
Leigh Scott c3b7cb6
* Fri Jan 10 2020 Leigh Scott <leigh123linux@gmail.com> - 2.4.4-2
Leigh Scott c3b7cb6
- Add build requires t1lib-devel
Leigh Scott c3b7cb6
e124e74
* Fri Jan 10 2020 Leigh Scott <leigh123linux@googlemail.com> - 2.4.4-1
e124e74
- Update to 2.4.4 release
e124e74
aef4d9c
* Wed Dec 11 2019 Leigh Scott <leigh123linux@googlemail.com> - 2.4.3-1
aef4d9c
- Update to 2.4.3 release
aef4d9c
b548b50
* Thu Nov 28 2019 Leigh Scott <leigh123linux@googlemail.com> - 2.4.2-1
b548b50
- Update to 2.4.2 release
b548b50
7e99533
* Tue Nov 26 2019 Leigh Scott <leigh123linux@googlemail.com> - 2.4.1-1
7e99533
- Update to 2.4.1 release
7e99533
6b21d5f
* Fri Nov 22 2019 Leigh Scott <leigh123linux@googlemail.com> - 2.4.0-1
6b21d5f
- Update to 2.4.0 release
6b21d5f
ba5cd75
* Tue Sep 10 2019 Florian Weimer <fweimer@redhat.com> - 2.2.3-2
ba5cd75
- Fix building in C99 mode
ba5cd75
f82ec71
* Wed Jul 31 2019 Leigh Scott <leigh123linux@googlemail.com> - 2.2.3-1
f82ec71
- Update to 2.2.3 release
f82ec71
16ab829
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.2-2
16ab829
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
16ab829
199f97b
* Sun Jul 14 2019 Leigh Scott <leigh123linux@googlemail.com> - 2.2.2-1
199f97b
- Update to 2.2.2 release
199f97b
9bb504f
* Sun Jun 30 2019 Leigh Scott <leigh123linux@googlemail.com> - 2.2.1-1
9bb504f
- Update to 2.2.1 release
9bb504f
d19223c
* Sat Jun 29 2019 Leigh Scott <leigh123linux@googlemail.com> - 2.2.0-1
f393735
- Update to 2.2.0 release
d19223c
e83b6a4
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-2
e83b6a4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
e83b6a4
185051a
* Sun Dec 16 2018 Leigh Scott <leigh123linux@googlemail.com> - 2.0.2-1
185051a
- Update to 2.0.2 release
185051a
00cd865
* Wed Nov 28 2018 Leigh Scott <leigh123linux@googlemail.com> - 2.0.1-1
00cd865
- Update to 2.0.1 release
00cd865
2b5a6e9
* Mon Nov 19 2018 Leigh Scott <leigh123linux@googlemail.com> - 2.0.0-1
2b5a6e9
- Update to 2.0.0 release
2b5a6e9
721274f
* Wed Aug 15 2018 Leigh Scott <leigh123linux@googlemail.com> - 1.8.5-1
721274f
- Update to 1.8.5 release
721274f
0196de6
* Mon Jul 16 2018 Leigh Scott <leigh123linux@googlemail.com> - 1.8.4-1
0196de6
- Update to 1.8.4 release
0196de6
- Add BuildRequires gcc-c++
0196de6
5644893
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.1-2
5644893
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
5644893
d6d9b17
* Thu May 10 2018 Leigh Scott <leigh123linux@googlemail.com> - 1.8.1-1
d6d9b17
- Update to 1.8.1 release
d6d9b17
6f7c9e1
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.2-2
6f7c9e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
6f7c9e1
e346289
* Mon Dec 18 2017 Leigh Scott <leigh123linux@googlemail.com> - 1.6.2-1
e346289
- New upstream release
e346289
79bb089
* Tue Dec 12 2017 Leigh Scott <leigh123linux@googlemail.com> - 1.6.1-1
79bb089
- New upstream release
79bb089
- Fix typelib version
79bb089
36f6262
* Thu Nov 16 2017 Björn Esser <besser82@fedoraproject.org> - 1.6.0-3
36f6262
- Redistributable build on EPEL7
36f6262
b1781d1
* Thu Nov 16 2017 Björn Esser <besser82@fedoraproject.org> - 1.6.0-2
b1781d1
- Bootstrapping on EPEL7
b1781d1
27094b3
* Sat Nov 04 2017 Leigh Scott <leigh123linux@googlemail.com> - 1.6.0-1
27094b3
- Update to 1.6.0 release
27094b3
353021a
* Fri Sep 01 2017 Björn Esser <besser82@fedoraproject.org> - 1.4.4-6
353021a
- Some more fixes for EPEL
353021a
be9f864
* Fri Sep 01 2017 Björn Esser <besser82@fedoraproject.org> - 1.4.4-5
be9f864
- Some more fixes for EPEL
be9f864
fd58107
* Fri Sep 01 2017 Björn Esser <besser82@fedoraproject.org> - 1.4.4-4
fd58107
- Adjustments for EPEL
fd58107
c133af1
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.4-3
c133af1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
c133af1
b63b9e2
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.4-2
b63b9e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
b63b9e2
c621da8
* Wed Jun 28 2017 Björn Esser <besser82@fedoraproject.org> - 1.4.4-1
c621da8
- New upstream release (rhbz#1462726)
c621da8
2cf1cda
* Wed May 24 2017 Björn Esser <besser82@fedoraproject.org> - 1.4.2-1
2cf1cda
- New upstream release (rhbz#1454986)
2cf1cda
bb19435
* Mon May 08 2017 Björn Esser <besser82@fedoraproject.org> - 1.4.1-2
bb19435
- Add patch to fix build without Caja-extension
bb19435
0f73794
* Mon May 08 2017 Björn Esser <besser82@fedoraproject.org> - 1.4.1-1
0f73794
- New upstream release (rhbz#1448921)
0f73794
c64ab4c
* Mon May 08 2017 Björn Esser <besser82@fedoraproject.org> - 1.4.0-2
c64ab4c
- Disable Caja-extension for Fedora <= 25
c64ab4c
a6c383d
* Mon May 08 2017 Björn Esser <besser82@fedoraproject.org> - 1.4.0-1
a6c383d
- Initial import (rhbz#1424832)
a6c383d
a6c383d
* Sat May 06 2017 Björn Esser <besser82@fedoraproject.org> - 1.4.0-0.1
a6c383d
- Initial rpm-release (rhbz#1424832)