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