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