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