]> git.pld-linux.org Git - packages/mate-panel.git/blob - mate-panel.spec
up to 1.12.2
[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.12.2
10 Release:        1
11 License:        LGPL v2+ (library), GPL v2+ (applets)
12 Group:          X11/Applications
13 Source0:        http://pub.mate-desktop.org/releases/1.12/%{name}-%{version}.tar.xz
14 # Source0-md5:  00d769762cccbb012ae02698fc555dea
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.0
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 %{?with_gtk3:Requires:  libwnck >= 3.0.0}
68 %{!?with_gtk3:Requires: libwnck2 >= 2.30.7-2}
69 Requires:       marco
70 Requires:       mate-desktop >= 1.9.3
71 Requires:       mate-menus >= 1.1.0
72 Suggests:       mate-settings-daemon
73 # for fish
74 Requires:       fortune-mod
75 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
76
77 %description
78 MATE Desktop panel applets.
79
80 %description -l pl.UTF-8
81 Aplety panelu dla środowiska MATE Desktop.
82
83 %package libs
84 Summary:        Shared library for MATE panel applets
85 Summary(pl.UTF-8):      Biblitoteka współdzielona dla apletów panelu MATE
86 License:        LGPL v2+
87 Group:          Libraries
88 Requires:       cairo >= 1.0.0
89 Requires:       gdk-pixbuf2 >= 2.7.1
90 Requires:       glib2 >= 1:2.36
91 %{!?with_gtk3:Requires: gtk+2 >= 2:2.19.7}
92 %{?with_gtk3:Requires:  gtk+3 >= 3.0.0}
93 Requires:       pango >= 1:1.15.4
94 Requires:       xorg-lib-libXrandr >= 1.3.0
95
96 %description libs
97 Shared library for MATE panel applets.
98
99 %description libs -l pl.UTF-8
100 Biblitoteka współdzielona dla apletów panelu MATE.
101
102 %package devel
103 Summary:        Development files for libmate-panel-applet library
104 Summary(pl.UTF-8):      Pliki programistyczne biblioteki libmate-panel-applet
105 License:        LGPL v2+
106 Group:          Development/Libraries
107 Requires:       %{name}-libs = %{version}-%{release}
108 Requires:       glib2-devel >= 1:2.36
109 %{!?with_gtk3:Requires: gtk+2-devel >= 2:2.19.7}
110 %{?with_gtk3:Requires:  gtk+3-devel >= 3.0.0}
111
112 %description devel
113 Development files for libmate-panel-applet library.
114
115 %description devel -l pl.UTF-8
116 Pliki programistyczne biblioteki libmate-panel-applet.
117
118 %package apidocs
119 Summary:        API documentation for libmate-panel-applet library
120 Summary(pl.UTF-8):      Dokumentacja API biblioteki libmate-panel-applet
121 Group:          Documentation
122 Requires:       gtk-doc-common
123 %if "%{_rpmversion}" >= "5"
124 BuildArch:      noarch
125 %endif
126
127 %description apidocs
128 API documentation for libmate-panel-applet library.
129
130 %description apidocs -l pl.UTF-8
131 Dokumentacja API biblioteki libmate-panel-applet.
132
133 %prep
134 %setup -q
135 %patch0 -p1
136
137 %build
138 %{__libtoolize}
139 %{__aclocal} -I m4
140 %{__autoconf}
141 %{__autoheader}
142 %{__automake}
143 # libexecdir needed for gnome conflicts
144 %configure \
145         --libexecdir=%{_libdir}/%{name} \
146         --enable-network-manager \
147         --disable-schemas-compile \
148         --disable-silent-rules \
149         --disable-static \
150         %{?with_gtk3:--with-gtk=3.0} \
151         --with-html-dir=%{_gtkdocdir} \
152         --with-x
153
154 %{__make}
155
156 %install
157 rm -rf $RPM_BUILD_ROOT
158 %{__make} install \
159         DESTDIR=$RPM_BUILD_ROOT
160
161 # mate < 1.5 did not exist in pld, avoid dependency on mate-conf
162 %{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/mate-panel.convert
163
164 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
165
166 desktop-file-install \
167         --remove-category="MATE" \
168         --add-category="X-Mate" \
169         --dir=$RPM_BUILD_ROOT%{_desktopdir} \
170         $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
171
172 # update naming convention
173 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{sr@ije,sr@ijekavian}
174
175 %find_lang %{name} --with-mate --all-name
176
177 %clean
178 rm -rf $RPM_BUILD_ROOT
179
180 %post
181 %update_icon_cache hicolor
182 %update_desktop_database
183 %glib_compile_schemas
184
185 %postun
186 %update_icon_cache hicolor
187 %update_desktop_database
188 %glib_compile_schemas
189
190 %post   libs -p /sbin/ldconfig
191 %postun libs -p /sbin/ldconfig
192
193 %files -f %{name}.lang
194 %defattr(644,root,root,755)
195 %doc AUTHORS ChangeLog NEWS README
196 %attr(755,root,root) %{_bindir}/mate-desktop-item-edit
197 %attr(755,root,root) %{_bindir}/mate-panel
198 %attr(755,root,root) %{_bindir}/mate-panel-test-applets
199 %{_mandir}/man1/mate-desktop-item-edit.1*
200 %{_mandir}/man1/mate-panel-test-applets.1*
201 %{_mandir}/man1/mate-panel.1*
202 %dir %{_libdir}/%{name}
203 %attr(755,root,root) %{_libdir}/%{name}/clock-applet
204 %attr(755,root,root) %{_libdir}/%{name}/fish-applet
205 %attr(755,root,root) %{_libdir}/%{name}/notification-area-applet
206 %attr(755,root,root) %{_libdir}/%{name}/wnck-applet
207 %{_datadir}/%{name}
208 %{_datadir}/glib-2.0/schemas/org.mate.panel.*.xml
209 %{_datadir}/dbus-1/services/org.mate.panel.*.service
210 %{_desktopdir}/%{name}.desktop
211 %{_iconsdir}/hicolor/*/apps/mate-panel*.*
212
213 %files libs
214 %defattr(644,root,root,755)
215 %attr(755,root,root) %{_libdir}/libmate-panel-applet-4.so.*.*.*
216 %attr(755,root,root) %ghost %{_libdir}/libmate-panel-applet-4.so.1
217 %{_libdir}/girepository-1.0/MatePanelApplet-4.0.typelib
218
219 %files devel
220 %defattr(644,root,root,755)
221 %attr(755,root,root) %{_libdir}/libmate-panel-applet-4.so
222 %{_includedir}/mate-panel-4.0
223 %{_pkgconfigdir}/libmatepanelapplet-4.0.pc
224 %{_datadir}/gir-1.0/MatePanelApplet-4.0.gir
225
226 %if %{with apidocs}
227 %files apidocs
228 %defattr(644,root,root,755)
229 %{_gtkdocdir}/mate-panel-applet
230 %endif
This page took 0.067932 seconds and 3 git commands to generate.