[4664] | 1 | Name: okular |
---|
| 2 | Summary: A document viewer |
---|
| 3 | Summary(ja): 文章ビューア |
---|
[5298] | 4 | Version: 4.7.4 |
---|
[5059] | 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 | |
---|
[5059] | 11 | Source0: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.bz2 |
---|
[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 | # fix printing of landscape documents in Okular (#509645, kde#181290) |
---|
| 19 | # https://git.reviewboard.kde.org/r/101513/ |
---|
| 20 | Patch54: kdegraphics-4.6.90-okular-landscape.patch |
---|
| 21 | |
---|
| 22 | BuildRequires: chmlib-devel |
---|
| 23 | BuildRequires: desktop-file-utils |
---|
| 24 | BuildRequires: djvulibre-devel |
---|
| 25 | BuildRequires: ebook-tools-devel |
---|
| 26 | BuildRequires: kdelibs4-devel >= %{version} |
---|
| 27 | BuildRequires: libkipi-devel >= %{version} |
---|
| 28 | BuildRequires: libspectre-devel |
---|
| 29 | BuildRequires: libtiff-devel |
---|
| 30 | BuildRequires: poppler-qt4-devel |
---|
| 31 | BuildRequires: qca2-devel |
---|
| 32 | BuildRequires: qimageblitz-devel |
---|
| 33 | BuildRequires: soprano-devel |
---|
| 34 | |
---|
| 35 | Requires: %{name}-libs = %{version}-%{release} |
---|
| 36 | Requires: kio_msits = %{version}-%{release} |
---|
| 37 | Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}} |
---|
| 38 | # when split occurred |
---|
| 39 | Conflicts: kdegraphics < 4.6.95-10 |
---|
| 40 | |
---|
| 41 | %description |
---|
| 42 | %{summary}. |
---|
| 43 | |
---|
| 44 | %package devel |
---|
| 45 | Summary: Development files for %{name} |
---|
| 46 | Summary(ja): %{name} の開発用ファイル |
---|
| 47 | Group: Development/Libraries |
---|
| 48 | Requires: %{name}-libs = %{version}-%{release} |
---|
| 49 | Requires: kdelibs4-devel |
---|
| 50 | |
---|
| 51 | %description devel |
---|
| 52 | %{summary}. |
---|
| 53 | |
---|
| 54 | %package libs |
---|
| 55 | Summary: Runtime files for %{name} |
---|
| 56 | Summary(ja): %{name} のランタイムライブラリ |
---|
| 57 | Group: System Environment/Libraries |
---|
| 58 | #Requires: %{name} = %{version}-%{release} |
---|
| 59 | |
---|
| 60 | %description libs |
---|
| 61 | %{summary}. |
---|
| 62 | |
---|
| 63 | %package -n kio_msits |
---|
| 64 | #Epoch: %{kio_msits_epoch} |
---|
| 65 | Summary: A kioslave for displaying WinHelp files |
---|
| 66 | Group: System Environment/Libraries |
---|
| 67 | |
---|
| 68 | %description -n kio_msits |
---|
| 69 | %{summary}. |
---|
| 70 | |
---|
| 71 | |
---|
| 72 | %prep |
---|
| 73 | %setup -q |
---|
| 74 | |
---|
| 75 | %patch50 -p2 -b .okular_dt |
---|
| 76 | %patch51 -p2 -b .OkularConfig |
---|
| 77 | %patch54 -p2 -b .okular-landscape |
---|
| 78 | |
---|
| 79 | |
---|
| 80 | %build |
---|
| 81 | mkdir -p %{_target_platform} |
---|
| 82 | pushd %{_target_platform} |
---|
| 83 | unset QTDIR || : ; . /etc/profile.d/qt4.sh |
---|
| 84 | %cmake \ |
---|
| 85 | -DCMAKE_BUILD_TYPE=release \ |
---|
| 86 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
| 87 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
| 88 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
| 89 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
| 90 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
| 91 | .. |
---|
| 92 | popd |
---|
| 93 | |
---|
| 94 | make %{?_smp_mflags} -C %{_target_platform} |
---|
| 95 | |
---|
| 96 | |
---|
| 97 | %install |
---|
| 98 | rm -rf $RPM_BUILD_ROOT |
---|
| 99 | |
---|
| 100 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
| 101 | |
---|
| 102 | |
---|
| 103 | %check |
---|
| 104 | desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/kde4/%{name}.desktop |
---|
| 105 | |
---|
| 106 | |
---|
| 107 | %post |
---|
| 108 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 109 | |
---|
| 110 | %posttrans |
---|
| 111 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 112 | update-desktop-database -q &> /dev/null ||: |
---|
| 113 | |
---|
| 114 | %postun |
---|
| 115 | if [ $1 -eq 0 ] ; then |
---|
| 116 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 117 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 118 | update-desktop-database -q &> /dev/null ||: |
---|
| 119 | fi |
---|
| 120 | |
---|
| 121 | %post libs -p /sbin/ldconfig |
---|
| 122 | %postun libs -p /sbin/ldconfig |
---|
| 123 | |
---|
| 124 | |
---|
| 125 | %files |
---|
| 126 | %doc COPYING |
---|
| 127 | %{_bindir}/%{name}* |
---|
| 128 | %{_datadir}/kde4/apps/%{name}/ |
---|
| 129 | %{_datadir}/applications/kde4/%{name}.desktop |
---|
| 130 | %{_datadir}/applications/kde4//%{name}Application_*.desktop |
---|
| 131 | %{_datadir}/config.kcfg/*.kcfg |
---|
| 132 | %{_datadir}/kde4/services/lib%{name}Generator*.desktop |
---|
| 133 | %{_datadir}/kde4/services/%{name}[A-Z]*.desktop |
---|
| 134 | %{_datadir}/icons/hicolor/*/*/* |
---|
| 135 | %{_datadir}/doc/HTML/en/%{name}/ |
---|
| 136 | %{_libdir}/kde4/%{name}Generator*.so |
---|
| 137 | %{_datadir}/kde4/services/%{name}_part.desktop |
---|
| 138 | %{_datadir}/kde4/servicetypes/%{name}Generator.desktop |
---|
| 139 | %{_libdir}/kde4/%{name}part.so |
---|
| 140 | |
---|
| 141 | %files devel |
---|
| 142 | %{_includedir}/kde4/okular/ |
---|
| 143 | %{_libdir}/libokularcore.so |
---|
| 144 | %{_libdir}/cmake/Okular/ |
---|
| 145 | |
---|
| 146 | %files libs |
---|
| 147 | %{_libdir}/libokularcore.so.1* |
---|
| 148 | |
---|
| 149 | %files -n kio_msits |
---|
| 150 | %{_libdir}/kde4/kio_msits.so |
---|
| 151 | %{_datadir}/kde4/services/msits.protocol |
---|
| 152 | |
---|
| 153 | |
---|
| 154 | %changelog |
---|
[5298] | 155 | * Sun Dec 18 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.4-1 |
---|
| 156 | - new upstream release |
---|
| 157 | |
---|
[5059] | 158 | * Tue Oct 25 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.2-1 |
---|
| 159 | - new upstream release |
---|
| 160 | |
---|
[4664] | 161 | * Tue Aug 2 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-2 |
---|
| 162 | - Initial build for Vine Linux |
---|
| 163 | |
---|
| 164 | * Tue Jul 26 2011 Jaroslav Reznik <jreznik@redhat.com> 4.7.0-1 |
---|
| 165 | - 4.7.0 |
---|
| 166 | |
---|
| 167 | * Mon Jul 18 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-4 |
---|
| 168 | - %%postun: +update-desktop-database |
---|
| 169 | |
---|
| 170 | * Mon Jul 18 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-3 |
---|
| 171 | - BR: pkgconfig(qca2) |
---|
| 172 | |
---|
| 173 | * Fri Jul 15 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-2 |
---|
| 174 | - bump release |
---|
| 175 | |
---|
| 176 | * Mon Jul 11 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-1 |
---|
| 177 | - 4.6.95 |
---|
| 178 | - fix URL |
---|
| 179 | |
---|
| 180 | * Wed Jul 06 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-3 |
---|
| 181 | - fix Source URL |
---|
| 182 | - Conflicts: kdegraphics < 7:4.6.90-10 |
---|
| 183 | |
---|
| 184 | * Tue Jul 05 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-2 |
---|
| 185 | - first try |
---|
| 186 | |
---|