]>
Commit | Line | Data |
---|---|---|
86c266ba | 1 | # |
2 | # TODO: | |
3 | # - check BRs ans Rs (I think they're too much as of now) | |
4 | # - separate applets and plugins into subpackages | |
5 | # - install and check plugins | |
6 | # - make applets subpackage suggest all the applets | |
7 | # | |
3b080be1 | 8 | %define snap 20071024 |
86c266ba | 9 | %define _basename avant-window-navigator |
10 | %define _realname awn-extras | |
11 | Summary: Extra applets and plugins for awn | |
12 | Summary(pl.UTF-8):Dodatkowe applety i wtyczki dla awn | |
13 | Name: %{_basename}-extras | |
3b080be1 | 14 | Version: 0.2.%{snap} |
86c266ba | 15 | Release: 0.1 |
16 | License: GPLv2 | |
17 | Group: X11/Applications | |
18 | #Source0: http://avant-window-navigator.googlecode.com/files/%{name}-%{version}-2.tar.gz | |
19 | Source0: %{_realname}-%{snap}.tar.bz2 | |
3b080be1 | 20 | # Source0-md5: e27eba8b4aa03ff44c82f1975b1170a6 |
21 | URL: https://launchpad.net/awn-extras/ | |
86c266ba | 22 | BuildRequires: %{_basename}-devel |
23 | BuildRequires: GConf2-devel >= 2.14.0 | |
24 | BuildRequires: autoconf | |
25 | BuildRequires: automake | |
26 | BuildRequires: gettext-devel | |
27 | BuildRequires: gnome-common >= 2.12.0 | |
28 | BuildRequires: gnome-desktop-devel | |
29 | BuildRequires: gnome-doc-utils >= 0.7.1 | |
30 | BuildRequires: gtk+2-devel >= 2:2.10.0 | |
31 | BuildRequires: intltool >= 0.35 | |
3b080be1 | 32 | BuildRequires: libsexy-devel |
86c266ba | 33 | BuildRequires: libglade2-devel >= 1:2.6.0 |
34 | BuildRequires: libgtop-devel | |
35 | BuildRequires: librsvg-devel | |
36 | BuildRequires: libtool | |
37 | BuildRequires: libwnck-devel | |
38 | BuildRequires: pkgconfig | |
39 | BuildRequires: rpmbuild(macros) >= 1.197 | |
40 | Requires(post,postun): /sbin/ldconfig | |
41 | Requires(post,postun): gtk+2 >= 2:2.10.0 | |
42 | Requires(post,preun): GConf2 >= 2.14.0 | |
43 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
44 | ||
45 | %define _appletsdir %{_libdir}/awn/applets | |
46 | %description | |
47 | Generic package for all core awn-plugins. | |
48 | ||
49 | %description -l pl.UTF-8 | |
50 | Paczka wspólna dla wszystkich głównym wtyczek dla awn. | |
51 | ||
52 | %package -n %{_basename}-core-applets | |
53 | Summary: Core applets for awn | |
54 | Summary(pl.UTF-8):Kluczowe applety dla awn | |
55 | Group: X11/Applications | |
56 | Requires: %{_basename} = %{version} | |
57 | ||
58 | %description -n %{_basename}-core-applets | |
59 | Core applets for awn. | |
60 | ||
61 | %description -n %{_basename}-core-applets -l pl.UTF-8 | |
62 | Kluczowe applety dla awn. | |
63 | ||
64 | %package -n %{_basename}-plugins | |
65 | Summary: Pluggins for awn | |
66 | Summary(pl.UTF-8):Wtyczki dla awn | |
67 | Group: X11/Applications | |
68 | Requires: %{_basename} = %{version}-%{release} | |
69 | ||
70 | %description -n %{_basename}-plugins | |
71 | Pluggins for awn. | |
72 | ||
73 | %description -n %{_basename}-plugins -l pl.UTF-8 | |
74 | Wtyczki dla awn. | |
75 | ||
76 | %prep | |
77 | %setup -q -n %{_realname}-%{snap} | |
78 | ||
79 | %build | |
80 | ||
81 | ### | |
82 | # awn-applets core | |
83 | ### | |
84 | cd awn-applets/awn-core-applets | |
85 | %{__intltoolize} | |
86 | %{__libtoolize} | |
87 | %{__aclocal} | |
88 | %{__autoconf} | |
89 | %{__autoheader} | |
90 | %{__automake} | |
91 | %configure \ | |
92 | --disable-schemas-install | |
93 | %{__make} | |
94 | ||
95 | %install | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
98 | ### | |
99 | # awn-applets core | |
100 | ### | |
101 | cd awn-applets/awn-core-applets | |
102 | %{__make} install \ | |
103 | DESTDIR=$RPM_BUILD_ROOT \ | |
104 | GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 | |
105 | ||
106 | ### | |
107 | # awn-plugins | |
108 | ### | |
109 | ||
110 | %clean | |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | ||
113 | #%%post | |
114 | #%%gconf_schema_install %{name}.schemas | |
115 | #/sbin/ldconfig | |
116 | ||
117 | #%%preun | |
118 | #%%gconf_schema_uninstall switcher.schemas trash.schemas | |
119 | ||
120 | #%%postun | |
121 | #/sbin/ldconfig | |
122 | ||
123 | %files -n %{_basename}-core-applets | |
124 | %defattr(644,root,root,755) | |
125 | #%{_sysconfdir}/gconf/schemas/*.schemas | |
3b080be1 | 126 | %{_datadir}/dbus-1/services/org.freedesktop.Notifications.service |
127 | %dir %{_appletsdir}/awnnotificationdaemon | |
128 | %{_appletsdir}/awnnotificationdaemon/awnnotificationdaemon.so | |
129 | %{_appletsdir}/awnnotificationdaemon.desktop | |
130 | %dir %{_appletsdir}/awnsystemmonitor | |
131 | %{_appletsdir}/awnsystemmonitor/awnsystemmonitor.so | |
132 | %{_appletsdir}/awn-system-monitor.desktop | |
133 | %{_appletsdir}/battery-applet | |
134 | %{_appletsdir}/battery-applet.desktop | |
135 | %dir %{_appletsdir}/mainmenu | |
136 | %{_appletsdir}/BlingSwitcher | |
137 | %{_appletsdir}/PySwitcher.desktop | |
86c266ba | 138 | %dir %{_appletsdir}/clock |
139 | %{_appletsdir}/clock/clock.so | |
140 | %{_appletsdir}/clock.desktop | |
3b080be1 | 141 | %dir %{_appletsdir}/filebrowser |
142 | %{_appletsdir}/filebrowser/filebrowser.so | |
143 | %{_appletsdir}/filebrowser.desktop | |
144 | %{_datadir}/awn-core-applets/filebrowser.svg | |
145 | %{_appletsdir}/gmail | |
146 | %{_appletsdir}/awngmail.desktop | |
86c266ba | 147 | %dir %{_appletsdir}/mainmenu |
148 | %{_appletsdir}/mainmenu/mainmenu.so | |
149 | %{_appletsdir}/main-menu.desktop | |
3b080be1 | 150 | %{_appletsdir}/media-control |
151 | %{_appletsdir}/media-control.desktop | |
152 | %{_appletsdir}/media-icon-* | |
153 | %{_appletsdir}/medialogo*.desktop | |
86c266ba | 154 | %dir %{_appletsdir}/notification-area |
155 | %{_appletsdir}/notification-area/notification-area.so | |
156 | %{_appletsdir}/notification-area.desktop | |
3b080be1 | 157 | %{_appletsdir}/quit-applet |
158 | %{_appletsdir}/quit-applet.desktop | |
86c266ba | 159 | %{_datadir}/awn-core-applets/notification.svg |
160 | %dir %{_appletsdir}/separator | |
161 | %{_appletsdir}/separator/separator.so | |
162 | %{_appletsdir}/separator.desktop | |
163 | %{_datadir}/awn-core-applets/separator.svg | |
3b080be1 | 164 | %{_appletsdir}/showdesktop |
86c266ba | 165 | %{_appletsdir}/showdesktop.desktop |
3b080be1 | 166 | %{_appletsdir}/stacks |
167 | %{_appletsdir}/stacks.desktop | |
86c266ba | 168 | %dir %{_appletsdir}/switcher |
169 | %{_appletsdir}/switcher/switcher.so | |
170 | %{_appletsdir}/switcher.desktop | |
171 | %dir %{_appletsdir}/trash | |
172 | %{_appletsdir}/trash/trashapplet.glade | |
173 | %{_appletsdir}/trash/trash.so | |
174 | %{_appletsdir}/trash.desktop | |
3b080be1 | 175 | %{_appletsdir}/volume-control |
86c266ba | 176 | %{_appletsdir}/volume-control.desktop |
3b080be1 | 177 | %{_appletsdir}/weather |
178 | %{_appletsdir}/weather.desktop | |
86c266ba | 179 | %dir %{_appletsdir}/wobblyzini |
180 | %{_appletsdir}/wobblyzini/wobblyzini.so | |
181 | %{_appletsdir}/wobblyzini.desktop |