[4664] | 1 | Name: okular |
---|
| 2 | Summary: A document viewer |
---|
| 3 | Summary(ja): 文章ビューア |
---|
[8056] | 4 | Version: 4.11.4 |
---|
[6899] | 5 | Release: 1%{?_dist_release} |
---|
[4664] | 6 | |
---|
| 7 | License: GPLv2 |
---|
| 8 | Group: Applications/Publishing |
---|
| 9 | URL: https://projects.kde.org/projects/kde/kdegraphics/okular |
---|
| 10 | |
---|
[6725] | 11 | Source0: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.xz |
---|
[4664] | 12 | |
---|
| 13 | ## upstreamable patches |
---|
| 14 | # okular.desktop : Categories=-Office,+VectorGraphics (http://bugzilla.redhat.com/591089) |
---|
| 15 | Patch50: kdegraphics-4.5.1-okular_dt.patch |
---|
| 16 | # don't hardcode paths in OkularConfig.cmake |
---|
| 17 | Patch51: kdegraphics-4.5.80-OkularConfig-dont-hardcode-paths.patch |
---|
| 18 | |
---|
| 19 | BuildRequires: chmlib-devel |
---|
| 20 | BuildRequires: desktop-file-utils |
---|
| 21 | BuildRequires: djvulibre-devel |
---|
| 22 | BuildRequires: ebook-tools-devel |
---|
| 23 | BuildRequires: kdelibs4-devel >= %{version} |
---|
[7728] | 24 | BuildRequires: kactivities-devel >= %{version} |
---|
[4664] | 25 | BuildRequires: libkipi-devel >= %{version} |
---|
| 26 | BuildRequires: libspectre-devel |
---|
| 27 | BuildRequires: libtiff-devel |
---|
| 28 | BuildRequires: poppler-qt4-devel |
---|
| 29 | BuildRequires: qca2-devel |
---|
| 30 | BuildRequires: qimageblitz-devel |
---|
| 31 | BuildRequires: soprano-devel |
---|
| 32 | |
---|
| 33 | Requires: %{name}-libs = %{version}-%{release} |
---|
| 34 | Requires: kio_msits = %{version}-%{release} |
---|
| 35 | Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}} |
---|
| 36 | # when split occurred |
---|
| 37 | Conflicts: kdegraphics < 4.6.95-10 |
---|
| 38 | |
---|
| 39 | %description |
---|
| 40 | %{summary}. |
---|
| 41 | |
---|
| 42 | %package devel |
---|
| 43 | Summary: Development files for %{name} |
---|
| 44 | Summary(ja): %{name} の開発用ファイル |
---|
| 45 | Group: Development/Libraries |
---|
| 46 | Requires: %{name}-libs = %{version}-%{release} |
---|
| 47 | Requires: kdelibs4-devel |
---|
| 48 | |
---|
| 49 | %description devel |
---|
| 50 | %{summary}. |
---|
| 51 | |
---|
| 52 | %package libs |
---|
| 53 | Summary: Runtime files for %{name} |
---|
| 54 | Summary(ja): %{name} のランタイムライブラリ |
---|
| 55 | Group: System Environment/Libraries |
---|
| 56 | #Requires: %{name} = %{version}-%{release} |
---|
| 57 | |
---|
| 58 | %description libs |
---|
| 59 | %{summary}. |
---|
| 60 | |
---|
| 61 | %package -n kio_msits |
---|
| 62 | #Epoch: %{kio_msits_epoch} |
---|
| 63 | Summary: A kioslave for displaying WinHelp files |
---|
| 64 | Group: System Environment/Libraries |
---|
| 65 | |
---|
| 66 | %description -n kio_msits |
---|
| 67 | %{summary}. |
---|
| 68 | |
---|
| 69 | |
---|
| 70 | %prep |
---|
| 71 | %setup -q |
---|
| 72 | |
---|
| 73 | %patch50 -p2 -b .okular_dt |
---|
| 74 | %patch51 -p2 -b .OkularConfig |
---|
| 75 | |
---|
| 76 | |
---|
| 77 | %build |
---|
| 78 | mkdir -p %{_target_platform} |
---|
| 79 | pushd %{_target_platform} |
---|
| 80 | %cmake \ |
---|
| 81 | -DCMAKE_BUILD_TYPE=release \ |
---|
| 82 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
| 83 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
| 84 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
| 85 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
| 86 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
| 87 | .. |
---|
| 88 | popd |
---|
| 89 | |
---|
| 90 | make %{?_smp_mflags} -C %{_target_platform} |
---|
| 91 | |
---|
| 92 | |
---|
| 93 | %install |
---|
| 94 | rm -rf $RPM_BUILD_ROOT |
---|
| 95 | |
---|
| 96 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
| 97 | |
---|
| 98 | |
---|
| 99 | %check |
---|
| 100 | desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/kde4/%{name}.desktop |
---|
| 101 | |
---|
| 102 | |
---|
| 103 | %post |
---|
| 104 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 105 | |
---|
| 106 | %posttrans |
---|
| 107 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 108 | update-desktop-database -q &> /dev/null ||: |
---|
| 109 | |
---|
| 110 | %postun |
---|
| 111 | if [ $1 -eq 0 ] ; then |
---|
| 112 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 113 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 114 | update-desktop-database -q &> /dev/null ||: |
---|
| 115 | fi |
---|
| 116 | |
---|
| 117 | %post libs -p /sbin/ldconfig |
---|
| 118 | %postun libs -p /sbin/ldconfig |
---|
| 119 | |
---|
| 120 | |
---|
| 121 | %files |
---|
| 122 | %doc COPYING |
---|
| 123 | %{_bindir}/%{name}* |
---|
| 124 | %{_datadir}/kde4/apps/%{name}/ |
---|
| 125 | %{_datadir}/applications/kde4/%{name}.desktop |
---|
[7801] | 126 | %{_datadir}/applications/kde4/%{name}Application_*.desktop |
---|
| 127 | %{_datadir}/applications/kde4/active-documentviewer_*.desktop |
---|
[4664] | 128 | %{_datadir}/config.kcfg/*.kcfg |
---|
| 129 | %{_datadir}/kde4/services/lib%{name}Generator*.desktop |
---|
| 130 | %{_datadir}/kde4/services/%{name}[A-Z]*.desktop |
---|
| 131 | %{_datadir}/icons/hicolor/*/*/* |
---|
| 132 | %{_datadir}/doc/HTML/en/%{name}/ |
---|
| 133 | %{_libdir}/kde4/%{name}Generator*.so |
---|
| 134 | %{_datadir}/kde4/services/%{name}_part.desktop |
---|
| 135 | %{_datadir}/kde4/servicetypes/%{name}Generator.desktop |
---|
| 136 | %{_libdir}/kde4/%{name}part.so |
---|
[7728] | 137 | %{_libdir}/kde4/imports/org/kde/okular |
---|
| 138 | %{_datadir}/kde4/apps/kconf_update/okular.upd |
---|
| 139 | %{_mandir}/man1/okular.1.gz |
---|
[4664] | 140 | |
---|
| 141 | %files devel |
---|
| 142 | %{_includedir}/kde4/okular/ |
---|
| 143 | %{_libdir}/libokularcore.so |
---|
| 144 | %{_libdir}/cmake/Okular/ |
---|
| 145 | |
---|
| 146 | %files libs |
---|
[7801] | 147 | %{_libdir}/libokularcore.so.* |
---|
[4664] | 148 | |
---|
| 149 | %files -n kio_msits |
---|
| 150 | %{_libdir}/kde4/kio_msits.so |
---|
| 151 | %{_datadir}/kde4/services/msits.protocol |
---|
| 152 | |
---|
| 153 | |
---|
| 154 | %changelog |
---|
[8056] | 155 | * Mon Dec 23 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.4-1 |
---|
| 156 | - new upstream release |
---|
| 157 | |
---|
[7801] | 158 | * Sun Sep 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1 |
---|
| 159 | - new upstream release |
---|
| 160 | |
---|
[7728] | 161 | * Sat Jul 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.10.5-1 |
---|
| 162 | - new upstream release |
---|
| 163 | - add BuildRequires: kactivities-devel |
---|
| 164 | |
---|
[7294] | 165 | * Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.5-1 |
---|
| 166 | - new upstream release |
---|
| 167 | |
---|
[7105] | 168 | * Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.3-1 |
---|
| 169 | - new upstream release |
---|
| 170 | |
---|
[6899] | 171 | * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1 |
---|
| 172 | - new upstream release |
---|
| 173 | |
---|
[6890] | 174 | * Sun Sep 30 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-2 |
---|
| 175 | - rebuild with poppler-0.20.4 |
---|
| 176 | |
---|
[6797] | 177 | * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1 |
---|
| 178 | - new upstream release |
---|
| 179 | |
---|
[6725] | 180 | * Sun Aug 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1 |
---|
| 181 | - new upstream release |
---|
| 182 | - remove Patch54 (kdegraphics-4.6.90-okular-landscape.patch) |
---|
| 183 | |
---|
[5298] | 184 | * Sun Dec 18 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.4-1 |
---|
| 185 | - new upstream release |
---|
| 186 | |
---|
[5059] | 187 | * Tue Oct 25 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.2-1 |
---|
| 188 | - new upstream release |
---|
| 189 | |
---|
[4664] | 190 | * Tue Aug 2 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-2 |
---|
| 191 | - Initial build for Vine Linux |
---|
| 192 | |
---|
| 193 | * Tue Jul 26 2011 Jaroslav Reznik <jreznik@redhat.com> 4.7.0-1 |
---|
| 194 | - 4.7.0 |
---|
| 195 | |
---|
| 196 | * Mon Jul 18 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-4 |
---|
| 197 | - %%postun: +update-desktop-database |
---|
| 198 | |
---|
| 199 | * Mon Jul 18 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-3 |
---|
| 200 | - BR: pkgconfig(qca2) |
---|
| 201 | |
---|
| 202 | * Fri Jul 15 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-2 |
---|
| 203 | - bump release |
---|
| 204 | |
---|
| 205 | * Mon Jul 11 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-1 |
---|
| 206 | - 4.6.95 |
---|
| 207 | - fix URL |
---|
| 208 | |
---|
| 209 | * Wed Jul 06 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-3 |
---|
| 210 | - fix Source URL |
---|
| 211 | - Conflicts: kdegraphics < 7:4.6.90-10 |
---|
| 212 | |
---|
| 213 | * Tue Jul 05 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-2 |
---|
| 214 | - first try |
---|
| 215 | |
---|