| 1 | Name: epdfview |
|---|
| 2 | Version: 0.1.8 |
|---|
| 3 | Release: 5%{?_dist_release} |
|---|
| 4 | Summary: Lightweight PDF document viewer |
|---|
| 5 | Summary(ja): 軽量な PDF ドキュメントビューア |
|---|
| 6 | |
|---|
| 7 | Group: Applications/Publishing |
|---|
| 8 | License: GPLv2+ |
|---|
| 9 | URL: http://trac.emma-soft.com/epdfview |
|---|
| 10 | Source0: http://trac.emma-soft.com/epdfview/chrome/site/releases/%{name}-%{version}.tar.bz2 |
|---|
| 11 | #Patch0: epdfview-poppler-0.16.patch |
|---|
| 12 | #Patch1: epdfview-0.1.7-fix-mouse-scroll.patch |
|---|
| 13 | #Patch2: 03_nonexisting-file.patch |
|---|
| 14 | Patch0: 02_glib-single-include.patch |
|---|
| 15 | Patch1: epdfview-0.1.8-swap-colors-with-poppler-0.18.patch |
|---|
| 16 | Patch2: 06_fix-format.patch |
|---|
| 17 | Patch3: epdfview-0.1.8-cups-1.6.patch |
|---|
| 18 | |
|---|
| 19 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 20 | |
|---|
| 21 | BuildRequires: poppler-devel |
|---|
| 22 | BuildRequires: gtk2-devel glib2-devel cups-devel |
|---|
| 23 | BuildRequires: bison cppunit-devel |
|---|
| 24 | BuildRequires: desktop-file-utils |
|---|
| 25 | BuildRequires: autoconf automake libtool gettext |
|---|
| 26 | |
|---|
| 27 | %description |
|---|
| 28 | ePDFView is a lightweight PDF document viewer using Poppler and GTK+ libraries. |
|---|
| 29 | The aim of ePDFView is to make a simple PDF document viewer, in the lines of |
|---|
| 30 | Evince but without using the Gnome libraries. |
|---|
| 31 | |
|---|
| 32 | %description -l ja |
|---|
| 33 | ePDFView は Poppler と GTK+ ライブラリを用いた軽量な PDF ドキュメントビューアです。 |
|---|
| 34 | ePDFView の狙いは Evince の流れをくみつつも Gnome ライブラリを使用することなく |
|---|
| 35 | シンプルな PDF ドキュメントビューアを作成することにあります。 |
|---|
| 36 | |
|---|
| 37 | %prep |
|---|
| 38 | %setup -q |
|---|
| 39 | %patch0 -p1 |
|---|
| 40 | %patch1 -p0 |
|---|
| 41 | %patch2 -p1 |
|---|
| 42 | %patch3 -p1 |
|---|
| 43 | |
|---|
| 44 | %build |
|---|
| 45 | # making null ChangeLog to avoid failure at autoreconf |
|---|
| 46 | touch ChangeLog |
|---|
| 47 | #autoreconf -f -i |
|---|
| 48 | %configure |
|---|
| 49 | make %{?_smp_mflags} |
|---|
| 50 | |
|---|
| 51 | %install |
|---|
| 52 | rm -rf $RPM_BUILD_ROOT |
|---|
| 53 | make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" |
|---|
| 54 | |
|---|
| 55 | desktop-file-install \ |
|---|
| 56 | --dir=%{buildroot}%{_datadir}/applications \ |
|---|
| 57 | --vendor=vine \ |
|---|
| 58 | --delete-original \ |
|---|
| 59 | --remove-category Office \ |
|---|
| 60 | --add-category Graphics \ |
|---|
| 61 | %{buildroot}/%{_datadir}/applications/%{name}.desktop |
|---|
| 62 | |
|---|
| 63 | install -dm 755 %{buildroot}/%{_datadir}/pixmaps |
|---|
| 64 | pushd %{buildroot}/%{_datadir}/pixmaps |
|---|
| 65 | ln -s ../%{name}/pixmaps/icon_epdfview-48.png . |
|---|
| 66 | popd |
|---|
| 67 | |
|---|
| 68 | %find_lang %{name} |
|---|
| 69 | |
|---|
| 70 | %clean |
|---|
| 71 | rm -rf $RPM_BUILD_ROOT |
|---|
| 72 | |
|---|
| 73 | %post |
|---|
| 74 | update-desktop-database &> /dev/null || : |
|---|
| 75 | |
|---|
| 76 | %postun |
|---|
| 77 | update-desktop-database &> /dev/null || : |
|---|
| 78 | |
|---|
| 79 | %files -f %{name}.lang |
|---|
| 80 | %defattr(-,root,root,-) |
|---|
| 81 | %{_bindir}/%{name} |
|---|
| 82 | %doc AUTHORS COPYING README NEWS THANKS |
|---|
| 83 | %{_datadir}/applications/*%{name}.desktop |
|---|
| 84 | %dir %{_datadir}/%{name} |
|---|
| 85 | %{_datadir}/%{name}/pixmaps |
|---|
| 86 | %{_datadir}/%{name}/ui |
|---|
| 87 | %{_datadir}/pixmaps/icon_epdfview-48.png |
|---|
| 88 | %{_mandir}/man1/ |
|---|
| 89 | |
|---|
| 90 | %changelog |
|---|
| 91 | * Sat May 03 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.1.8-5 |
|---|
| 92 | - rebuild with poppler-0.24.5 |
|---|
| 93 | |
|---|
| 94 | * Sat Mar 15 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.1.8-4 |
|---|
| 95 | - added Patch2 from Debian sid to fix message format |
|---|
| 96 | - added Patch3 to fix build error against cups |
|---|
| 97 | (it is from https://github.com/Barthalion/aports/blob/master/main/epdfview/epdfview-0.1.8-cups-1.6.patch) |
|---|
| 98 | |
|---|
| 99 | * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.1.8-3 |
|---|
| 100 | - rebuild with poppler-0.24.2 |
|---|
| 101 | |
|---|
| 102 | * Thu May 03 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.1.8-2 |
|---|
| 103 | - rebuilt with poppler-0.18.4 |
|---|
| 104 | - added Patch0 from Debian sid to fix build error |
|---|
| 105 | - added Patch1 from Fedora rawhide to fix color channel |
|---|
| 106 | |
|---|
| 107 | * Sun May 29 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.1.8-1 |
|---|
| 108 | - new upstream release |
|---|
| 109 | - dropt all patches |
|---|
| 110 | |
|---|
| 111 | * Sun Apr 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.1.7-6 |
|---|
| 112 | - rebuild with krb5-libs-1.8.2 |
|---|
| 113 | |
|---|
| 114 | * Sat Mar 12 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.1.7-5 |
|---|
| 115 | - rebuilt with poppler-0.16.3 |
|---|
| 116 | - added Patch0 |
|---|
| 117 | |
|---|
| 118 | * Wed Oct 06 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.1.7-4 |
|---|
| 119 | - rebuild with poppler-0.14.2 |
|---|
| 120 | |
|---|
| 121 | * Sat Sep 19 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.1.7-3 |
|---|
| 122 | - added Patch2 from Debian |
|---|
| 123 | - added BuildRequires: bison, cppunit-devel |
|---|
| 124 | |
|---|
| 125 | * Thu Sep 3 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.1.7-2 |
|---|
| 126 | - added Patch1 from Mandriva to fix mouse scroll |
|---|
| 127 | |
|---|
| 128 | * Sat Aug 22 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.1.7-1 |
|---|
| 129 | - initial build for Vine 5 |
|---|
| 130 | |
|---|
| 131 | * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.7-2 |
|---|
| 132 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
|---|
| 133 | |
|---|
| 134 | * Thu Mar 26 2009 Michal Schmidt <mschmidt@redhat.com> - 0.1.7-1 |
|---|
| 135 | - Upstream release 0.1.7. |
|---|
| 136 | |
|---|
| 137 | * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.6-8.20081217svn |
|---|
| 138 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
|---|
| 139 | |
|---|
| 140 | * Wed Dec 17 2008 Michal Schmidt <mschmidt@redhat.com> - 0.1.6-7.20081217svn |
|---|
| 141 | - Add icon. |
|---|
| 142 | |
|---|
| 143 | * Wed Dec 17 2008 Michal Schmidt <mschmidt@redhat.com> - 0.1.6-6.20081217svn |
|---|
| 144 | - Rebased to current svn snapshot. |
|---|
| 145 | - Fixes bz476575 "epdfview crashes on print pdf". |
|---|
| 146 | |
|---|
| 147 | * Fri Nov 28 2008 Caolán McNamara <caolanm@redhat.com> - 0.1.6-5 |
|---|
| 148 | - rebuild for dependencies |
|---|
| 149 | |
|---|
| 150 | * Sun Aug 31 2008 Michal Schmidt <mschmidt@redhat.com> - 0.1.6-4 |
|---|
| 151 | - Fix build with the new RPM. |
|---|
| 152 | |
|---|
| 153 | * Fri Mar 21 2008 Michal Schmidt <mschmidt@redhat.com> - 0.1.6-3 |
|---|
| 154 | - Rebuild with new poppler. |
|---|
| 155 | |
|---|
| 156 | * Fri Feb 15 2008 Michal Schmidt <mschmidt@redhat.com> - 0.1.6-2 |
|---|
| 157 | - Use standard scriptlets for updating desktop-database. |
|---|
| 158 | - Conditional buildreqs to build on F8 too. |
|---|
| 159 | - Preserve timestamps of unmodified files. |
|---|
| 160 | |
|---|
| 161 | * Wed Feb 13 2008 Michal Schmidt <mschmidt@redhat.com> - 0.1.6-1 |
|---|
| 162 | - Initial Fedora package. |
|---|