]> git.pld-linux.org Git - packages/mate-panel.git/blob - mate-panel.spec
a02a2c015517c9f7e4ed91aa7b265bf389f11ed1
[packages/mate-panel.git] / mate-panel.spec
1 #
2 # Conditional build:
3 %bcond_without  apidocs         # disable gtk-doc
4 %bcond_with     gtk3            # use GTK+ 3.x instead of 2.x
5
6 Summary:        MATE Desktop panel applets
7 Summary(pl.UTF-8):      Aplety panelu dla środowiska MATE Desktop
8 Name:           mate-panel
9 Version:        1.16.0
10 Release:        1
11 License:        LGPL v2+ (library), GPL v2+ (applets)
12 Group:          X11/Applications
13 Source0:        http://pub.mate-desktop.org/releases/1.16/%{name}-%{version}.tar.xz
14 # Source0-md5:  3781180ad8196ede64f1257c904057f8
15 Patch0:         no-xdg-menu-prefix.patch
16 URL:            http://wiki.mate-desktop.org/mate-panel
17 BuildRequires:  NetworkManager-devel >= 0.6
18 BuildRequires:  autoconf >= 2.53
19 BuildRequires:  automake >= 1:1.9
20 BuildRequires:  cairo-devel >= 1.0.0
21 BuildRequires:  dbus-devel >= 1.1.2
22 BuildRequires:  dbus-glib-devel >= 0.80
23 BuildRequires:  dconf-devel >= 0.13.4
24 BuildRequires:  desktop-file-utils
25 BuildRequires:  docbook-dtd412-xml
26 BuildRequires:  gdk-pixbuf2-devel >= 2.7.1
27 BuildRequires:  gettext-tools >= 0.12
28 BuildRequires:  glib2-devel >= 1:2.36
29 BuildRequires:  gobject-introspection-devel >= 0.6.7
30 %{!?with_gtk3:BuildRequires:    gtk+2-devel >= 2:2.19.7}
31 %{?with_gtk3:BuildRequires:     gtk+3-devel >= 3.0.0}
32 BuildRequires:  gtk-doc >= 1.0
33 BuildRequires:  intltool >= 0.50.1
34 %{!?with_gtk3:BuildRequires:    libcanberra-gtk-devel}
35 %{?with_gtk3:BuildRequires:     libcanberra-gtk3-devel}
36 %{!?with_gtk3:BuildRequires:    libmateweather-devel >= 1.5.0}
37 %{?with_gtk3:BuildRequires:     libmateweather-devel >= 1.7.0}
38 BuildRequires:  librsvg-devel >= 2.36.2
39 BuildRequires:  libtool >= 1:1.4.3
40 %{?with_gtk3:BuildRequires:     libwnck-devel >= 3.0.0}
41 %{!?with_gtk3:BuildRequires:    libwnck2-devel >= 2.30.7-2}
42 BuildRequires:  mate-common
43 BuildRequires:  mate-desktop-devel >= 1.9.3
44 BuildRequires:  mate-menus-devel >= 1.1.0
45 BuildRequires:  pango-devel >= 1:1.15.4
46 BuildRequires:  pkgconfig
47 BuildRequires:  python >= 2
48 BuildRequires:  rpm-pythonprov
49 BuildRequires:  rpmbuild(find_lang) >= 1.36
50 BuildRequires:  tar >= 1:1.22
51 BuildRequires:  xorg-lib-libICE-devel
52 BuildRequires:  xorg-lib-libSM-devel
53 BuildRequires:  xorg-lib-libX11-devel
54 BuildRequires:  xorg-lib-libXau-devel
55 BuildRequires:  xorg-lib-libXrandr-devel >= 1.3.0
56 BuildRequires:  xz
57 BuildRequires:  yelp-tools
58 Requires:       %{name}-libs = %{version}-%{release}
59 Requires:       dbus >= 1.1.2
60 Requires:       dbus-glib >= 0.80
61 Requires:       dconf >= 0.13.4
62 Requires:       desktop-file-utils
63 Requires:       gsettings-desktop-schemas
64 Requires:       gtk-update-icon-cache
65 %{!?with_gtk3:Requires: libmateweather >= 1.5.0}
66 %{?with_gtk3:Requires:  libmateweather >= 1.7.0}
67 Requires:       librsvg >= 2.36.2
68 %{?with_gtk3:Requires:  libwnck >= 3.0.0}
69 %{!?with_gtk3:Requires: libwnck2 >= 2.30.7-2}
70 Requires:       marco
71 Requires:       mate-desktop >= 1.9.3
72 Requires:       mate-menus >= 1.1.0
73 Suggests:       mate-settings-daemon
74 # for fish
75 Requires:       fortune-mod
76 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
77
78 %description
79 MATE Desktop panel applets.
80
81 %description -l pl.UTF-8
82 Aplety panelu dla środowiska MATE Desktop.
83
84 %package libs
85 Summary:        Shared library for MATE panel applets
86 Summary(pl.UTF-8):      Biblitoteka współdzielona dla apletów panelu MATE
87 License:        LGPL v2+
88 Group:          Libraries
89 Requires:       cairo >= 1.0.0
90 Requires:       gdk-pixbuf2 >= 2.7.1
91 Requires:       glib2 >= 1:2.36
92 %{!?with_gtk3:Requires: gtk+2 >= 2:2.19.7}
93 %{?with_gtk3:Requires:  gtk+3 >= 3.0.0}
94 Requires:       pango >= 1:1.15.4
95 Requires:       xorg-lib-libXrandr >= 1.3.0
96
97 %description libs
98 Shared library for MATE panel applets.
99
100 %description libs -l pl.UTF-8
101 Biblitoteka współdzielona dla apletów panelu MATE.
102
103 %package devel
104 Summary:        Development files for libmate-panel-applet library
105 Summary(pl.UTF-8):      Pliki programistyczne biblioteki libmate-panel-applet
106 License:        LGPL v2+
107 Group:          Development/Libraries
108 Requires:       %{name}-libs = %{version}-%{release}
109 Requires:       glib2-devel >= 1:2.36
110 %{!?with_gtk3:Requires: gtk+2-devel >= 2:2.19.7}
111 %{?with_gtk3:Requires:  gtk+3-devel >= 3.0.0}
112
113 %description devel
114 Development files for libmate-panel-applet library.
115
116 %description devel -l pl.UTF-8
117 Pliki programistyczne biblioteki libmate-panel-applet.
118
119 %package apidocs
120 Summary:        API documentation for libmate-panel-applet library
121 Summary(pl.UTF-8):      Dokumentacja API biblioteki libmate-panel-applet
122 Group:          Documentation
123 Requires:       gtk-doc-common
124 %if "%{_rpmversion}" >= "5"
125 BuildArch:      noarch
126 %endif
127
128 %description apidocs
129 API documentation for libmate-panel-applet library.
130
131 %description apidocs -l pl.UTF-8
132 Dokumentacja API biblioteki libmate-panel-applet.
133
134 %prep
135 %setup -q
136 %patch0 -p1
137
138 %build
139 %{__libtoolize}
140 %{__aclocal} -I m4
141 %{__autoconf}
142 %{__autoheader}
143 %{__automake}
144 # libexecdir needed for gnome conflicts
145 %configure \
146         --libexecdir=%{_libdir}/%{name} \
147         --enable-network-manager \
148         --disable-schemas-compile \
149         --disable-silent-rules \
150         --disable-static \
151         %{?with_gtk3:--with-gtk=3.0} \
152         --with-html-dir=%{_gtkdocdir} \
153         --with-x
154
155 %{__make}
156
157 %install
158 rm -rf $RPM_BUILD_ROOT
159 %{__make} install \
160         DESTDIR=$RPM_BUILD_ROOT
161
162 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
163
164 desktop-file-install \
165         --remove-category="MATE" \
166         --add-category="X-Mate" \
167         --dir=$RPM_BUILD_ROOT%{_desktopdir} \
168         $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
169
170 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{frp,jv,ku_IQ,pms}
171
172 %find_lang %{name} --with-mate --all-name
173
174 %clean
175 rm -rf $RPM_BUILD_ROOT
176
177 %post
178 %update_icon_cache hicolor
179 %update_desktop_database
180 %glib_compile_schemas
181
182 %postun
183 %update_icon_cache hicolor
184 %update_desktop_database
185 %glib_compile_schemas
186
187 %post   libs -p /sbin/ldconfig
188 %postun libs -p /sbin/ldconfig
189
190 %files -f %{name}.lang
191 %defattr(644,root,root,755)
192 %doc AUTHORS ChangeLog NEWS README
193 %attr(755,root,root) %{_bindir}/mate-desktop-item-edit
194 %attr(755,root,root) %{_bindir}/mate-panel
195 %attr(755,root,root) %{_bindir}/mate-panel-test-applets
196 %{_mandir}/man1/mate-desktop-item-edit.1*
197 %{_mandir}/man1/mate-panel-test-applets.1*
198 %{_mandir}/man1/mate-panel.1*
199 %dir %{_libdir}/%{name}
200 %attr(755,root,root) %{_libdir}/%{name}/clock-applet
201 %attr(755,root,root) %{_libdir}/%{name}/fish-applet
202 %attr(755,root,root) %{_libdir}/%{name}/notification-area-applet
203 %attr(755,root,root) %{_libdir}/%{name}/wnck-applet
204 %{_datadir}/%{name}
205 %{_datadir}/glib-2.0/schemas/org.mate.panel.*.xml
206 %{_datadir}/dbus-1/services/org.mate.panel.*.service
207 %{_desktopdir}/%{name}.desktop
208 %{_iconsdir}/hicolor/*/apps/mate-panel*.*
209
210 %files libs
211 %defattr(644,root,root,755)
212 %attr(755,root,root) %{_libdir}/libmate-panel-applet-4.so.*.*.*
213 %attr(755,root,root) %ghost %{_libdir}/libmate-panel-applet-4.so.1
214 %{_libdir}/girepository-1.0/MatePanelApplet-4.0.typelib
215
216 %files devel
217 %defattr(644,root,root,755)
218 %attr(755,root,root) %{_libdir}/libmate-panel-applet-4.so
219 %{_includedir}/mate-panel-4.0
220 %{_pkgconfigdir}/libmatepanelapplet-4.0.pc
221 %{_datadir}/gir-1.0/MatePanelApplet-4.0.gir
222
223 %if %{with apidocs}
224 %files apidocs
225 %defattr(644,root,root,755)
226 %{_gtkdocdir}/mate-panel-applet
227 %endif
This page took 0.081399 seconds and 3 git commands to generate.