1 | Name: okular |
---|
2 | Summary: A document viewer |
---|
3 | Summary(ja): 文章ビューア |
---|
4 | Version: 4.12.5 |
---|
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: kactivities-devel >= %{version} |
---|
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 | Vendor: Project Vine |
---|
40 | Distribution: Vine Linux |
---|
41 | |
---|
42 | %description |
---|
43 | %{summary}. |
---|
44 | |
---|
45 | %package devel |
---|
46 | Summary: Development files for %{name} |
---|
47 | Summary(ja): %{name} の開発用ファイル |
---|
48 | Group: Development/Libraries |
---|
49 | Requires: %{name}-libs = %{version}-%{release} |
---|
50 | Requires: kdelibs4-devel |
---|
51 | |
---|
52 | %description devel |
---|
53 | %{summary}. |
---|
54 | |
---|
55 | %package libs |
---|
56 | Summary: Runtime files for %{name} |
---|
57 | Summary(ja): %{name} のランタイムライブラリ |
---|
58 | Group: System Environment/Libraries |
---|
59 | #Requires: %{name} = %{version}-%{release} |
---|
60 | |
---|
61 | %description libs |
---|
62 | %{summary}. |
---|
63 | |
---|
64 | %package -n kio_msits |
---|
65 | #Epoch: %{kio_msits_epoch} |
---|
66 | Summary: A kioslave for displaying WinHelp files |
---|
67 | Group: System Environment/Libraries |
---|
68 | |
---|
69 | %description -n kio_msits |
---|
70 | %{summary}. |
---|
71 | |
---|
72 | |
---|
73 | %prep |
---|
74 | %setup -q |
---|
75 | |
---|
76 | %patch50 -p2 -b .okular_dt |
---|
77 | %patch51 -p2 -b .OkularConfig |
---|
78 | |
---|
79 | |
---|
80 | %build |
---|
81 | mkdir -p %{_target_platform} |
---|
82 | pushd %{_target_platform} |
---|
83 | %cmake \ |
---|
84 | -DCMAKE_BUILD_TYPE=release \ |
---|
85 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
86 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
87 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
88 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
89 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
90 | .. |
---|
91 | popd |
---|
92 | |
---|
93 | make %{?_smp_mflags} -C %{_target_platform} |
---|
94 | |
---|
95 | |
---|
96 | %install |
---|
97 | rm -rf $RPM_BUILD_ROOT |
---|
98 | |
---|
99 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
100 | |
---|
101 | |
---|
102 | %check |
---|
103 | desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/kde4/%{name}.desktop |
---|
104 | |
---|
105 | |
---|
106 | %post |
---|
107 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
---|
108 | |
---|
109 | %posttrans |
---|
110 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
---|
111 | update-desktop-database -q &> /dev/null ||: |
---|
112 | |
---|
113 | %postun |
---|
114 | if [ $1 -eq 0 ] ; then |
---|
115 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
---|
116 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
---|
117 | update-desktop-database -q &> /dev/null ||: |
---|
118 | fi |
---|
119 | |
---|
120 | %post libs -p /sbin/ldconfig |
---|
121 | %postun libs -p /sbin/ldconfig |
---|
122 | |
---|
123 | |
---|
124 | %files |
---|
125 | %doc COPYING |
---|
126 | %{_bindir}/%{name}* |
---|
127 | %{_datadir}/kde4/apps/%{name}/ |
---|
128 | %{_datadir}/applications/kde4/%{name}.desktop |
---|
129 | %{_datadir}/applications/kde4/%{name}Application_*.desktop |
---|
130 | %{_datadir}/applications/kde4/active-documentviewer_*.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 | %{_libdir}/kde4/imports/org/kde/okular |
---|
141 | %{_datadir}/kde4/apps/kconf_update/okular.upd |
---|
142 | %{_mandir}/man1/okular.1.gz |
---|
143 | |
---|
144 | %files devel |
---|
145 | %{_includedir}/kde4/okular/ |
---|
146 | %{_libdir}/libokularcore.so |
---|
147 | %{_libdir}/cmake/Okular/ |
---|
148 | |
---|
149 | %files libs |
---|
150 | %{_libdir}/libokularcore.so.* |
---|
151 | |
---|
152 | %files -n kio_msits |
---|
153 | %{_libdir}/kde4/kio_msits.so |
---|
154 | %{_datadir}/kde4/services/msits.protocol |
---|
155 | |
---|
156 | |
---|
157 | %changelog |
---|
158 | * Tue May 06 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.5-1 |
---|
159 | - new upstream release |
---|
160 | |
---|
161 | * Sun Feb 09 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.2-1 |
---|
162 | - new upstream release |
---|
163 | |
---|
164 | * Mon Dec 23 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.4-1 |
---|
165 | - new upstream release |
---|
166 | |
---|
167 | * Sun Sep 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1 |
---|
168 | - new upstream release |
---|
169 | |
---|
170 | * Sat Jul 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.10.5-1 |
---|
171 | - new upstream release |
---|
172 | - add BuildRequires: kactivities-devel |
---|
173 | |
---|
174 | * Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.5-1 |
---|
175 | - new upstream release |
---|
176 | |
---|
177 | * Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.3-1 |
---|
178 | - new upstream release |
---|
179 | |
---|
180 | * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1 |
---|
181 | - new upstream release |
---|
182 | |
---|
183 | * Sun Sep 30 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-2 |
---|
184 | - rebuild with poppler-0.20.4 |
---|
185 | |
---|
186 | * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1 |
---|
187 | - new upstream release |
---|
188 | |
---|
189 | * Sun Aug 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1 |
---|
190 | - new upstream release |
---|
191 | - remove Patch54 (kdegraphics-4.6.90-okular-landscape.patch) |
---|
192 | |
---|
193 | * Sun Dec 18 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.4-1 |
---|
194 | - new upstream release |
---|
195 | |
---|
196 | * Tue Oct 25 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.2-1 |
---|
197 | - new upstream release |
---|
198 | |
---|
199 | * Tue Aug 2 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-2 |
---|
200 | - Initial build for Vine Linux |
---|
201 | |
---|
202 | * Tue Jul 26 2011 Jaroslav Reznik <jreznik@redhat.com> 4.7.0-1 |
---|
203 | - 4.7.0 |
---|
204 | |
---|
205 | * Mon Jul 18 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-4 |
---|
206 | - %%postun: +update-desktop-database |
---|
207 | |
---|
208 | * Mon Jul 18 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-3 |
---|
209 | - BR: pkgconfig(qca2) |
---|
210 | |
---|
211 | * Fri Jul 15 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-2 |
---|
212 | - bump release |
---|
213 | |
---|
214 | * Mon Jul 11 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-1 |
---|
215 | - 4.6.95 |
---|
216 | - fix URL |
---|
217 | |
---|
218 | * Wed Jul 06 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-3 |
---|
219 | - fix Source URL |
---|
220 | - Conflicts: kdegraphics < 7:4.6.90-10 |
---|
221 | |
---|
222 | * Tue Jul 05 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-2 |
---|
223 | - first try |
---|
224 | |
---|