]>
Commit | Line | Data |
---|---|---|
c5b1c662 | 1 | # |
2 | Summary: MacOS-like Dock for GNOME | |
3 | Name: cairo-dock | |
4 | Version: 1.4.5.1 | |
5 | Release: 1 | |
6 | License: GPLv3+ | |
7 | Group: Applications | |
8 | Source0: http://download.berlios.de/cairo-dock/%{name}-sources-20071214.tar.bz2 | |
9 | # Source0-md5: 5c826e7bb4ac15dc398e59d7f698d1e3 | |
10 | URL: http://developer.berlios.de/projects/cairo-dock/ | |
11 | BuildRequires: autoconf | |
12 | BuildRequires: automake | |
13 | BuildRequires: cairo-devel | |
14 | #BuildRequires: intltool | |
15 | BuildRequires: libtool | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
19 | An light eye-candy fully themable animated dock for any Linux desktop. | |
20 | It has a family-likeness with OSX dock, but with more options. | |
21 | ||
22 | %prep | |
23 | %setup -q -n opt/%{name} | |
24 | ||
25 | %build | |
26 | # if ac/am/* rebuilding is necessary, do it in this order and add | |
27 | # appropriate BuildRequires | |
28 | #%%{__intltoolize} | |
29 | #%%{__gettextize} | |
30 | #%%{__libtoolize} | |
31 | #%%{__autoheader} | |
32 | # if not running libtool or automake, but config.sub is too old: | |
33 | #cp -f /usr/share/automake/config.sub . | |
34 | cd cairo-dock | |
35 | %{__autoconf} | |
36 | %{__aclocal} | |
37 | %{__automake} | |
38 | %configure | |
39 | %{__make} | |
40 | cd .. | |
41 | ||
42 | cd plug-ins | |
43 | # To fix: logout | |
44 | for dir in clock file-manager rhythmbox dustbin file-manager-gnome rendering; do | |
45 | cd $dir | |
46 | PACKAGES="gtk+-2.0 cairo librsvg-2.0" | |
47 | PACKAGE_LIBS= | |
48 | PACKAGE_CFLAGS="-I$RPM_BUILD_DIR/opt/cairo-dock/cairo-dock/src" | |
49 | %{__autoconf} | |
50 | %{__aclocal} | |
51 | if [ $dir = rhythmbox ]; then | |
52 | %{__libtoolize} | |
53 | PACKAGES="$PACKAGES dbus-glib-1 dbus-1" | |
54 | elif [ $dir = file-manager-gnome ]; then | |
55 | PACKAGES="$PACKAGES gnome-vfs-2.0 libgnomeui-2.0" | |
56 | PACKAGE_CFLAGS="$PACKAGE_CFLAGS -I$RPM_BUILD_DIR/opt/cairo-dock/plug-ins/file-manager/src" | |
57 | elif [ $dir = rendering ]; then | |
58 | %{__libtoolize} | |
59 | fi | |
60 | %{__automake} | |
61 | PACKAGE_LIBS="$PACKAGE_LIBS `pkg-config --libs $PACKAGES`" PACKAGE_CFLAGS="$PACKAGE_CFLAGS `pkg-config --cflags $PACKAGES` " %configure | |
62 | %{__make} pkgdatadir=/usr/share/cairo-dock/plug-in/$dir | |
63 | cd .. | |
64 | done | |
65 | cd .. | |
66 | ||
67 | %install | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | cd cairo-dock | |
71 | %{__make} install \ | |
72 | DESTDIR=$RPM_BUILD_ROOT | |
73 | cd .. | |
74 | ||
75 | cd plug-ins | |
76 | # To fix: logout | |
77 | for dir in clock file-manager rhythmbox dustbin file-manager-gnome rendering; do | |
78 | cd $dir | |
79 | %{__make} install \ | |
80 | DESTDIR=$RPM_BUILD_ROOT \ | |
81 | pkgdatadir=/usr/share/cairo-dock/plug-in/$dir | |
82 | cd .. | |
83 | done | |
84 | cd .. | |
85 | ||
86 | %clean | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
89 | %files | |
90 | %defattr(644,root,root,755) | |
91 | %attr(755,root,root) %{_bindir}/cairo-dock | |
92 | ||
93 | #%files devel | |
94 | %{_includedir}/cairo-dock | |
95 | %{_includedir}/file-manager | |
96 | %{_libdir}/libcd-clock.so | |
97 | %attr(755,root,root) %{_libdir}/libcd-clock.so.1 | |
98 | %attr(755,root,root) %{_libdir}/libcd-clock.so.1.0.0 | |
99 | %{_libdir}/libcd-dustbin.la | |
100 | %{_libdir}/libcd-dustbin.so | |
101 | %attr(755,root,root) %{_libdir}/libcd-dustbin.so.1 | |
102 | %attr(755,root,root) %{_libdir}/libcd-dustbin.so.1.0.0 | |
103 | %{_libdir}/libcd-rendering.la | |
104 | %{_libdir}/libcd-rendering.so | |
105 | %attr(755,root,root) %{_libdir}/libcd-rendering.so.1 | |
106 | %attr(755,root,root) %{_libdir}/libcd-rendering.so.1.0.0 | |
107 | %{_libdir}/libcd-rhythmbox.la | |
108 | %{_libdir}/libcd-rhythmbox.so | |
109 | %attr(755,root,root) %{_libdir}/libcd-rhythmbox.so.1 | |
110 | %attr(755,root,root) %{_libdir}/libcd-rhythmbox.so.1.0.0 | |
111 | %{_libdir}/libfile-manager-gnome.la | |
112 | %{_libdir}/libfile-manager-gnome.so | |
113 | %attr(755,root,root) %{_libdir}/libfile-manager-gnome.so.1 | |
114 | %attr(755,root,root) %{_libdir}/libfile-manager-gnome.so.1.0.0 | |
115 | %{_libdir}/libfile-manager.la | |
116 | %{_libdir}/libfile-manager.so | |
117 | %attr(755,root,root) %{_libdir}/libfile-manager.so.1 | |
118 | %attr(755,root,root) %{_libdir}/libfile-manager.so.1.0.0 | |
119 | %{_pkgconfigdir}/cairo-dock.pc | |
120 | %{_pkgconfigdir}/file-manager.pc | |
121 | ||
122 | %dir %{_datadir}/cairo-dock | |
123 | %{_datadir}/cairo-dock/*.svg | |
124 | %{_datadir}/cairo-dock/*.conf | |
125 | %{_datadir}/cairo-dock/plug-in | |
126 | %{_datadir}/cairo-dock/readme-basic-view | |
127 | %{_datadir}/cairo-dock/*.conf | |
128 | %{_datadir}/cairo-dock/themes |