qpdfview/qpdfview.spec

117 lines
3.1 KiB
RPMSpec
Raw Normal View History

2013-03-28 17:03:50 +00:00
Name: qpdfview
2014-11-19 11:15:55 +00:00
Version: 0.4.13
2014-10-06 05:31:24 +00:00
Release: 1%{?dist}
2013-03-28 17:03:50 +00:00
License: GPLv2+
Summary: Tabbed PDF Viewer
Url: https://launchpad.net/qpdfview
2014-11-19 11:15:55 +00:00
Source0: https://launchpad.net/qpdfview/trunk/%{version}/+download/%{name}-%{version}.tar.gz
Patch0: %{name}-%{version}-arm.patch
2014-07-21 07:28:10 +00:00
BuildRequires: desktop-file-utils file-devel cups-devel hicolor-icon-theme pkgconfig(poppler-qt4) pkgconfig(libspectre) pkgconfig(QtGui) pkgconfig(QtDBus) pkgconfig(zlib)
2013-03-28 17:03:50 +00:00
%if 0%{?centos_version}
Requires: qt-sqlite
%else
BuildRequires: pkgconfig(ddjvuapi)
%endif
%description
qpdfview is a tabbed PDF viewer.
It uses the Poppler library for rendering and CUPS for printing.
It provides a clear and simple graphical user interface using the Qt framework.
2014-11-19 11:15:55 +00:00
2013-03-28 17:03:50 +00:00
%prep
2014-11-19 11:15:55 +00:00
%setup0 -q
%patch0 -p 0
2013-03-28 17:03:50 +00:00
%build
2013-05-26 10:41:14 +00:00
lrelease-qt4 qpdfview.pro
qmake-qt4 \
2013-03-28 17:03:50 +00:00
QMAKE_CFLAGS+="%{optflags}" \
QMAKE_CXXFLAGS+="%{optflags}" \
QMAKE_STRIP="" \
PLUGIN_INSTALL_PATH="%{_libdir}/%{name}" \
DATA_INSTALLPATH="%{_datadir}/%{name}" \
%if 0%{?centos_version}
CONFIG+=without_djvu \
%endif
qpdfview.pro
make %{?_smp_mflags}
2014-11-19 11:15:55 +00:00
2013-03-28 17:03:50 +00:00
%install
make INSTALL_ROOT=%{buildroot} install
install -Dm 0644 icons/%{name}.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
2013-05-26 10:41:14 +00:00
%find_lang %{name} --with-qt --without-mo
# unknown language
rm -f %{buildroot}/%{_datadir}/%{name}/%{name}_ast.qm
2013-03-28 17:03:50 +00:00
2014-11-19 11:15:55 +00:00
2013-05-26 10:41:14 +00:00
%post -p /sbin/ldconfig
2014-11-19 11:15:55 +00:00
2013-05-26 10:41:14 +00:00
%postun -p /sbin/ldconfig
2014-11-19 11:15:55 +00:00
2013-05-26 10:41:14 +00:00
%files -f %{name}.lang
2013-03-28 17:03:50 +00:00
%doc CHANGES CONTRIBUTORS COPYING README TODO
%{_bindir}/%{name}
%{_libdir}/%{name}/
2013-05-26 10:41:14 +00:00
%dir %{_datadir}/%{name}
2013-10-13 09:36:32 +00:00
%{_datadir}/%{name}/help*.html
2014-10-06 05:31:24 +00:00
#{_datadir}/%{name}/%{name}.svg
2013-03-28 17:03:50 +00:00
%{_datadir}/applications/%{name}.desktop
2014-07-21 07:28:10 +00:00
%{_datadir}/appdata/%{name}.appdata.xml
2013-03-28 17:03:50 +00:00
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_mandir}/man?/*
%changelog
2014-11-19 11:15:55 +00:00
* Tue Nov 18 2014 TI_Eugene <ti.eugene@gmail.com> 0.4.13-1
- Version bump
2014-10-06 05:31:24 +00:00
* Mon Oct 06 2014 TI_Eugene <ti.eugene@gmail.com> 0.4.12-1
- Version bump
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.11-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2014-07-21 07:28:10 +00:00
* Mon Jul 21 2014 TI_Eugene <ti.eugene@gmail.com> 0.4.11-1
- Version bump
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.10-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2014-05-05 11:13:17 +00:00
* Mon May 05 2014 TI_Eugene <ti.eugene@gmail.com> 0.4.10-1
- Version bump
2014-03-23 09:34:26 +00:00
* Sun Mar 23 2014 TI_Eugene <ti.eugene@gmail.com> 0.4.9-1
- Version bump
2014-01-30 12:18:47 +00:00
* Thu Jan 30 2014 TI_Eugene <ti.eugene@gmail.com> 0.4.8-1
- Version bump
2013-12-08 16:57:58 +00:00
* Sun Dec 08 2013 TI_Eugene <ti.eugene@gmail.com> 0.4.7-1
- Version bump
2013-10-13 09:36:32 +00:00
* Sun Oct 13 2013 TI_Eugene <ti.eugene@gmail.com> 0.4.6-1
- Version bump
2013-09-06 10:40:13 +00:00
* Fri Sep 06 2013 TI_Eugene <ti.eugene@gmail.com> 0.4.5-1
- Version bump
2013-07-30 12:57:30 +00:00
* Tue Jul 30 2013 TI_Eugene <ti.eugene@gmail.com> 0.4.4-1
- Version bump
2013-05-26 10:41:14 +00:00
* Sun May 26 2013 TI_Eugene <ti.eugene@gmail.com> 0.4.3-1
- Version bump
- Translations added
- post/postun ldconfig added
2013-07-30 12:57:30 +00:00
* Mon Mar 25 2013 TI_Eugene <ti.eugene@gmail.com> 0.4.1-1
2013-03-28 17:03:50 +00:00
- New version
- License changed to GPLv2+
2013-07-30 12:57:30 +00:00
* Sat Mar 23 2013 TI_Eugene <ti.eugene@gmail.com> 0.4-1
2013-03-28 17:03:50 +00:00
- initial packaging for Fedora