]> git.pld-linux.org Git - packages/gnome-control-center.git/blob - gnome-control-center.spec
4585813db2c5a2e5abab4837b6f278da54a6dc47
[packages/gnome-control-center.git] / gnome-control-center.spec
1 #
2 # Conditional build:
3 %bcond_without  systemd # use systemd for session tracking instead of ConsoleKit (fallback to ConsoleKit on runtime)
4 #
5 Summary:        GNOME Control Center
6 Summary(es.UTF-8):      El centro de controle del GNOME
7 Summary(pl.UTF-8):      Centrum Kontroli GNOME
8 Summary(pt_BR.UTF-8):   O Centro de Controle do GNOME
9 Summary(ru.UTF-8):      Центр управления GNOME
10 Summary(uk.UTF-8):      Центр керування GNOME
11 Name:           gnome-control-center
12 Version:        3.4.2
13 Release:        1
14 Epoch:          1
15 License:        GPL v2+
16 Group:          X11/Applications
17 Source0:        http://ftp.gnome.org/pub/GNOME/sources/gnome-control-center/3.4/%{name}-%{version}.tar.xz
18 # Source0-md5:  cebb27d87bdfc8175073eebb6610a498
19 Patch0:         system-locale-archive-path.patch
20 Patch1:         configure-gettext.patch
21 Patch2:         systemd-fallback.patch
22 URL:            http://www.gnome.org/
23 # use libnm-gtk - will use correct NM version
24 BuildRequires:  NetworkManager-gtk-lib-devel >= 0.9.1.90-2
25 BuildRequires:  autoconf
26 BuildRequires:  automake >= 1:1.11
27 BuildRequires:  cheese-devel >= 3.4.0
28 BuildRequires:  colord-devel >= 0.1.8
29 BuildRequires:  cups-devel >= 1.4
30 BuildRequires:  dbus-glib-devel >= 0.74
31 BuildRequires:  docbook-dtd412-xml
32 BuildRequires:  gdk-pixbuf2-devel >= 2.24.0
33 BuildRequires:  gettext-devel >= 0.17
34 BuildRequires:  glib2-devel >= 1:2.32.0
35 BuildRequires:  gnome-bluetooth-devel >= 3.4.0
36 BuildRequires:  gnome-common >= 2.24.0
37 BuildRequires:  gnome-desktop-devel >= 3.4.0
38 BuildRequires:  gnome-doc-utils >= 0.12.1
39 BuildRequires:  gnome-menus-devel >= 3.4.0
40 BuildRequires:  gnome-online-accounts-devel >= 3.2.0
41 BuildRequires:  gnome-settings-daemon-devel >= 1:3.4.0
42 BuildRequires:  gsettings-desktop-schemas-devel >= 3.4.0
43 BuildRequires:  gstreamer-devel
44 BuildRequires:  gtk+3-devel >= 3.4.0
45 BuildRequires:  gtk-doc >= 1.9
46 BuildRequires:  intltool >= 0.40.1
47 BuildRequires:  iso-codes
48 BuildRequires:  lcms2-devel
49 BuildRequires:  libcanberra-gtk3-devel >= 0.26
50 BuildRequires:  libgnomekbd-devel >= 3.0.0
51 BuildRequires:  libgtop-devel
52 BuildRequires:  libnotify-devel >= 0.7.3
53 BuildRequires:  libsocialweb-devel
54 BuildRequires:  libtool >= 2:2.2
55 BuildRequires:  libwacom-devel >= 0.3
56 BuildRequires:  libxklavier-devel >= 5.1
57 BuildRequires:  libxml2-devel >= 1:2.6.31
58 BuildRequires:  pkgconfig
59 BuildRequires:  polkit-devel >= 0.103
60 BuildRequires:  pulseaudio-devel >= 0.9.16
61 BuildRequires:  rpmbuild(find_lang) >= 1.23
62 BuildRequires:  rpmbuild(macros) >= 1.311
63 %{?with_systemd:BuildRequires:  systemd-devel}
64 BuildRequires:  tar >= 1:1.22
65 BuildRequires:  upower-devel >= 0.9.1
66 BuildRequires:  xorg-lib-libXxf86misc-devel
67 BuildRequires:  xorg-lib-libxkbfile-devel
68 BuildRequires:  xz
69 Requires(post,postun):  desktop-file-utils
70 Requires(post,postun):  gtk-update-icon-cache
71 Requires(post,postun):  shared-mime-info
72 Requires:       accountsservice
73 Requires:       cups-pk-helper
74 Requires:       desktop-file-utils
75 Requires:       gnome-settings-daemon >= 1:3.4.0
76 Requires:       gsettings-desktop-schemas >= 3.4.0
77 Requires:       hicolor-icon-theme
78 Requires:       libgnomekbd >= 3.0.0
79 Suggests:       apg
80 Suggests:       libcanberra-gnome
81 Suggests:       mousetweaks >= 3.0.0
82 Provides:       control-center = %{epoch}:%{version}-%{release}
83 Obsoletes:      acme
84 Obsoletes:      control-center
85 Obsoletes:      control-center-libs
86 Obsoletes:      fontilus
87 Obsoletes:      gnome
88 Obsoletes:      gnome-control-center-libs
89 Obsoletes:      gnome-media-volume-control
90 Obsoletes:      themus
91 # sr@Latn vs. sr@latin
92 Conflicts:      glibc-misc < 6:2.7
93 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
94
95 %description
96 A Configuration tool for easily setting up your GNOME environment.
97
98 %description -l es.UTF-8
99 El control-center es una herramienta para una configuración facilitada
100 el entorno GNOME.
101
102 %description -l pl.UTF-8
103 Narzędzie do łatwej konfiguracji środowiska GNOME.
104
105 %description -l pt_BR.UTF-8
106 O Control Center é uma ferramenta para facilmente configurar seu
107 ambiente GNOME.
108
109 %description -l ru.UTF-8
110 Пакет Control Center содержит утилиты, позволяющие настраивать среду
111 GNOME вашей системы (такие вещи как фон рабочего стола и темы,
112 программа сохранения экрана, оконный менеджер, системные звуки,
113 поведение мыши и др.)
114
115 Этот пакет нужен, если вы устанавливаете среду GNOME.
116
117 %description -l uk.UTF-8
118 Пакет Control Center містить утиліти, які дозволяють настроювати
119 середовище GNOME вашої системи (такі речі як фон робочого столу та
120 теми, програма збереження екрану, віконний менеджер, системні звуки,
121 поведінка миші та ін.)
122
123 Цей пакет потрібний, якщо ви встановлюєте середовище GNOME.
124
125 %package devel
126 Summary:        GNOME Control Center development files
127 Summary(pl.UTF-8):      Pliki programistyczne GNOME Control Center
128 Group:          X11/Development/Libraries
129 Provides:       control-center-devel = %{epoch}:%{version}-%{release}
130 Obsoletes:      control-center-devel
131
132 %description devel
133 GNOME Control Center development files.
134
135 %description devel -l pl.UTF-8
136 Pliki programistyczne GNOME Control Center.
137
138 %prep
139 %setup -q
140 %patch0 -p1
141 %patch1 -p1
142 %{?with_systemd:%patch2 -p1}
143
144 %build
145 %{__gnome_doc_prepare}
146 %{__gnome_doc_common}
147 %{__gettextize}
148 %{__intltoolize}
149 %{__libtoolize}
150 %{__aclocal}
151 %{__autoconf}
152 %{__autoheader}
153 %{__automake}
154 %configure \
155         --disable-silent-rules \
156         --disable-update-mimedb \
157         --with-libsocialweb \
158         %{__enable_disable systemd systemd} \
159         X_EXTRA_LIBS="-lXext"
160 %{__make}
161
162 %install
163 rm -rf $RPM_BUILD_ROOT
164
165 %{__make} install \
166         DESTDIR=$RPM_BUILD_ROOT
167
168 # no static modules - shut up check-files
169 %{__rm} $RPM_BUILD_ROOT%{_libdir}/control-center-1/panels/*.{a,la}
170
171 %find_lang %{name} --with-gnome --with-omf --all-name
172
173 %clean
174 rm -rf $RPM_BUILD_ROOT
175
176 %post
177 %update_mime_database
178 %update_desktop_database_post
179 %update_icon_cache hicolor
180
181 %postun
182 %update_mime_database
183 %update_desktop_database_postun
184 %update_icon_cache hicolor
185
186 %files -f %{name}.lang
187 %defattr(644,root,root,755)
188 %doc AUTHORS ChangeLog MAINTAINERS NEWS README
189 %attr(755,root,root) %{_bindir}/gnome-control-center
190 %attr(755,root,root) %{_bindir}/gnome-sound-applet
191 %dir %{_libdir}/control-center-1
192 %dir %{_libdir}/control-center-1/panels
193 %attr(755,root,root) %{_libdir}/control-center-1/panels/libbackground.so
194 %attr(755,root,root) %{_libdir}/control-center-1/panels/libbluetooth.so
195 %attr(755,root,root) %{_libdir}/control-center-1/panels/libcolor.so
196 %attr(755,root,root) %{_libdir}/control-center-1/panels/libdate_time.so
197 %attr(755,root,root) %{_libdir}/control-center-1/panels/libdisplay.so
198 %attr(755,root,root) %{_libdir}/control-center-1/panels/libinfo.so
199 %attr(755,root,root) %{_libdir}/control-center-1/panels/libkeyboard.so
200 %attr(755,root,root) %{_libdir}/control-center-1/panels/libmouse-properties.so
201 %attr(755,root,root) %{_libdir}/control-center-1/panels/libnetwork.so
202 %attr(755,root,root) %{_libdir}/control-center-1/panels/libonline-accounts.so
203 %attr(755,root,root) %{_libdir}/control-center-1/panels/libregion.so
204 %attr(755,root,root) %{_libdir}/control-center-1/panels/libsound.so
205 %attr(755,root,root) %{_libdir}/control-center-1/panels/libpower.so
206 %attr(755,root,root) %{_libdir}/control-center-1/panels/libprinters.so
207 %attr(755,root,root) %{_libdir}/control-center-1/panels/libscreen.so
208 %attr(755,root,root) %{_libdir}/control-center-1/panels/libuniversal-access.so
209 %attr(755,root,root) %{_libdir}/control-center-1/panels/libuser-accounts.so
210 %attr(755,root,root) %{_libdir}/control-center-1/panels/libwacom-properties.so
211 %{_sysconfdir}/xdg/autostart/gnome-sound-applet.desktop
212 %{_sysconfdir}/xdg/menus/gnomecc.menu
213 %{_datadir}/polkit-1/actions/org.gnome.controlcenter.datetime.policy
214 %{_datadir}/gnome-control-center
215 %{_datadir}/sounds/gnome
216 %{_datadir}/desktop-directories/*.directory
217 %{_iconsdir}/hicolor/*/*/*.png
218 %{_iconsdir}/hicolor/*/*/*.svg
219 %{_desktopdir}/*.desktop
220 %{_pixmapsdir}/faces
221
222 %files devel
223 %defattr(644,root,root,755)
224 %{_npkgconfigdir}/gnome-keybindings.pc
This page took 0.08721 seconds and 2 git commands to generate.