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