]> git.pld-linux.org Git - packages/mate-control-center.git/blob - mate-control-center.spec
a62cd4634c4dab0be44b689e40b12f23f8d2dad9
[packages/mate-control-center.git] / mate-control-center.spec
1 Summary:        MATE Desktop control-center
2 Name:           mate-control-center
3 Version:        1.5.4
4 Release:        1
5 License:        LGPL v2+ and GPL v2+
6 Group:          X11/Applications
7 Source0:        http://pub.mate-desktop.org/releases/1.5/%{name}-%{version}.tar.xz
8 # Source0-md5:  71545e5ffe56f45da2fe8f6cac6c8009
9 URL:            http://wiki.mate-desktop.org/mate-control-center
10 BuildRequires:  dbus-glib-devel
11 BuildRequires:  dconf-devel
12 BuildRequires:  desktop-file-utils
13 BuildRequires:  gsettings-desktop-schemas-devel
14 BuildRequires:  gtk+2-devel
15 BuildRequires:  icon-naming-utils
16 BuildRequires:  libcanberra-devel
17 BuildRequires:  libmatekbd-devel
18 BuildRequires:  libmatenotify-devel
19 BuildRequires:  librsvg-devel
20 BuildRequires:  libunique-devel
21 BuildRequires:  libxklavier-devel
22 BuildRequires:  mate-common
23 BuildRequires:  mate-desktop-devel
24 BuildRequires:  mate-doc-utils
25 BuildRequires:  mate-menus-devel
26 BuildRequires:  mate-settings-daemon-devel
27 BuildRequires:  mate-window-manager-devel
28 BuildRequires:  nss-devel
29 BuildRequires:  polkit-devel
30 BuildRequires:  rpmbuild(find_lang) >= 1.36
31 BuildRequires:  rpmbuild(macros) >= 1.596
32 BuildRequires:  tar >= 1:1.22
33 BuildRequires:  xorg-lib-libICE-devel
34 BuildRequires:  xorg-lib-libSM-devel
35 BuildRequires:  xorg-lib-libXScrnSaver-devel
36 BuildRequires:  xorg-lib-libXext-devel
37 BuildRequires:  xorg-lib-libXxf86misc-devel
38 BuildRequires:  xorg-lib-libxkbfile-devel
39 BuildRequires:  xz
40 Requires:       %{name}-libs = %{version}-%{release}
41 Requires:       desktop-file-utils
42 Requires:       glib2 >= 1:2.26.0
43 Requires:       gsettings-desktop-schemas
44 Requires:       gtk-update-icon-cache
45 Requires:       hicolor-icon-theme
46 Requires:       shared-mime-info
47 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48
49 %description
50 MATE Desktop Control Center.
51
52 %package libs
53 Summary:        MATE Control Center libmate-window-settings library
54 Summary(pl.UTF-8):      Biblioteka Control Center libmate-window-settings
55 Group:          X11/Libraries
56 Conflicts:      mate-control-center < 1.5.3-2
57
58 %description libs
59 This package contains libmate-window-settings library.
60
61 %description libs -l pl.UTF-8
62 Pakiet ten zawiera bibliotekÄ™ libmate-window-settings.
63
64 %package devel
65 Summary:        Development files for mate-settings-daemon
66 Group:          X11/Development/Libraries
67 Requires:       %{name}-libs = %{version}-%{release}
68
69 %description devel
70 Development files for mate-control-center
71
72 %prep
73 %setup -q
74
75 %build
76 NOCONFIGURE=1 ./autogen.sh
77 %configure \
78         --with-html-dir=%{_gtkdocdir} \
79         --disable-static \
80         --disable-schemas-compile \
81         --disable-update-mimedb \
82         --disable-scrollkeeper
83
84 %{__make} \
85         V=1
86
87 %install
88 rm -rf $RPM_BUILD_ROOT
89 %{__make} install \
90         DESTDIR=$RPM_BUILD_ROOT
91
92 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmate-window-settings.la
93 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libslab.la
94 %{__rm} $RPM_BUILD_ROOT%{_libdir}/window-manager-settings/libmarco.la
95
96 # mate < 1.5 did not exist in pld, avoid dependency on mate-conf
97 %{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/mate-control-center.convert
98
99 desktop-file-install \
100         --remove-category="MATE" \
101         --add-category="X-Mate" \
102         --delete-original \
103         --dir=$RPM_BUILD_ROOT%{_desktopdir} \
104 $RPM_BUILD_ROOT%{_desktopdir}/*.desktop
105
106 # delete mime cache
107 %{__rm} $RPM_BUILD_ROOT%{_desktopdir}/mimeinfo.cache
108
109 %find_lang %{name} --with-mate --with-omf --all-name
110
111 %clean
112 rm -rf $RPM_BUILD_ROOT
113
114 %post
115 %update_desktop_database
116 %update_icon_cache hicolor
117 %update_mime_database
118 %glib_compile_schemas
119
120 %postun
121 %update_desktop_database_postun
122 %update_icon_cache hicolor
123 %update_mime_database
124 %glib_compile_schemas
125
126 %post   libs -p /sbin/ldconfig
127 %postun libs -p /sbin/ldconfig
128
129 %files -f %{name}.lang
130 %defattr(644,root,root,755)
131 %doc AUTHORS COPYING README
132 %{_sysconfdir}/xdg/menus/matecc.menu
133 %attr(755,root,root) %{_bindir}/mate-*
134 %attr(755,root,root) %{_sbindir}/mate-display-properties-install-systemwide
135 %dir %{_libdir}/window-manager-settings
136 %attr(755,root,root) %{_libdir}/window-manager-settings/libmarco.so
137 %{_desktopdir}/*.desktop
138 %{_datadir}/desktop-directories/matecc.directory
139 %{_iconsdir}/hicolor/*/apps/*.*
140 %{_datadir}/glib-2.0/schemas/org.mate.*.xml
141 %{_datadir}/mate-control-center
142 %{_datadir}/mime/packages/mate-theme-package.xml
143 %{_datadir}/thumbnailers/mate-font-viewer.thumbnailer
144 %{_datadir}/polkit-1/actions/org.mate.randr.policy
145
146 # referred as builtins in capplets/common/mate-theme-info.c
147 # http://git.gnome.org/browse/gnome-control-center/tree/capplets/common/gnome-theme-info.c?id=GNOME_CONTROL_CENTER_2_32_1
148 %dir %{_datadir}/mate/cursor-fonts
149 # TODO: maybe .gzlike other fonts in %{_datadir}/fonts/misc/*.pcf.gz?
150 %{_datadir}/mate/cursor-fonts/*.pcf
151
152 %files libs
153 %defattr(644,root,root,755)
154 %attr(755,root,root) %{_libdir}/libmate-window-settings.so.*.*.*
155 %ghost %{_libdir}/libmate-window-settings.so.1
156 %attr(755,root,root) %{_libdir}/libslab.so.*.*.*
157 %ghost %{_libdir}/libslab.so.0
158
159 %files devel
160 %defattr(644,root,root,755)
161 %{_includedir}/libslab
162 %{_includedir}/mate-window-settings-2.0
163 %{_libdir}/libmate-window-settings.so
164 %{_libdir}/libslab.so
165 %{_npkgconfigdir}/mate-default-applications.pc
166 %{_npkgconfigdir}/mate-keybindings.pc
167 %{_pkgconfigdir}/libslab.pc
168 %{_pkgconfigdir}/mate-window-settings-2.0.pc
This page took 0.091391 seconds and 2 git commands to generate.