[4616] | 1 | %define add_to_doc_files() \ |
---|
| 2 | mkdir -p %{buildroot}%{_docdir}/%{name}-%{version}; \ |
---|
| 3 | cp -p %1 %{buildroot}%{_docdir}/%{name}-%{version}/$(echo '%1' | sed -e 's!/!.!g') \ |
---|
| 4 | echo %%{_docdir}/%{name}-%{version}/$(echo '%1' | sed -e 's!/!.!g') >> docfiles.list |
---|
| 5 | |
---|
| 6 | #define svn_revision 43436 |
---|
| 7 | |
---|
| 8 | # --with coverage: Enables compile-time checking of code coverage. (default: no) |
---|
| 9 | %bcond_with coverage |
---|
| 10 | # --with jit: Enable JIT ("just-in-time") JavaScript compiling support. |
---|
| 11 | #%bcond_with jit |
---|
| 12 | # --with pango : use pango for font rendering instead of freetype2 (default: use freetype2) |
---|
| 13 | %bcond_with pango |
---|
| 14 | # --with wml: Build support for WML |
---|
| 15 | %bcond_with wml |
---|
| 16 | |
---|
| 17 | Name: WebKit3 |
---|
[7294] | 18 | Version: 1.10.2 |
---|
[4616] | 19 | Release: 1%{?_dist_release} |
---|
| 20 | Summary: Web content engine library |
---|
| 21 | Summary(ja): ウェブコンテンツエンジンライブラリ |
---|
| 22 | |
---|
| 23 | Group: Development/Libraries |
---|
| 24 | License: LGPLv2+ and BSD |
---|
| 25 | URL: http://webkitgtk.org/ |
---|
| 26 | |
---|
| 27 | Vendor: Project Vine |
---|
| 28 | Distribution: Vine Linux |
---|
| 29 | Packager: Takemikaduchi |
---|
| 30 | |
---|
[6890] | 31 | Source0: http://www.webkitgtk.org/webkitgtk-%{version}.tar.xz |
---|
[4616] | 32 | |
---|
| 33 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 34 | |
---|
| 35 | BuildRequires: bison |
---|
| 36 | BuildRequires: flex |
---|
| 37 | BuildRequires: gperf |
---|
[6890] | 38 | BuildRequires: ruby |
---|
[4616] | 39 | BuildRequires: gtk3-devel |
---|
[6890] | 40 | BuildRequires: gtk2-devel |
---|
[4616] | 41 | BuildRequires: libicu-devel |
---|
| 42 | BuildRequires: libjpeg-turbo-devel |
---|
| 43 | BuildRequires: libtool |
---|
| 44 | BuildRequires: libxslt-devel |
---|
| 45 | BuildRequires: libXt-devel |
---|
| 46 | BuildRequires: pcre-devel |
---|
| 47 | BuildRequires: sqlite3-devel |
---|
| 48 | BuildRequires: geoclue-devel |
---|
[6011] | 49 | BuildRequires: gcr-devel |
---|
[6890] | 50 | BuildRequires: gstreamer1-devel |
---|
| 51 | BuildRequires: gstreamer1-plugins-base-devel |
---|
[4616] | 52 | BuildRequires: enchant-devel |
---|
| 53 | BuildRequires: gobject-introspection-devel |
---|
[6011] | 54 | BuildRequires: gsettings-desktop-schemas |
---|
| 55 | BuildRequires: gtk-doc |
---|
[4616] | 56 | |
---|
| 57 | %if %{with pango} |
---|
| 58 | BuildRequires: pango-devel |
---|
| 59 | %else |
---|
| 60 | BuildRequires: cairo-devel |
---|
| 61 | BuildRequires: fontconfig-devel |
---|
| 62 | BuildRequires: freetype2-devel |
---|
| 63 | %endif |
---|
| 64 | |
---|
| 65 | BuildRequires: libsoup-devel >= 2.28.2 |
---|
| 66 | |
---|
| 67 | |
---|
| 68 | %description |
---|
| 69 | WebKit is an open source web browser engine. |
---|
| 70 | |
---|
| 71 | %package gtk |
---|
| 72 | Summary: GTK+ port of WebKit |
---|
| 73 | Summary(ja): WebKit の GTK+ ポート |
---|
| 74 | Group: Development/Libraries |
---|
| 75 | |
---|
| 76 | %description gtk |
---|
| 77 | %{name} is an open-source Web content engine library. This package contains |
---|
| 78 | the shared libraries for the WebKit GTK+ port as well as the sample |
---|
| 79 | GtkLauncher tool. |
---|
| 80 | |
---|
| 81 | |
---|
| 82 | %package gtk-devel |
---|
| 83 | Summary: Development package for %{name} |
---|
| 84 | Summary(ja): %{name} の開発パッケージ |
---|
| 85 | Group: Development/Libraries |
---|
| 86 | Requires: %{name}-gtk = %{version}-%{release} |
---|
| 87 | Requires: pkgconfig |
---|
| 88 | Requires: gtk3-devel |
---|
| 89 | Requires: libsoup-devel >= 2.28.2 |
---|
| 90 | |
---|
| 91 | %description gtk-devel |
---|
| 92 | The %{name}-gtk-devel package contains libraries, build data, and header |
---|
| 93 | files for developing applications that use %{name}-gtk. |
---|
| 94 | Please note that the WebKit/GTK+ API is not yet stable. This should |
---|
| 95 | only be used as a "preview" rather than a stable platform library. |
---|
| 96 | |
---|
| 97 | |
---|
| 98 | %package doc |
---|
| 99 | Summary: Documentation for %{name} |
---|
| 100 | Summary(ja): %{name} のドキュメント |
---|
| 101 | Group: Documentation |
---|
| 102 | |
---|
| 103 | %description doc |
---|
| 104 | %{name} is an open-source Web content engine library. This package contains |
---|
| 105 | the documentation for %{name}, including various LICENSE, README, and |
---|
| 106 | AUTHORS files. |
---|
| 107 | |
---|
| 108 | |
---|
| 109 | %prep |
---|
[6890] | 110 | %setup -q -n webkitgtk-%{version} |
---|
[4616] | 111 | |
---|
| 112 | %build |
---|
| 113 | %configure \ |
---|
| 114 | --with-gtk=3.0 \ |
---|
[6890] | 115 | --with-gstreamer=1.0 \ |
---|
[4616] | 116 | --enable-icon-database \ |
---|
| 117 | --enable-geolocation \ |
---|
| 118 | --enable-introspection=yes \ |
---|
[6890] | 119 | --enable-dependency-tracking \ |
---|
[4616] | 120 | %{?with_coverage: --enable-coverage } \ |
---|
| 121 | %{?with_pango: --with-font-backend=pango } \ |
---|
| 122 | %{?with_wml: --enable-wml } |
---|
[6890] | 123 | |
---|
[6011] | 124 | make V=1 %{?_smp_mflags} |
---|
[4616] | 125 | |
---|
| 126 | # workaround for bug 488112 |
---|
| 127 | # Compile libJavaScriptCore.a with -fno-strict-aliasing |
---|
| 128 | ##touch JavaScriptCore/AllInOneFile.cpp |
---|
| 129 | ##make %{?_smp_mflags} CXXFLAGS="%{optflags} -fno-strict-aliasing" |
---|
| 130 | |
---|
| 131 | |
---|
| 132 | %install |
---|
| 133 | rm -rf %{buildroot} |
---|
| 134 | |
---|
| 135 | make install DESTDIR=%{buildroot} |
---|
| 136 | install -d -m 755 %{buildroot}%{_libexecdir}/%{name} |
---|
| 137 | install -m 755 Programs/GtkLauncher %{buildroot}%{_libexecdir}/%{name} |
---|
| 138 | |
---|
[6011] | 139 | # conflict with WebKit-doc |
---|
| 140 | rm -rf $RPM_BUILD_ROOT%{_datadir}/gtk-doc |
---|
| 141 | |
---|
[4616] | 142 | # Finally, copy over and rename the various files for %%doc inclusion. |
---|
| 143 | %add_to_doc_files Source/WebKit/LICENSE |
---|
| 144 | %add_to_doc_files Source/WebKit/gtk/po/README |
---|
| 145 | %add_to_doc_files Source/WebKit/gtk/NEWS |
---|
| 146 | %add_to_doc_files Source/WebCore/icu/LICENSE |
---|
| 147 | %add_to_doc_files Source/WebCore/LICENSE-APPLE |
---|
| 148 | %add_to_doc_files Source/WebCore/LICENSE-LGPL-2 |
---|
| 149 | %add_to_doc_files Source/WebCore/LICENSE-LGPL-2.1 |
---|
| 150 | %add_to_doc_files Source/JavaScriptCore/COPYING.LIB |
---|
| 151 | %add_to_doc_files Source/JavaScriptCore/THANKS |
---|
| 152 | %add_to_doc_files Source/JavaScriptCore/AUTHORS |
---|
| 153 | %add_to_doc_files Source/JavaScriptCore/icu/README |
---|
| 154 | %add_to_doc_files Source/JavaScriptCore/icu/LICENSE |
---|
| 155 | |
---|
[6890] | 156 | %find_lang webkitgtk-3.0 |
---|
[4616] | 157 | |
---|
| 158 | %clean |
---|
| 159 | rm -rf %{buildroot} |
---|
| 160 | |
---|
| 161 | |
---|
| 162 | %post gtk -p /sbin/ldconfig |
---|
| 163 | |
---|
| 164 | %posttrans gtk |
---|
| 165 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
---|
| 166 | |
---|
| 167 | %postun gtk |
---|
| 168 | /sbin/ldconfig |
---|
| 169 | if [ $1 -eq 0 ] ; then |
---|
| 170 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
---|
| 171 | fi |
---|
| 172 | |
---|
| 173 | |
---|
| 174 | # %files -f webkit.lang gtk |
---|
[6890] | 175 | %files gtk -f webkitgtk-3.0.lang |
---|
[4616] | 176 | %defattr(-,root,root,-) |
---|
| 177 | %doc |
---|
| 178 | %{_libdir}/*.so.* |
---|
| 179 | %{_libexecdir}/WebKit3/ |
---|
[6890] | 180 | %{_libexecdir}/WebKitPluginProcess |
---|
| 181 | %{_libexecdir}/WebKitWebProcess |
---|
[4616] | 182 | %{_bindir}/jsc-3 |
---|
| 183 | %{_libdir}/girepository-1.0/*.typelib |
---|
| 184 | %{_datadir}/webkitgtk-3.0/* |
---|
| 185 | |
---|
| 186 | %files gtk-devel |
---|
| 187 | %defattr(-,root,root,-) |
---|
| 188 | %exclude %{_libdir}/*.la |
---|
[6011] | 189 | %{_includedir}/webkitgtk-3.0 |
---|
[4616] | 190 | %{_libdir}/*.so |
---|
| 191 | %{_libdir}/pkgconfig/*.pc |
---|
| 192 | %{_datadir}/gir-1.0/*.gir |
---|
| 193 | |
---|
| 194 | %files doc -f docfiles.list |
---|
| 195 | %defattr(-,root,root,-) |
---|
| 196 | |
---|
| 197 | |
---|
| 198 | %changelog |
---|
[7294] | 199 | * Wed Jan 02 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.10.2-1 |
---|
| 200 | - new upstream release |
---|
| 201 | |
---|
[6951] | 202 | * Wed Oct 17 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.10.1-1 |
---|
| 203 | - new upstream release |
---|
| 204 | |
---|
[6890] | 205 | * Sat Sep 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.10.0-1 |
---|
| 206 | - new upstream release |
---|
| 207 | - add BuildRequires: ruby, gtk2-devel |
---|
| 208 | - change BuildRequires: gstreamer1-devel instead of gstreamer-devel |
---|
| 209 | - change BuildRequires: gstreamer1-plugins-base-devel instead of gstreamer-pluings-base-devel |
---|
| 210 | |
---|
[6757] | 211 | * Tue Aug 28 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.8.3-1 |
---|
| 212 | - new upstream release |
---|
| 213 | |
---|
[6739] | 214 | * Thu Aug 16 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.8.2-1 |
---|
| 215 | - new upstream release |
---|
| 216 | |
---|
[6078] | 217 | * Sun Apr 28 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.8.1-1 |
---|
[6011] | 218 | - new upstream release |
---|
| 219 | - change BuildRequires: gcr-devel instead of gnome-keyring-devel |
---|
| 220 | - add BuildRequires: gsettings-desktop-schemas, gtk-doc |
---|
| 221 | |
---|
[4850] | 222 | * Wed Sep 28 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.6.1-1 |
---|
| 223 | - new upstream release |
---|
| 224 | |
---|
[4812] | 225 | * Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.5.90-1 |
---|
| 226 | - new upstream release |
---|
| 227 | |
---|
[4675] | 228 | * Sat Aug 27 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.5.2-1 |
---|
| 229 | - new upstream release |
---|
| 230 | |
---|
[4616] | 231 | * Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.5.1-1 |
---|
| 232 | - initial build for Vine Linux |
---|
| 233 | |
---|