[521] | 1 | Name: google-gadgets |
---|
[1961] | 2 | Summary: Google Gadgets platform for Linux |
---|
| 3 | Version: 0.11.2 |
---|
[10784] | 4 | Release: 5%{?_dist_release} |
---|
[521] | 5 | |
---|
[9154] | 6 | Group: System Environment/Libraries |
---|
[521] | 7 | License: ASL 2.0 |
---|
| 8 | URL: http://code.google.com/p/google-gadgets-for-linux/ |
---|
[1961] | 9 | |
---|
[4670] | 10 | Vendor: Project Vine |
---|
| 11 | Distribution: Vine Linux |
---|
| 12 | Packager: inagaki,yasumichi |
---|
| 13 | |
---|
[521] | 14 | Source0: http://google-gadgets-for-linux.googlecode.com/files/google-gadgets-for-linux-%{version}.tar.bz2 |
---|
[9154] | 15 | # Vine Patches |
---|
[4670] | 16 | Patch0: NM-0.9.patch |
---|
[9154] | 17 | Patch1: nm-mobile-devtypes.patch |
---|
| 18 | Patch2: glib-2.32.patch |
---|
| 19 | Patch3: gcc-4.7.patch |
---|
[1961] | 20 | |
---|
[521] | 21 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[1961] | 22 | BuildRequires: WebKit-gtk-devel |
---|
[9154] | 23 | BuildRequires: cairo-devel |
---|
| 24 | BuildRequires: curl-devel |
---|
| 25 | BuildRequires: dbus-devel |
---|
| 26 | BuildRequires: desktop-file-utils |
---|
| 27 | BuildRequires: gstreamer-devel |
---|
| 28 | BuildRequires: gstreamer-plugins-base-devel |
---|
| 29 | BuildRequires: gtk2-devel |
---|
| 30 | BuildRequires: librsvg2-devel |
---|
| 31 | BuildRequires: libtool-ltdl-devel |
---|
| 32 | BuildRequires: libxml2-devel |
---|
| 33 | BuildRequires: pkgconfig |
---|
| 34 | BuildRequires: qt4-devel |
---|
| 35 | BuildRequires: zip |
---|
| 36 | BuildRequires: zlib-devel |
---|
[521] | 37 | # Desktop integration |
---|
[9154] | 38 | BuildRequires: NetworkManager-devel |
---|
| 39 | BuildRequires: startup-notification-devel |
---|
| 40 | #Requires: %{name}-frontend = %{version}-%{release} |
---|
[521] | 41 | Requires: hicolor-icon-theme |
---|
| 42 | |
---|
| 43 | %description |
---|
| 44 | Google Gadgets for Linux provides a platform for running desktop |
---|
| 45 | gadgets under Linux, catering to the unique needs of Linux users. It |
---|
| 46 | can run, without modification, many Google Desktop gadgets as well as |
---|
| 47 | the Universal Gadgets on iGoogle. |
---|
| 48 | |
---|
| 49 | |
---|
| 50 | %package gtk |
---|
| 51 | Summary: GTK+ front-end for %{name} |
---|
[1961] | 52 | Summary(ja): Google Gadgets の GTK+ 版フロントエンド |
---|
[521] | 53 | Group: User Interface/Desktops |
---|
| 54 | Requires: %{name} = %{version}-%{release} |
---|
| 55 | Provides: %{name}-frontend = %{version}-%{release} |
---|
| 56 | |
---|
| 57 | %description gtk |
---|
| 58 | The %{name}-gtk package contains the GTK+ front-end for %{name}. |
---|
| 59 | |
---|
| 60 | |
---|
| 61 | %package qt |
---|
| 62 | Summary: Qt front-end for %{name} |
---|
[1961] | 63 | Summary(ja): Google Gadgets の Qt 版フロントエンド |
---|
[521] | 64 | Group: User Interface/Desktops |
---|
| 65 | Requires: %{name} = %{version}-%{release} |
---|
| 66 | Provides: %{name}-frontend = %{version}-%{release} |
---|
| 67 | |
---|
| 68 | %description qt |
---|
| 69 | The %{name}-qt package contains the Qt front-end for %{name}. |
---|
| 70 | |
---|
| 71 | |
---|
| 72 | %package devel |
---|
| 73 | Summary: Development files for %{name} |
---|
[1961] | 74 | Summary(ja): %{name} の開発用ファイル |
---|
[521] | 75 | Group: Development/Libraries |
---|
| 76 | Requires: %{name} = %{version}-%{release} |
---|
| 77 | Requires: pkgconfig dbus-devel gtk2-devel qt4-devel |
---|
| 78 | Requires: %{name}-gtk |
---|
| 79 | Requires: %{name}-qt |
---|
| 80 | |
---|
| 81 | %description devel |
---|
| 82 | The %{name}-devel package contains libraries and header files for |
---|
| 83 | developing applications that use %{name}. |
---|
| 84 | |
---|
| 85 | |
---|
| 86 | %prep |
---|
| 87 | %setup -q -n %{name}-for-linux-%{version} |
---|
[4670] | 88 | %patch0 -p1 |
---|
[9154] | 89 | %patch1 -p1 |
---|
| 90 | %patch2 -p1 |
---|
| 91 | %patch3 -p1 |
---|
| 92 | |
---|
[521] | 93 | # Permission fixes |
---|
| 94 | chmod -x ggadget/qt/utilities.h |
---|
[1961] | 95 | # Fix invalid desktop file MIME type |
---|
| 96 | # http://code.google.com/p/google-gadgets-for-linux/issues/detail?id=360 |
---|
| 97 | for f in hosts/*/ggl-*.desktop.in; do |
---|
| 98 | sed -i 's|;app/gg;|;|' $f |
---|
| 99 | done |
---|
[521] | 100 | |
---|
| 101 | |
---|
| 102 | %build |
---|
| 103 | %configure --disable-static \ |
---|
[4615] | 104 | --with-browser-plugins-dir=%{_libdir}/mozilla/plugins \ |
---|
| 105 | --disable-gtkmoz-browser-element --disable-smjs-script-runtime |
---|
[521] | 106 | |
---|
| 107 | # Rpath fix by Mamoru Tasaka |
---|
| 108 | # we don't want to obliterate all RPATHs, since it is used during build |
---|
| 109 | # Add library search path |
---|
| 110 | sed -i.libdir_syssearch -e \ |
---|
| 111 | '/sys_lib_dlsearch_path_spec/s|/usr/lib |/usr/lib /usr/lib64 /lib /lib64 |' \ |
---|
| 112 | configure |
---|
| 113 | # Remove the redundant RPATH for %%{_libdir}, already searched by Fedora libtool |
---|
| 114 | sed -i.extra_R -e \ |
---|
| 115 | 's|-R\$(libdir)||' \ |
---|
| 116 | hosts/*/Makefile.in |
---|
| 117 | |
---|
| 118 | # default compile flags are impossibly strict |
---|
| 119 | make %{?_smp_mflags} DEFAULT_COMPILE_FLAGS= |
---|
| 120 | |
---|
| 121 | # Remove quotes from .pc files |
---|
| 122 | find . -name '*.pc' -exec sed -i 's|\"||g' '{}' \; |
---|
| 123 | |
---|
| 124 | |
---|
| 125 | %install |
---|
| 126 | rm -rf $RPM_BUILD_ROOT |
---|
| 127 | make install DESTDIR=$RPM_BUILD_ROOT \ |
---|
| 128 | INSTALL="install -p" CPPROG="cp -p" |
---|
| 129 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' |
---|
| 130 | |
---|
| 131 | # reinstall desktop files |
---|
| 132 | for i in gtk qt; do |
---|
| 133 | desktop-file-install \ |
---|
| 134 | --dir=$RPM_BUILD_ROOT%{_datadir}/applications \ |
---|
| 135 | --delete-original \ |
---|
| 136 | $RPM_BUILD_ROOT%{_datadir}/applications/ggl-$i.desktop |
---|
| 137 | done |
---|
| 138 | |
---|
| 139 | # wipe prematurely-generated MIME info |
---|
| 140 | rm -rf $RPM_BUILD_ROOT%{_datadir}/mime |
---|
| 141 | rm -f $RPM_BUILD_ROOT%{_datadir}/applications/mimeinfo.cache |
---|
| 142 | |
---|
| 143 | %clean |
---|
| 144 | rm -rf $RPM_BUILD_ROOT |
---|
| 145 | |
---|
| 146 | |
---|
| 147 | %post |
---|
| 148 | /sbin/ldconfig |
---|
| 149 | touch --no-create %{_datadir}/icons/hicolor || : |
---|
| 150 | |
---|
| 151 | %postun |
---|
| 152 | /sbin/ldconfig |
---|
[1961] | 153 | if [ $1 -eq 0 ] ; then |
---|
| 154 | touch --no-create %{_datadir}/icons/hicolor &>/dev/null |
---|
| 155 | gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : |
---|
[521] | 156 | fi |
---|
| 157 | |
---|
[1961] | 158 | %posttrans |
---|
| 159 | gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : |
---|
| 160 | |
---|
[521] | 161 | %post gtk |
---|
| 162 | /sbin/ldconfig |
---|
| 163 | update-desktop-database &> /dev/null || : |
---|
| 164 | |
---|
| 165 | %postun gtk |
---|
| 166 | /sbin/ldconfig |
---|
| 167 | update-desktop-database &> /dev/null || : |
---|
| 168 | |
---|
| 169 | %post qt |
---|
| 170 | /sbin/ldconfig |
---|
| 171 | update-desktop-database &> /dev/null || : |
---|
| 172 | |
---|
| 173 | %postun qt |
---|
| 174 | /sbin/ldconfig |
---|
| 175 | update-desktop-database &> /dev/null || : |
---|
| 176 | |
---|
| 177 | |
---|
| 178 | %files |
---|
| 179 | %defattr(-,root,root,-) |
---|
| 180 | %doc AUTHORS COPYING README |
---|
| 181 | %{_libdir}/google-gadgets |
---|
[4615] | 182 | #%%exclude %{_libdir}/google-gadgets/gtkmoz-browser-child |
---|
[521] | 183 | %exclude %{_libdir}/google-gadgets/modules/gtk*.so |
---|
| 184 | %exclude %{_libdir}/google-gadgets/modules/qt*.so |
---|
| 185 | %exclude %{_libdir}/google-gadgets/include |
---|
| 186 | %{_libdir}/lib*.so.* |
---|
| 187 | %exclude %{_libdir}/lib*gtk* |
---|
| 188 | %exclude %{_libdir}/lib*qt* |
---|
| 189 | %{_datadir}/google-gadgets |
---|
| 190 | %{_datadir}/pixmaps/google-gadgets.png |
---|
| 191 | %{_datadir}/icons/hicolor/*/*/*.png |
---|
| 192 | |
---|
| 193 | %files gtk |
---|
| 194 | %defattr(-,root,root,-) |
---|
| 195 | %{_bindir}/ggl-gtk |
---|
| 196 | %{_libdir}/libggadget-gtk*.so.* |
---|
[4615] | 197 | #%%{_libdir}/google-gadgets/gtkmoz-browser-child |
---|
[521] | 198 | %{_libdir}/google-gadgets/modules/gtk*.so |
---|
| 199 | %{_datadir}/applications/*gtk.desktop |
---|
| 200 | %{_datadir}/applications/*designer.desktop |
---|
| 201 | |
---|
| 202 | %files qt |
---|
| 203 | %defattr(-,root,root,-) |
---|
| 204 | %{_bindir}/ggl-qt |
---|
| 205 | %{_libdir}/libggadget-qt*.so.* |
---|
| 206 | %{_libdir}/google-gadgets/modules/qt*.so |
---|
| 207 | %{_datadir}/applications/*qt.desktop |
---|
| 208 | |
---|
| 209 | %files devel |
---|
| 210 | %defattr(-,root,root,-) |
---|
| 211 | %{_includedir}/google-gadgets |
---|
| 212 | %{_libdir}/lib*.so |
---|
| 213 | %{_libdir}/google-gadgets/include |
---|
| 214 | %{_libdir}/pkgconfig/*.pc |
---|
| 215 | |
---|
| 216 | |
---|
| 217 | %changelog |
---|
[10784] | 218 | * Thu Sep 01 2016 Toshiaki Ara <ara_t@384.jp> 0.11.2-5 |
---|
| 219 | - rebuild with gcc-5.4.0 |
---|
| 220 | |
---|
[9154] | 221 | * Sat Dec 13 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.11.2-4 |
---|
| 222 | - added Patch1, 2 and 3 |
---|
| 223 | |
---|
[4670] | 224 | * Sat Aug 27 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.11.2-3 |
---|
| 225 | - add patch for building with NetworkManager-0.9.0 |
---|
| 226 | - add Vendor, Distribution and Packager tag |
---|
| 227 | |
---|
[4615] | 228 | * Thu Aug 18 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.11.2-2 |
---|
| 229 | - not work with xulrunner 2.0, remove from BR. |
---|
| 230 | - add --disable-gtkmoz-browser-element , --disable-smjs-script-runtime |
---|
| 231 | |
---|
[1961] | 232 | * Thu Sep 30 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.11.2-1 |
---|
| 233 | - new upstream release |
---|
| 234 | - built with rpm-4.8.1 for pkg-config |
---|
| 235 | - dropt Patch0 |
---|
| 236 | - added BR: WebKit-gtk-devel |
---|
| 237 | - removed invalid MIME entry from .desktop files |
---|
| 238 | |
---|
[521] | 239 | * Sat Oct 24 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.11.1-1 |
---|
| 240 | - new upstream release |
---|
| 241 | |
---|
| 242 | * Sat Aug 29 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.11.0-2 |
---|
| 243 | - Initial build for Vine Linux |
---|
| 244 | |
---|
| 245 | * Wed Jul 1 2009 Michel Salim <michel@erdos.localdomain> - 0.11.0-1 |
---|
| 246 | - Update to 0.11.0 |
---|
| 247 | |
---|
| 248 | * Sat May 2 2009 Michel Salim <salimma@fedoraproject.org> - 0.10.6-0.1.20090430svn1449%{?dist} |
---|
| 249 | - Update to SVN checkout, for xulrunner 1.9.1 compatibility |
---|
| 250 | |
---|
| 251 | * Mon Apr 27 2009 Christopher Aillon <caillon@redhat.com> - 0.10.5-6 |
---|
| 252 | - Rebuild against newer gecko |
---|
| 253 | |
---|
| 254 | * Fri Mar 27 2009 Christopher Aillon <caillon@redhat.com> - 0.10.5-4 |
---|
| 255 | - Rebuild against newer gecko |
---|
| 256 | |
---|
| 257 | * Fri Mar 06 2009 Jan Horak <jhorak@redhat.com> - 0.10.5-3 |
---|
| 258 | - Rebuild against newer gecko |
---|
| 259 | |
---|
| 260 | * Wed Feb 04 2009 Christopher Aillon <caillon@redhat.com> - 0.10.5-2 |
---|
| 261 | - Rebuild against newer gecko |
---|
| 262 | |
---|
| 263 | * Wed Jan 14 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.10.5-1 |
---|
| 264 | - 0.10.5, req'd by kde |
---|
| 265 | |
---|
| 266 | * Tue Dec 30 2008 Michel Salim <salimma@fedoraproject.org> - 0.10.4-2 |
---|
| 267 | - BR: Network-Manager-devel, startup-notification-devel |
---|
| 268 | - Pass the browser plugin directory to ./configure |
---|
| 269 | - Move designer desktop entry to -gtk subpackage |
---|
| 270 | |
---|
| 271 | * Sat Dec 20 2008 Rex Dieter <rdieter@fedoraproject.org> - 0.10.4-1 |
---|
| 272 | - Update to 0.10.4 (#477251) |
---|
| 273 | - -devel: Requires: %%name-gtk %%name-qt (devel symlinks) |
---|
| 274 | - BR: pkgconfig (automatic pkgconfig deps) |
---|
| 275 | |
---|
| 276 | * Sun Nov 23 2008 Michel Salim <salimma@fedoraproject.org> - 0.10.3-1 |
---|
| 277 | - Update to 0.10.3 |
---|
| 278 | |
---|
| 279 | * Sat Nov 8 2008 Rex Dieter <rdieter@fedoraproject.org> - 0.10.1-5 |
---|
| 280 | - s/qt-devel/qt4-devel/ |
---|
| 281 | - -qt: fix summary |
---|
| 282 | |
---|
| 283 | * Tue Sep 2 2008 Michel Salim <salimma@fedoraproject.org> - 0.10.1-4 |
---|
| 284 | - Unquote version strings in .pc files |
---|
| 285 | |
---|
| 286 | * Thu Aug 28 2008 Michel Salim <salimma@fedoraproject.org> - 0.10.1-3 |
---|
| 287 | - RPATH and timestamp fixes from Mamoru Tasaka |
---|
| 288 | |
---|
| 289 | * Tue Aug 26 2008 Michel Salim <salimma@fedoraproject.org> - 0.10.1-2 |
---|
| 290 | - Fix desktop file creation |
---|
| 291 | |
---|
| 292 | * Mon Aug 25 2008 Michel Salim <salimma@fedoraproject.org> - 0.10.1-1 |
---|
| 293 | - Update to 0.10.1 |
---|
| 294 | |
---|
| 295 | * Mon Jul 14 2008 Michel Salim <salimma@fedoraproject.org> - 0.10.0-1 |
---|
| 296 | - Update to 0.10.0 |
---|
| 297 | - Add missing dependencies for -devel subpackage |
---|
| 298 | |
---|
| 299 | * Sun Jul 6 2008 Michel Salim <salimma@fedoraproject.org> - 0.9.3-1 |
---|
| 300 | - Update to 0.9.3 |
---|
| 301 | |
---|
| 302 | * Fri Jun 6 2008 Michel Salim <salimma@fedoraproject.org> - 0.9.1-1 |
---|
| 303 | - Initial package |
---|