]>
Commit | Line | Data |
---|---|---|
e6840e88 | 1 | # TODO |
e6840e88 ER |
2 | # - check direct deps: |
3 | #mate-panel-1.5.3-0.1.i686 marks mate-menus-libs-1.5.0-1.i686 (cap libmate-menu.so.2) | |
4 | #mate-panel-1.5.3-0.1.i686 marks mate-panel-libs-1.5.3-0.1.i686 (cap libmate-panel-applet-4.so.1) | |
5 | #mate-panel-1.5.3-0.1.i686 marks libmateweather-1.5.0-1.i686 (cap libmateweather.so.1) | |
6 | #mate-panel-1.5.3-0.1.i686 marks libmatewnck-1.5.0-1.i686 (cap libmatewnck.so.0) | |
e6840e88 ER |
7 | |
8 | # Conditional build: | |
388db1d8 | 9 | %bcond_without apidocs # disable gtk-doc |
e6840e88 ER |
10 | |
11 | Summary: MATE Desktop panel applets | |
12 | Name: mate-panel | |
13 | Version: 1.5.3 | |
ace0217e | 14 | Release: 1 |
e6840e88 ER |
15 | # libs are LGPLv2+ applications GPLv2+ |
16 | License: GPL v2+ | |
17 | Group: X11/Applications | |
e6840e88 ER |
18 | Source0: http://pub.mate-desktop.org/releases/1.5/%{name}-%{version}.tar.xz |
19 | # Source0-md5: 72029cbcd38bee447df92c8774452bf3 | |
ace0217e ER |
20 | URL: http://wiki.mate-desktop.org/mate-panel |
21 | BuildRequires: NetworkManager-gtk-lib-devel | |
22 | BuildRequires: dbus-glib-devel | |
23 | BuildRequires: dconf-devel | |
e6840e88 | 24 | BuildRequires: desktop-file-utils |
ace0217e ER |
25 | BuildRequires: glib2-devel >= 1:2.25.12 |
26 | BuildRequires: gobject-introspection-devel | |
27 | BuildRequires: gsettings-desktop-schemas-devel | |
28 | BuildRequires: gtk+2-devel >= 2:2.19.7 | |
e6840e88 | 29 | BuildRequires: icon-naming-utils |
ace0217e ER |
30 | BuildRequires: intltool >= 0.40.0 |
31 | BuildRequires: libcanberra-devel | |
32 | BuildRequires: libmateweather-devel | |
33 | BuildRequires: libmatewnck-devel | |
34 | BuildRequires: librsvg-devel | |
e6840e88 | 35 | BuildRequires: mate-common |
ace0217e ER |
36 | BuildRequires: mate-desktop-devel |
37 | %{?with_apidocs:BuildRequires: mate-doc-utils} | |
38 | BuildRequires: mate-menus-devel | |
39 | BuildRequires: pango-devel >= 1:1.15.4 | |
e6840e88 | 40 | BuildRequires: popt-devel |
7b3d9e33 | 41 | BuildRequires: rpmbuild(find_lang) >= 1.36 |
e6840e88 | 42 | BuildRequires: tar >= 1:1.22 |
ace0217e ER |
43 | BuildRequires: xorg-lib-libICE-devel |
44 | BuildRequires: xorg-lib-libSM-devel | |
45 | BuildRequires: xorg-lib-libX11-devel | |
e6840e88 ER |
46 | BuildRequires: xz |
47 | Requires: %{name}-libs = %{version}-%{release} | |
50b376c3 | 48 | Requires: desktop-file-utils |
e6840e88 ER |
49 | Requires: glib2 >= 1:2.26.0 |
50 | Requires: gsettings-desktop-schemas | |
e6840e88 ER |
51 | Requires: gtk-update-icon-cache |
52 | Requires: mate-session-manager | |
2d1ecf41 | 53 | Suggests: mate-settings-daemon |
e6840e88 ER |
54 | # for fish |
55 | Requires: fortune-mod | |
56 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
57 | ||
58 | %description | |
59 | MATE Desktop panel applets | |
60 | ||
61 | %package libs | |
62 | Summary: Shared libraries for mate-panel | |
63 | License: LGPL v2+ | |
64 | Group: Libraries | |
e6840e88 ER |
65 | |
66 | %description libs | |
67 | Shared libraries for libmate-desktop | |
68 | ||
69 | %package devel | |
70 | Summary: Development files for mate-panel | |
71 | Group: Development/Libraries | |
72 | Requires: %{name}-libs = %{version}-%{release} | |
73 | ||
74 | %description devel | |
75 | Development files for mate-panel | |
76 | ||
514d5191 ER |
77 | %package apidocs |
78 | Summary: mate-panel API documentation | |
79 | Summary(pl.UTF-8): Dokumentacja API mate-panel | |
80 | Group: Documentation | |
81 | Requires: gtk-doc-common | |
82 | ||
83 | %description apidocs | |
84 | mate-panel API documentation. | |
85 | ||
86 | %description apidocs -l pl.UTF-8 | |
87 | Dokumentacja API mate-panel. | |
88 | ||
e6840e88 ER |
89 | %prep |
90 | %setup -q | |
91 | ||
92 | %build | |
93 | NOCONFIGURE=1 ./autogen.sh | |
94 | # libexecdir needed for gnome conflicts | |
95 | %configure \ | |
96 | --disable-scrollkeeper \ | |
97 | --disable-static \ | |
98 | --disable-schemas-compile \ | |
99 | --with-x \ | |
100 | --enable-network-manager \ | |
101 | --libexecdir=%{_libexecdir}/mate-panel \ | |
388db1d8 | 102 | --with-html-dir=%{_gtkdocdir} |
e6840e88 | 103 | |
514d5191 | 104 | %{__make} \ |
e6840e88 ER |
105 | V=1 |
106 | ||
107 | %install | |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | %{__make} install \ | |
110 | DESTDIR=$RPM_BUILD_ROOT | |
111 | ||
514d5191 | 112 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la |
e6840e88 ER |
113 | |
114 | desktop-file-install \ | |
115 | --remove-category="MATE" \ | |
116 | --add-category="X-Mate" \ | |
117 | --dir=$RPM_BUILD_ROOT%{_desktopdir} \ | |
118 | $RPM_BUILD_ROOT%{_desktopdir}/mate-panel.desktop | |
119 | ||
7b3d9e33 | 120 | %find_lang %{name} --with-mate --with-omf --all-name |
e6840e88 ER |
121 | |
122 | %clean | |
123 | rm -rf $RPM_BUILD_ROOT | |
124 | ||
125 | %post | |
126 | %update_icon_cache hicolor | |
127 | %update_desktop_database | |
128 | %glib_compile_schemas | |
129 | ||
130 | %postun | |
131 | %update_icon_cache hicolor | |
132 | %update_desktop_database | |
133 | %glib_compile_schemas | |
134 | ||
135 | %post libs -p /sbin/ldconfig | |
136 | %postun libs -p /sbin/ldconfig | |
137 | ||
138 | %files -f %{name}.lang | |
139 | %defattr(644,root,root,755) | |
140 | %doc AUTHORS COPYING README | |
141 | %attr(755,root,root) %{_bindir}/mate-desktop-item-edit | |
142 | %attr(755,root,root) %{_bindir}/mate-panel | |
143 | %attr(755,root,root) %{_bindir}/mate-panel-test-applets | |
c50359f3 ER |
144 | %{_mandir}/man1/mate-panel.1* |
145 | %dir %{_libdir}/mate-panel | |
146 | %attr(755,root,root) %{_libdir}/mate-panel/clock-applet | |
147 | %attr(755,root,root) %{_libdir}/mate-panel/fish-applet | |
148 | %attr(755,root,root) %{_libdir}/mate-panel/mate-panel-add | |
149 | %attr(755,root,root) %{_libdir}/mate-panel/notification-area-applet | |
150 | %attr(755,root,root) %{_libdir}/mate-panel/wnck-applet | |
e6840e88 | 151 | %{_libdir}/girepository-1.0/MatePanelApplet-4.0.typelib |
e6840e88 | 152 | %{_datadir}/glib-2.0/schemas/org.mate.panel.*.xml |
e6840e88 | 153 | %{_datadir}/dbus-1/services/org.mate.panel.*.service |
e6840e88 ER |
154 | %{_datadir}/mate-panel |
155 | %{_datadir}/mate-panelrc | |
7b3d9e33 ER |
156 | %{_iconsdir}/hicolor/*/*/* |
157 | %{_desktopdir}/mate-panel.desktop | |
e6840e88 ER |
158 | |
159 | %files libs | |
160 | %defattr(644,root,root,755) | |
161 | %doc COPYING.LIB | |
162 | %attr(755,root,root) %{_libdir}/libmate-panel-applet-4.so.*.*.* | |
163 | %ghost %{_libdir}/libmate-panel-applet-4.so.1 | |
164 | ||
165 | %files devel | |
166 | %defattr(644,root,root,755) | |
167 | %{_libdir}/libmate-panel-applet-4.so | |
168 | %{_includedir}/mate-panel-4.0 | |
169 | %{_pkgconfigdir}/libmatepanelapplet-4.0.pc | |
170 | %{_datadir}/gir-1.0/MatePanelApplet-4.0.gir | |
514d5191 ER |
171 | |
172 | %if %{with apidocs} | |
173 | %files apidocs | |
174 | %defattr(644,root,root,755) | |
e6840e88 | 175 | %{_gtkdocdir}/mate-panel-applet |
514d5191 | 176 | %endif |