]> git.pld-linux.org Git - packages/compiz.git/blob - compiz.spec
- corrected BRs
[packages/compiz.git] / compiz.spec
1 #
2 # Conditional build:
3 %bcond_without  gnome           # don't build gnome-window-decorator
4 %bcond_with     kde             # build kde-window-decorator (currently not working)
5 #
6 Summary:        OpenGL window and compositing manager
7 Summary(pl):    OpenGL-owy zarz±dca okien i sk³adania
8 Name:           compiz
9 Version:        0.0.4
10 Release:        1
11 License:        GPL/MIT
12 Group:          X11
13 %define         _snap   20060223
14 Source0:        %{name}-%{_snap}.tar.bz2
15 # Source0-md5:  107d69d6f1575ebb104c0f78eff3298e
16 Patch0:         %{name}-switcher-all-desktops.patch
17 BuildRequires:  GConf2-devel
18 BuildRequires:  OpenGL-devel
19 BuildRequires:  glib2-devel
20 BuildRequires:  libpng-devel
21 BuildRequires:  libsvg-cairo-devel
22 BuildRequires:  startup-notification-devel
23 BuildRequires:  xorg-lib-libXcomposite
24 BuildRequires:  xorg-lib-libXdamage
25 BuildRequires:  xorg-lib-libXrandr
26 %if %{with gnome}
27 BuildRequires:  avahi-glib-devel
28 BuildRequires:  control-center-devel
29 BuildRequires:  gnome-desktop-devel
30 BuildRequires:  gnome-menus-devel
31 BuildRequires:  libwnck-devel
32 %endif
33 %if %{with kde}
34 BuildRequires:  QtCore-devel
35 BuildRequires:  QtGui-devel
36 BuildRequires:  qt4-build
37 %endif
38 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40 %description
41 Compiz is an OpenGL compositing manager that use
42 GLX_EXT_texture_from_pixmap for binding redirected top-level
43 windows to texture objects. It has a flexible plug-in system
44 and it is designed to run well on most graphics hardware.
45
46 %description -l pl
47 Compiz jest OpenGL-owym zarz±dc± sk³adania, u¿ywaj±cym rozszerzenia
48 GLX_EXT_texture_from_pixmap w celu wi±zania przekierowanych okien
49 do tekstur. Posiada elastyczny system wtyczek i jest tak
50 zaprojektowany, by dobrze dzia³aæ na wiêkszo¶ci kart graficznych.
51
52 %package devel
53 Summary:        Header files for compiz
54 Summary(pl):    Pliki nag³ówkowe dla compiza
55 Group:          Development
56 Requires:       %{name} = %{version}-%{release}
57
58 %description devel
59 Header files for compiz.
60
61 %description devel -l pl
62 Pliki nag³ówkowe dla compiza.
63
64 %package gnome-settings
65 Summary:        Compiz settings for gnome control panel
66 Summary(pl):    Ustawienia compiza dla panelu sterowania gnome
67 Group:          X11
68 Requires:       %{name} = %{version}-%{release}
69
70 %description gnome-settings
71 Compiz settings for gnome control panel.
72
73 %description gnome-settings -l pl
74 Ustawienia compiza dla panelu sterowania gnome.
75
76 %package gnome-decorator
77 Summary:        Window decorator for gnome
78 Summary(pl):    Dekorator okien dla gnome
79 Group:          X11
80 Requires:       %{name} = %{version}-%{release}
81
82 %description gnome-decorator
83 Window decorator for gnome.
84
85 %description gnome-decorator -l pl
86 Dekorator okien dla gnome.
87
88 %package kde-decorator
89 Summary:        Window decorator for KDE
90 Summary(pl):    Dekorator okien dla KDE
91 Group:          X11
92 Requires:       %{name} = %{version}-%{release}
93
94 %description kde-decorator
95 Window decorator for KDE.
96
97 %description kde-decorator -l pl
98 Dekorator okien dla KDE.
99
100 %prep
101 %setup -q -n %{name}-%{_snap}
102 %patch0 -p1
103
104 %build
105 autoreconf -v --install
106
107 %configure \
108         --enable-svg \
109         --enable-libsvg-cairo \
110         --%{?with_gnome:en}%{!?with_gnome:dis}able-gnome \
111         --%{?with_kde:en}%{!?with_kde:dis}able-kde
112
113 %{__make}
114
115 %install
116 rm -rf $RPM_BUILD_ROOT
117
118 %{__make} install DESTDIR=$RPM_BUILD_ROOT
119
120 %clean
121 rm -rf $RPM_BUILD_ROOT
122
123 %files
124 %defattr(644,root,root,755)
125 %doc AUTHORS ChangeLog README TODO
126 %attr(755,root,root) %{_bindir}/compiz
127 %dir %{_libdir}/compiz
128 %attr(755,root,root) %{_libdir}/compiz/*.so
129 %{_datadir}/compiz
130 %{_datadir}/gnome/wm-properties/*
131
132 %files devel
133 %defattr(644,root,root,755)
134 %{_includedir}/compiz
135 %{_pkgconfigdir}/*
136
137 %if %{with gnome}
138 %files gnome-settings
139 %defattr(644,root,root,755)
140 %attr(755,root,root) %{_libdir}/window-manager-settings/*.so
141
142 %files gnome-decorator
143 %defattr(644,root,root,755)
144 %attr(755,root,root) %{_bindir}/gnome-window-decorator
145 %endif
146
147 %if %{with kde}
148 %files kde-decorator
149 %defattr(644,root,root,755)
150 %attr(755,root,root) %{_bindir}/kde-window-decorator
151 %endif
This page took 0.046976 seconds and 4 git commands to generate.