]>
Commit | Line | Data |
---|---|---|
b5f11e7b | 1 | %define translations_version 5.8.2 |
69880818 | 2 | %define cinnamon_desktop_ver 4.6.0 |
848d9624 JB |
3 | %define csd_ver 4.4.0 |
4 | %define cinnamon_menus_ver 4.4.0 | |
5 | ||
6 | Summary: Utilities to configure the Cinnamon desktop | |
7 | Summary(pl.UTF-8): Narzędzia do konfiguracji środowiska Cinnamon | |
8 | Name: cinnamon-control-center | |
b5f11e7b | 9 | Version: 5.8.2 |
ccb9f489 | 10 | Release: 2 |
848d9624 JB |
11 | License: GPL v2+ |
12 | Group: X11/Applications | |
13 | #Source0Download: https://github.com/linuxmint/cinnamon-control-center/releases | |
14 | Source0: https://github.com/linuxmint/cinnamon-control-center/archive/%{version}/%{name}-%{version}.tar.gz | |
b5f11e7b | 15 | # Source0-md5: b439afe580c8d0dd294d7255d9e8a6e1 |
4c80806c | 16 | #Source1Download: https://github.com/linuxmint/cinnamon-translations/releases |
69880818 | 17 | Source1: https://github.com/linuxmint/cinnamon-translations/archive/%{translations_version}/cinnamon-translations-%{translations_version}.tar.gz |
b5f11e7b | 18 | # Source1-md5: ec085ca8784b03b74d5769a9d3bcd031 |
848d9624 JB |
19 | URL: https://github.com/linuxmint/cinnamon-control-center |
20 | BuildRequires: ModemManager-devel >= 0.7 | |
69880818 | 21 | BuildRequires: NetworkManager-devel >= 2:1.8.0 |
848d9624 | 22 | BuildRequires: NetworkManager-gtk-lib-devel >= 1.8.0 |
848d9624 JB |
23 | BuildRequires: cinnamon-desktop-devel >= %{cinnamon_desktop_ver} |
24 | BuildRequires: cinnamon-menus-devel >= %{cinnamon_menus_ver} | |
25 | BuildRequires: cinnamon-settings-daemon-devel >= %{csd_ver} | |
26 | BuildRequires: colord-devel >= 0.1.14 | |
848d9624 JB |
27 | BuildRequires: fontconfig-devel |
28 | BuildRequires: gdk-pixbuf2-devel >= 2.23.0 | |
29 | BuildRequires: gettext-tools | |
69880818 | 30 | BuildRequires: glib2-devel >= 1:2.44.0 |
848d9624 | 31 | BuildRequires: gnome-online-accounts-devel >= 3.21.5 |
69880818 | 32 | BuildRequires: gtk+3-devel >= 3.16.0 |
848d9624 | 33 | BuildRequires: iso-codes |
9f048e80 | 34 | BuildRequires: libgnomekbd-devel >= 3.28 |
b837069b | 35 | BuildRequires: libgudev-devel >= 232 |
848d9624 | 36 | BuildRequires: libnotify-devel >= 0.7.3 |
848d9624 JB |
37 | BuildRequires: libwacom-devel >= 0.27 |
38 | BuildRequires: libxklavier-devel >= 5.1 | |
39 | BuildRequires: libxml2-devel >= 2.0 | |
69880818 JB |
40 | BuildRequires: meson >= 0.49.0 |
41 | BuildRequires: ninja >= 1.5 | |
848d9624 | 42 | BuildRequires: polkit-devel >= 0.103 |
c3e10d07 | 43 | BuildRequires: rpmbuild(macros) >= 1.736 |
b837069b | 44 | BuildRequires: upower-devel >= 0.99.8 |
848d9624 JB |
45 | BuildRequires: xorg-lib-libX11-devel |
46 | BuildRequires: xorg-lib-libXi-devel >= 1.2 | |
eb57d409 | 47 | Requires(post,postun): glib2-devel >= 1:2.44.0 |
848d9624 JB |
48 | Requires: %{name}-libs = %{version}-%{release} |
49 | Requires: NetworkManager >= 2:1.8.0 | |
50 | # nm-connection-editor for the network panel | |
51 | Requires: NetworkManager-applet >= 1.8.0 | |
52 | Requires: cinnamon-desktop >= %{cinnamon_desktop_ver} | |
53 | Requires: cinnamon-menus >= %{cinnamon_menus_ver} | |
54 | Requires: cinnamon-settings-daemon >= %{csd_ver} | |
848d9624 | 55 | Requires: colord >= 0.1.14 |
848d9624 JB |
56 | Requires: dbus-x11 |
57 | Requires: gdk-pixbuf2 >= 2.23.0 | |
58 | # For the colour panel | |
59 | Requires: gnome-color-manager | |
60 | Requires: hicolor-icon-theme | |
61 | Requires: iso-codes | |
9f048e80 | 62 | Requires: libgnomekbd >= 3.28 |
b837069b | 63 | Requires: libgudev >= 232 |
848d9624 JB |
64 | Requires: libnotify >= 0.7.3 |
65 | Requires: libwacom >= 0.27 | |
66 | Requires: libxklavier >= 5.1 | |
67 | Requires: polkit >= 0.103 | |
b837069b | 68 | Requires: upower >= 0.99.8 |
848d9624 JB |
69 | Requires: xorg-lib-libXi >= 1.2 |
70 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
71 | ||
72 | %description | |
73 | This package contains configuration utilities for the Cinnamon | |
74 | desktop, which allow to configure accessibility options, desktop | |
75 | fonts, keyboard and mouse properties, sound setup, desktop theme and | |
76 | background, user interface properties, screen resolution, and other | |
77 | settings. | |
78 | ||
79 | %description -l pl.UTF-8 | |
80 | Ten pakiet zawiera narzędzia konfiguracyjne dla środowiska graficznego | |
81 | Cinnamon, pozwalające konfigurować opcje dostępności, fonty, | |
82 | właściwości klawiatury i myszy, dźwięki, motywy pulpitu i tła, | |
83 | ustawienia interfejsu użytkownika, rozdzielczość ekranu i inne. | |
84 | ||
85 | %package libs | |
86 | Summary: Cinnamon control center shared library | |
87 | Summary(pl.UTF-8): Pakiet programistyczny Cinnamon control center | |
88 | Group: Libraries | |
69880818 JB |
89 | Requires: glib2 >= 1:2.44.0 |
90 | Requires: gtk+3 >= 3.16.0 | |
848d9624 JB |
91 | |
92 | %description libs | |
93 | Cinnamon control center shared library. | |
94 | ||
95 | %description libs -l pl.UTF-8 | |
96 | Pakiet programistyczny Cinnamon control center. | |
97 | ||
98 | %package devel | |
99 | Summary: Development package for Cinnamon control center | |
100 | Summary(pl.UTF-8): Pakiet programistyczny Cinnamon control center | |
101 | Group: Development/Libraries | |
102 | Requires: %{name}-libs = %{version}-%{release} | |
69880818 JB |
103 | Requires: glib2-devel >= 1:2.44.0 |
104 | Requires: gtk+3-devel >= 3.16.0 | |
848d9624 JB |
105 | |
106 | %description devel | |
107 | Header files for Cinnamon control center. | |
108 | ||
109 | %description devel -l pl.UTF-8 | |
110 | Pliki nagłówkowe Cinnamon control center. | |
111 | ||
112 | %prep | |
4c80806c | 113 | %setup -q -a1 |
848d9624 JB |
114 | |
115 | %build | |
69880818 JB |
116 | %meson build |
117 | ||
118 | %ninja_build -C build | |
119 | ||
120 | %{__make} -C cinnamon-translations-%{translations_version} | |
848d9624 JB |
121 | |
122 | %install | |
123 | rm -rf $RPM_BUILD_ROOT | |
124 | ||
69880818 | 125 | %ninja_install -C build |
848d9624 | 126 | |
69880818 | 127 | cd cinnamon-translations-%{translations_version} |
4c80806c JB |
128 | for f in usr/share/locale/*/LC_MESSAGES/%{name}.mo ; do |
129 | install -D "$f" "$RPM_BUILD_ROOT/$f" | |
130 | done | |
131 | cd .. | |
132 | ||
0c730922 | 133 | # not supported by glibc |
ccb9f489 | 134 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{ie,frp,rue,zgh} |
4c80806c JB |
135 | |
136 | # cinnamon-control-center (from translations) and cinnamon-control-center-timezones domains | |
137 | %find_lang %{name} --all-name | |
848d9624 JB |
138 | |
139 | %clean | |
140 | rm -rf $RPM_BUILD_ROOT | |
141 | ||
eb57d409 JB |
142 | %post |
143 | %glib_compile_schemas | |
144 | ||
145 | %postun | |
146 | %glib_compile_schemas | |
147 | ||
848d9624 JB |
148 | %post libs -p /sbin/ldconfig |
149 | %postun libs -p /sbin/ldconfig | |
150 | ||
4c80806c | 151 | %files -f %{name}.lang |
848d9624 | 152 | %defattr(644,root,root,755) |
4c80806c | 153 | %doc AUTHORS README README.md debian/changelog |
848d9624 JB |
154 | %attr(755,root,root) %{_bindir}/cinnamon-control-center |
155 | %dir %{_libdir}/cinnamon-control-center-1 | |
156 | %dir %{_libdir}/cinnamon-control-center-1/panels | |
157 | %{_libdir}/cinnamon-control-center-1/panels/libcolor.so | |
848d9624 JB |
158 | %{_libdir}/cinnamon-control-center-1/panels/libdisplay.so |
159 | %{_libdir}/cinnamon-control-center-1/panels/libnetwork.so | |
160 | %{_libdir}/cinnamon-control-center-1/panels/libonline-accounts.so | |
161 | %{_libdir}/cinnamon-control-center-1/panels/libregion.so | |
162 | %{_libdir}/cinnamon-control-center-1/panels/libwacom-properties.so | |
848d9624 | 163 | %dir %{_datadir}/cinnamon-control-center |
b837069b | 164 | %{_datadir}/cinnamon-control-center/panels |
848d9624 | 165 | %{_datadir}/cinnamon-control-center/ui |
eb57d409 | 166 | %{_datadir}/glib-2.0/schemas/org.cinnamon.control-center.display.gschema.xml |
848d9624 JB |
167 | %{_desktopdir}/cinnamon-color-panel.desktop |
168 | %{_desktopdir}/cinnamon-display-panel.desktop | |
169 | %{_desktopdir}/cinnamon-network-panel.desktop | |
848d9624 JB |
170 | %{_desktopdir}/cinnamon-wacom-panel.desktop |
171 | %{_iconsdir}/hicolor/*x*/apps/cinnamon-preferences-*.png | |
848d9624 JB |
172 | %{_iconsdir}/hicolor/scalable/apps/cinnamon-preferences-*.svg |
173 | ||
174 | %files libs | |
175 | %defattr(644,root,root,755) | |
176 | %attr(755,root,root) %{_libdir}/libcinnamon-control-center.so.*.*.* | |
177 | %attr(755,root,root) %ghost %{_libdir}/libcinnamon-control-center.so.1 | |
178 | ||
179 | %files devel | |
180 | %defattr(644,root,root,755) | |
181 | %attr(755,root,root) %{_libdir}/libcinnamon-control-center.so | |
182 | %{_includedir}/cinnamon-control-center-1 | |
183 | %{_pkgconfigdir}/libcinnamon-control-center.pc |