]>
Commit | Line | Data |
---|---|---|
2f477ff2 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without alsa # ALSA support (in addition to Pulseaudio) | |
4 | ||
5c44d3cc JB |
5 | %define glib_ver 1:2.37.3 |
6 | %define gtk_ver 3.3.16 | |
7 | ||
8 | Summary: The cinnamon-desktop libraries (and common settings schemas for the cinnamon desktop) | |
9 | Summary(pl.UTF-8): Biblioteki cinnamon-desktop (i wspólne schematy ustawień dla środowiska cinnamon) | |
94d52ed6 | 10 | Name: cinnamon-desktop |
2f477ff2 | 11 | Version: 4.0.1 |
5c44d3cc JB |
12 | Release: 1 |
13 | License: GPL v2+ (libcvc), LGPL v2.1+ (libcinnamon-desktop) | |
94d52ed6 | 14 | Group: X11/Applications |
5c44d3cc | 15 | #Source0Download: https://github.com/linuxmint/cinnamon-desktop/releases |
94d52ed6 | 16 | Source0: https://github.com/linuxmint/cinnamon-desktop/archive/%{version}/%{name}-%{version}.tar.gz |
2f477ff2 | 17 | # Source0-md5: 856ae11014fac1c1233b2863dd21428c |
94d52ed6 ER |
18 | Patch0: set_font_defaults.patch |
19 | URL: http://cinnamon.linuxmint.com/ | |
2f477ff2 | 20 | %{?with_alsa:BuildRequires: alsa-lib-devel} |
5c44d3cc JB |
21 | BuildRequires: gdk-pixbuf2-devel >= 2.22.0 |
22 | BuildRequires: gettext-tools | |
23 | BuildRequires: glib2-devel >= %{glib_ver} | |
24 | BuildRequires: gobject-introspection-devel >= 0.9.7 | |
25 | BuildRequires: gtk+3-devel >= %{gtk_ver} | |
2f477ff2 JB |
26 | BuildRequires: meson >= 0.37.0 |
27 | BuildRequires: ninja >= 1.5 | |
5c44d3cc JB |
28 | BuildRequires: pkgconfig >= 1:0.14.0 |
29 | BuildRequires: pulseaudio-devel | |
33a48245 | 30 | BuildRequires: rpm-pythonprov |
94d52ed6 | 31 | BuildRequires: xkeyboard-config |
5c44d3cc | 32 | BuildRequires: xorg-lib-libX11-devel |
33a48245 ER |
33 | BuildRequires: xorg-lib-libXext-devel >= 1.1 |
34 | BuildRequires: xorg-lib-libXrandr-devel >= 1.3 | |
94d52ed6 | 35 | BuildRequires: xorg-lib-libxkbfile-devel |
5c44d3cc | 36 | Requires(post,postun): glib2 >= %{glib_ver} |
c168fce7 | 37 | Requires: %{name}-libs = %{version}-%{release} |
94d52ed6 | 38 | Requires: applnk |
0e7a4bd3 | 39 | Requires: hwdata |
94d52ed6 | 40 | # Make sure to update libgnome schema when changing this |
736f29cb | 41 | #Requires: system-backgrounds-gnome |
94d52ed6 ER |
42 | # Make sure that gnome-themes-standard gets pulled in for upgrades |
43 | Requires: gnome-themes-standard | |
44 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
45 | ||
46 | %description | |
5c44d3cc JB |
47 | The libcinnamon-desktop library provides API shared by several |
48 | applications on the desktop. | |
49 | ||
50 | The libcvc library is a utility library for volume control. | |
51 | ||
52 | %description -l pl.UTF-8 | |
53 | Biblioteka libcinnamon-desktop udostępnia API współdzielone przez | |
54 | kilka aplikacji środowiska. | |
55 | ||
56 | Biblioteka libcvc to biblioteka narzędziowa do sterowania głośnością. | |
94d52ed6 | 57 | |
c168fce7 | 58 | %package libs |
5c44d3cc JB |
59 | Summary: Shared cinnamon-desktop libraries |
60 | Summary(pl.UTF-8): Biblioteki współdzielone cinnamon-desktop | |
c168fce7 | 61 | Group: Libraries |
5c44d3cc JB |
62 | Requires: gdk-pixbuf2 >= 2.22.0 |
63 | Requires: glib2 >= %{glib_ver} | |
64 | Requires: gtk+3 >= %{gtk_ver} | |
65 | Requires: xorg-lib-libXext >= 1.1 | |
66 | Requires: xorg-lib-libXrandr >= 1.3 | |
67 | Conflicts: cinnamon-desktop < 2.4.2-2 | |
c168fce7 ER |
68 | |
69 | %description libs | |
5c44d3cc JB |
70 | The libcinnamon-desktop library provides API shared by several |
71 | applications on the desktop. | |
72 | ||
73 | The libcvc library is a utility library for volume control. | |
74 | ||
75 | %description libs -l pl.UTF-8 | |
76 | Biblioteka libcinnamon-desktop udostępnia API współdzielone przez | |
77 | kilka aplikacji środowiska. | |
78 | ||
79 | Biblioteka libcvc to biblioteka narzędziowa do sterowania głośnością. | |
c168fce7 | 80 | |
94d52ed6 | 81 | %package devel |
5c44d3cc JB |
82 | Summary: Header files for cinnamon-desktop libraries |
83 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek cinnamon-desktop | |
94d52ed6 | 84 | Group: Development/Libraries |
c168fce7 | 85 | Requires: %{name}-libs = %{version}-%{release} |
5c44d3cc JB |
86 | Requires: glib2-devel >= %{glib_ver} |
87 | Requires: gtk+3-devel >= %{gtk_ver} | |
88 | Requires: pulseaudio-devel | |
89 | Requires: xorg-lib-libxkbfile-devel | |
94d52ed6 ER |
90 | |
91 | %description devel | |
5c44d3cc JB |
92 | Header files for cinnamon-desktop libraries. |
93 | ||
94 | %description devel -l pl.UTF-8 | |
95 | Pliki nagłówkowe bibliotek cinnamon-desktop. | |
94d52ed6 ER |
96 | |
97 | %prep | |
98 | %setup -q | |
99 | %patch0 -p1 | |
100 | ||
101 | %build | |
2f477ff2 JB |
102 | %meson build \ |
103 | %{?with_alsa:-Dalsa=true} \ | |
104 | -Dpnp_ids="/lib/hwdata/pnp.ids" | |
105 | ||
106 | %ninja_build -C build | |
94d52ed6 ER |
107 | |
108 | %install | |
109 | rm -rf $RPM_BUILD_ROOT | |
94d52ed6 | 110 | |
2f477ff2 | 111 | %ninja_install -C build |
94d52ed6 | 112 | |
5c44d3cc | 113 | %find_lang cinnamon-desktop |
94d52ed6 ER |
114 | |
115 | %clean | |
116 | rm -rf $RPM_BUILD_ROOT | |
117 | ||
94d52ed6 | 118 | %postun |
94d52ed6 ER |
119 | if [ $1 -eq 0 ]; then |
120 | %glib_compile_schemas | |
121 | fi | |
122 | ||
123 | %posttrans | |
124 | %glib_compile_schemas | |
125 | ||
c168fce7 ER |
126 | %post libs -p /sbin/ldconfig |
127 | %postun libs -p /sbin/ldconfig | |
128 | ||
5c44d3cc | 129 | %files -f cinnamon-desktop.lang |
94d52ed6 | 130 | %defattr(644,root,root,755) |
2f477ff2 | 131 | %doc AUTHORS MAINTAINERS README |
94d52ed6 | 132 | %attr(755,root,root) %{_bindir}/cinnamon-desktop-migrate-mediakeys |
5c44d3cc JB |
133 | %{_datadir}/glib-2.0/schemas/org.cinnamon.desktop.enums.xml |
134 | %{_datadir}/glib-2.0/schemas/org.cinnamon.desktop.*.gschema.xml | |
94d52ed6 | 135 | |
c168fce7 ER |
136 | %files libs |
137 | %defattr(644,root,root,755) | |
5c44d3cc JB |
138 | %attr(755,root,root) %{_libdir}/libcinnamon-desktop.so.*.*.* |
139 | %attr(755,root,root) %ghost %{_libdir}/libcinnamon-desktop.so.4 | |
140 | %attr(755,root,root) %{_libdir}/libcvc.so.*.*.* | |
141 | %attr(755,root,root) %ghost %{_libdir}/libcvc.so.0 | |
142 | %{_libdir}/girepository-1.0/CDesktopEnums-3.0.typelib | |
143 | %{_libdir}/girepository-1.0/CinnamonDesktop-3.0.typelib | |
144 | %{_libdir}/girepository-1.0/Cvc-1.0.typelib | |
c168fce7 | 145 | |
94d52ed6 ER |
146 | %files devel |
147 | %defattr(644,root,root,755) | |
5c44d3cc JB |
148 | %attr(755,root,root) %{_libdir}/libcinnamon-desktop.so |
149 | %attr(755,root,root) %{_libdir}/libcvc.so | |
94d52ed6 ER |
150 | %{_includedir}/cinnamon-desktop |
151 | %{_datadir}/gir-1.0/CDesktopEnums-3.0.gir | |
152 | %{_datadir}/gir-1.0/CinnamonDesktop-3.0.gir | |
5c44d3cc JB |
153 | %{_datadir}/gir-1.0/Cvc-1.0.gir |
154 | %{_pkgconfigdir}/cinnamon-desktop.pc | |
155 | %{_pkgconfigdir}/cvc.pc |