[521] | 1 | # -*- coding: utf-8-unix -*- |
---|
| 2 | %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} |
---|
| 3 | |
---|
| 4 | Name: avant-window-navigator |
---|
| 5 | Version: 0.2.6 |
---|
| 6 | Release: 4%{?_dist_release} |
---|
| 7 | |
---|
| 8 | Summary: Fully customisable dock-like window navigator for GNOME |
---|
| 9 | Summary(ja): Gnome + Compiz 向けの Dock 機能を兼ね備えたウィンドウナビゲータ |
---|
| 10 | |
---|
| 11 | Group: User Interface/Desktops |
---|
| 12 | #libawn is LGPLv2+, rest is GPLv2+ |
---|
| 13 | License: GPLv2+ and LGPLv2+ |
---|
| 14 | URL: https://launchpad.net/awn |
---|
| 15 | Source0: https://launchpad.net/awn/0.2/0.2/+download/%{name}-%{version}.tar.gz |
---|
| 16 | #fixes schemas file |
---|
| 17 | Patch0: avant-window-navigator-schemas.patch |
---|
| 18 | #fixes issue where awn only appears on one desktop, #469032 |
---|
| 19 | Patch1: avant-window-navigator-0.2.6-sticky.patch |
---|
| 20 | |
---|
| 21 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 22 | |
---|
| 23 | |
---|
| 24 | BuildRequires: libwnck-devel |
---|
| 25 | BuildRequires: dbus-glib-devel |
---|
| 26 | BuildRequires: gnome-common |
---|
| 27 | BuildRequires: pygtk2-devel |
---|
| 28 | BuildRequires: GConf2-devel |
---|
| 29 | BuildRequires: startup-notification-devel |
---|
| 30 | BuildRequires: gnome-desktop-devel >= 2.26.0 |
---|
| 31 | BuildRequires: libgnome-devel |
---|
| 32 | BuildRequires: gnome-vfs2-devel |
---|
| 33 | BuildRequires: gnome-python |
---|
| 34 | BuildRequires: libXdamage-devel libXcomposite-devel libXres-devel |
---|
| 35 | BuildRequires: gettext, intltool |
---|
| 36 | BuildRequires: desktop-file-utils |
---|
| 37 | BuildRequires: pyxdg |
---|
| 38 | BuildRequires: pycairo-devel |
---|
| 39 | |
---|
| 40 | Requires: gnome-python-gnomedesktop, pyxdg |
---|
| 41 | #Requires: gnome-python-gconf |
---|
| 42 | Requires(pre): GConf2 |
---|
| 43 | Requires(post): GConf2 |
---|
| 44 | Requires(preun): GConf2 |
---|
| 45 | |
---|
| 46 | %description |
---|
| 47 | Avant Window Navgator (Awn) is a dock-like bar which sits at the bottom of |
---|
| 48 | the screen (in all its composited-goodness) tracking open windows. |
---|
| 49 | |
---|
| 50 | %description -l ja |
---|
| 51 | Avant Window Navgator (Awn) は、 |
---|
| 52 | Gnome + Compiz 向けの Dock 機能を兼ね備えたウィンドウナビゲータバーです。 |
---|
| 53 | 起動しているアプリケーションウィンドウを追跡し、 |
---|
| 54 | 画面下部に並べます。 |
---|
| 55 | |
---|
| 56 | %package devel |
---|
| 57 | Summary: Fully customisable dock-like window navigator for GNOME |
---|
| 58 | Group: Development/Libraries |
---|
| 59 | Requires: %{name} = %{version}-%{release} |
---|
| 60 | |
---|
| 61 | %description devel |
---|
| 62 | This package includes all header files and library of AWN for development. |
---|
| 63 | |
---|
| 64 | %prep |
---|
| 65 | %setup -q |
---|
| 66 | %patch0 -p1 |
---|
| 67 | %patch1 -p0 |
---|
| 68 | |
---|
| 69 | #fix permissions |
---|
| 70 | chmod 0644 $RPM_BUILD_DIR/%{name}-%{version}/src/xutils.h |
---|
| 71 | chmod 0644 $RPM_BUILD_DIR/%{name}-%{version}/src/xutils.c |
---|
| 72 | chmod 0644 $RPM_BUILD_DIR/%{name}-%{version}/src/inlinepixbufs.h |
---|
| 73 | |
---|
| 74 | |
---|
| 75 | %build |
---|
| 76 | %configure \ |
---|
| 77 | --disable-static \ |
---|
| 78 | --disable-schemas \ |
---|
| 79 | ; |
---|
| 80 | |
---|
| 81 | #make %{?_smp_mflags} |
---|
| 82 | %__make |
---|
| 83 | |
---|
| 84 | |
---|
| 85 | %install |
---|
| 86 | rm -rf $RPM_BUILD_ROOT |
---|
| 87 | export GCONF_DISABLE_MAKEFILE_ _INSTALL=1 |
---|
| 88 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 89 | find ${RPM_BUILD_ROOT} -name '*.la' | xargs rm |
---|
| 90 | |
---|
| 91 | %find_lang %{name} |
---|
| 92 | |
---|
| 93 | desktop-file-install --vendor vine --delete-original \ |
---|
| 94 | --dir $RPM_BUILD_ROOT%{_datadir}/applications \ |
---|
| 95 | --remove-category Application \ |
---|
| 96 | $RPM_BUILD_ROOT%{_datadir}/applications/avant-window-navigator.desktop |
---|
| 97 | |
---|
| 98 | desktop-file-install --vendor vine --delete-original \ |
---|
| 99 | --dir $RPM_BUILD_ROOT%{_datadir}/applications \ |
---|
| 100 | --remove-category Application \ |
---|
| 101 | $RPM_BUILD_ROOT%{_datadir}/applications/awn-manager.desktop |
---|
| 102 | |
---|
| 103 | |
---|
| 104 | %pre |
---|
| 105 | if [ "$1" -gt 1 ]; then |
---|
| 106 | export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
---|
| 107 | gconftool-2 --makefile-uninstall-rule \ |
---|
| 108 | %{_sysconfdir}/gconf/schemas/awn.schemas >/dev/null || : |
---|
| 109 | fi |
---|
| 110 | |
---|
| 111 | %post |
---|
| 112 | export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
---|
| 113 | gconftool-2 --makefile-install-rule \ |
---|
| 114 | %{_sysconfdir}/gconf/schemas/awn.schemas > /dev/null || : |
---|
| 115 | |
---|
| 116 | /sbin/ldconfig |
---|
| 117 | |
---|
| 118 | touch --no-create %{_datadir}/icons/hicolor |
---|
| 119 | if [ -x %{_bindir}/gtk-update-icon-cache ]; then |
---|
| 120 | %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : |
---|
| 121 | fi |
---|
| 122 | |
---|
| 123 | |
---|
| 124 | %preun |
---|
| 125 | if [ "$1" -eq 0 ]; then |
---|
| 126 | export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
---|
| 127 | gconftool-2 --makefile-uninstall-rule \ |
---|
| 128 | %{_sysconfdir}/gconf/schemas/awn.schemas > /dev/null || : |
---|
| 129 | fi |
---|
| 130 | |
---|
| 131 | |
---|
| 132 | %postun |
---|
| 133 | /sbin/ldconfig |
---|
| 134 | |
---|
| 135 | touch --no-create %{_datadir}/icons/hicolor |
---|
| 136 | if [ -x %{_bindir}/gtk-update-icon-cache ]; then |
---|
| 137 | %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : |
---|
| 138 | fi |
---|
| 139 | |
---|
| 140 | |
---|
| 141 | %clean |
---|
| 142 | rm -rf $RPM_BUILD_ROOT |
---|
| 143 | |
---|
| 144 | |
---|
| 145 | %files -f %{name}.lang |
---|
| 146 | %defattr(-,root,root,-) |
---|
| 147 | %doc AUTHORS COPYING COPYING.LIB ChangeLog README |
---|
| 148 | %doc %{_datadir}/gtk-doc/html/libawn |
---|
| 149 | %{_bindir}/* |
---|
| 150 | %{_libdir}/libawn*.so.* |
---|
| 151 | %{_libdir}/awn |
---|
| 152 | %config(noreplace) %{_sysconfdir}/gconf/schemas/awn.schemas |
---|
| 153 | %{_datadir}/applications/* |
---|
| 154 | %{_datadir}/avant-window-navigator |
---|
| 155 | %{_datadir}/icons/hicolor/*/apps/awn-manager* |
---|
| 156 | %{python_sitelib}/awn |
---|
| 157 | |
---|
| 158 | |
---|
| 159 | %files devel |
---|
| 160 | %defattr(-,root,root,-) |
---|
| 161 | %{_includedir}/libawn |
---|
| 162 | %{_libdir}/libawn*.so |
---|
| 163 | %{_libdir}/pkgconfig/*.pc |
---|
| 164 | |
---|
| 165 | |
---|
| 166 | %changelog |
---|
| 167 | * Mon Jul 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.2.6-4 |
---|
| 168 | - added Summary(ja) and %%description -l ja |
---|
| 169 | |
---|
| 170 | * Sun Mar 22 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2.6-3 |
---|
| 171 | - rebuild with gnome-desktop-2.26.0 |
---|
| 172 | |
---|
| 173 | * Mon Feb 16 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.2.6-2 |
---|
| 174 | - corrected *.desktop |
---|
| 175 | |
---|
| 176 | * Mon Feb 02 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.2.6-1 |
---|
| 177 | - initial build |
---|
| 178 | |
---|
| 179 | * Sat Dec 20 2008 Sindre Pedersen Bj淡rdal <sindrepb@fedoraproject.org> - 0.2.6-14 |
---|
| 180 | - Add missing libXres buildrequires |
---|
| 181 | |
---|
| 182 | * Thu Dec 04 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.2.6-13 |
---|
| 183 | - Rebuild for Python 2.6 |
---|
| 184 | |
---|
| 185 | * Thu Dec 04 2008 Sindre Pedersen Bj淡rdal <sindrepb@fedoraproject.org> - 0.2.6-12 |
---|
| 186 | - Add patch to fix metacity sticky bug, #469032 |
---|
| 187 | |
---|
| 188 | * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.2.6-11 |
---|
| 189 | - Rebuild for Python 2.6 |
---|
| 190 | |
---|
| 191 | * Fri Nov 28 2008 Caol叩n McNamara <caolanm@redhat.com - 0.2.6-10 |
---|
| 192 | - rebuild for dependencies |
---|
| 193 | |
---|
| 194 | * Sun Aug 03 2008 Sindre Pedersen Bj淡rdal <sindrepb@fedoraproject.org> - 0.2.6-9 |
---|
| 195 | - Add patch to fix empty string in schemas file. #457683 |
---|
| 196 | |
---|
| 197 | * Sat Mar 22 2008 Sindre Pedersen Bj淡rdal <sindrepb@fedoraproject.org> - 0.2.6-8 |
---|
| 198 | - Add missing pyxdg requires |
---|
| 199 | |
---|
| 200 | * Tue Mar 20 2008 Sindre Pedersen Bj淡rdal <sindrepb@fedoraproject.org> - 0.2.6-6 |
---|
| 201 | - Incorparate the python package in main, #438411 |
---|
| 202 | * Mon Mar 17 2008 Sindre Pedersen Bj淡rdal <sindrepb@fedoraproject.org> - 0.2.6-3 |
---|
| 203 | - Fix python package |
---|
| 204 | |
---|
| 205 | * Mon Mar 17 2008 Sindre Pedersen Bj淡rdal <sindrepb@fedoraproject.org> - 0.2.6-2 |
---|
| 206 | - Add missing pyxdg build depenency |
---|
| 207 | |
---|
| 208 | * Mon Mar 17 2008 Sindre Pedersen Bj淡rdal <sindrepb@fedoraproject.org> - 0.2.6-1 |
---|
| 209 | - New release |
---|
| 210 | - Re-enable gconf scriplets |
---|
| 211 | - Add missing scriplets |
---|
| 212 | - Update license |
---|
| 213 | |
---|
| 214 | * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.2.1-3 |
---|
| 215 | - Autorebuild for GCC 4.3 |
---|
| 216 | |
---|
| 217 | * Thu Nov 04 2007 Sindre Pedersen Bj淡rdal <foolish[AT]guezz.net> - 0.2.1-2 |
---|
| 218 | - New Release |
---|
| 219 | * Wed Oct 21 2007 Huang Peng <phuang@redhat.com> - 0.2-1 |
---|
| 220 | - Update to 0.2 |
---|
| 221 | * Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 0.1.1-4 |
---|
| 222 | - Rebuild for selinux ppc32 issue. |
---|
| 223 | * Tue Jun 05 2007 Sindre Pedersen Bj淡rdal <foolish[AT]guezz.net> - 0.1.1-3 |
---|
| 224 | - Own %%{_datadir}/avant-window-navigator |
---|
| 225 | * Tue Jun 05 2007 Sindre Pedersen Bj淡rdal <foolish[AT]guezz.net> - 0.1.1-2 |
---|
| 226 | - Add missing BRs |
---|
| 227 | - Fix gconf scriplets |
---|
| 228 | * Thu May 01 2007 Sindre Pedersen Bj淡rdal <foolish[AT]guezz.net> - 0.1.1-1 |
---|
| 229 | - Initial build |
---|
| 230 | |
---|