]>
Commit | Line | Data |
---|---|---|
2896f82b JB |
1 | Summary: An extension of GTK+ 3 |
2 | Summary(pl.UTF-8): Rozszerzenie GTK+ 3 | |
ee47d1d7 | 3 | Name: granite |
2896f82b | 4 | # keep 6.x here (last version for GTK+ 3) |
d5ee9782 | 5 | Version: 6.2.0 |
7b2abf55 | 6 | Release: 2 |
ee47d1d7 ER |
7 | License: GPL v3 |
8 | Group: X11/Libraries | |
8c10fb5f JB |
9 | #Source0Download: https://github.com/elementary/granite/releases |
10 | Source0: https://github.com/elementary/granite/archive/%{version}/%{name}-%{version}.tar.gz | |
d5ee9782 | 11 | # Source0-md5: b5cb2159d784020667c87d21f82157c1 |
d6de9473 | 12 | URL: http://elementaryos.org/ |
9ff1852d | 13 | BuildRequires: gettext-tools |
2211a737 | 14 | BuildRequires: glib2-devel >= 1:2.50 |
ee47d1d7 | 15 | BuildRequires: gobject-introspection-devel |
2bb65ecf | 16 | BuildRequires: gtk+3-devel >= 3.22 |
8c10fb5f | 17 | BuildRequires: libgee-devel >= 0.8 |
2211a737 JB |
18 | BuildRequires: meson >= 0.48.2 |
19 | BuildRequires: ninja >= 1.5 | |
c95887eb | 20 | BuildRequires: pkgconfig |
2211a737 JB |
21 | BuildRequires: rpm-build >= 4.6 |
22 | BuildRequires: rpmbuild(macros) >= 1.736 | |
d5ee9782 | 23 | BuildRequires: vala >= 2:0.48 |
8c10fb5f | 24 | BuildRequires: vala-libgee >= 0.8 |
185f69f8 | 25 | Requires(post,postun): /sbin/ldconfig |
2896f82b | 26 | Requires(post,postun): gtk-update-icon-cache |
2211a737 | 27 | Requires: glib2 >= 1:2.50 |
2bb65ecf | 28 | Requires: gtk+3 >= 3.22 |
016f6530 | 29 | Requires: hicolor-icon-theme |
185f69f8 | 30 | Obsoletes: granite-libs < 0.1.1-3 |
ee47d1d7 ER |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
33 | %description | |
34 | Granite is an extension of GTK. Among other things, it provides the | |
35 | commonly-used widgets such as modeswitchers, welcome screens, | |
36 | AppMenus, search bars, and more found in elementary apps. | |
37 | ||
d6de9473 JB |
38 | %description -l pl.UTF-8 |
39 | Granite to rozszerzenie GTK. Dostarcza między innymi takie popularne | |
40 | widżety, jak przełączniki trybów, ekrany powitalne, AppMenu, paski | |
41 | wyszukiwania i inne, jakie można spotkać w aplikacjach elementary. | |
42 | ||
ee47d1d7 ER |
43 | %package devel |
44 | Summary: Header files for libgranite | |
d6de9473 | 45 | Summary(pl.UTF-8): Pliki nagłówkowe libgranite |
ee47d1d7 | 46 | Group: Development/Libraries |
185f69f8 | 47 | Requires: %{name} = %{version}-%{release} |
2211a737 | 48 | Requires: glib2-devel >= 1:2.50 |
2bb65ecf | 49 | Requires: gtk+3-devel >= 3.22 |
ee47d1d7 ER |
50 | |
51 | %description devel | |
111f439d | 52 | This package contains the header files for libgranite. |
ee47d1d7 | 53 | |
d6de9473 JB |
54 | %description devel -l pl.UTF-8 |
55 | Ten pakiet zawiera pliki nagłówkowe libgranite. | |
56 | ||
8c10fb5f JB |
57 | %package -n vala-granite |
58 | Summary: Vala API for libgranite library | |
59 | Summary(pl.UTF-8): API języka Vala do biblioteki libgranite | |
60 | Group: Development/Libraries | |
61 | Requires: %{name}-devel = %{version}-%{release} | |
d5ee9782 | 62 | Requires: vala >= 2:0.48 |
8c10fb5f JB |
63 | Requires: vala-libgee >= 0.8 |
64 | BuildArch: noarch | |
ee47d1d7 | 65 | |
8c10fb5f JB |
66 | %description -n vala-granite |
67 | Vala API for libgranite library. | |
bdae6aff | 68 | |
8c10fb5f JB |
69 | %description -n vala-granite -l pl.UTF-8 |
70 | API języka Vala do biblioteki libgranite. | |
71 | ||
72 | %prep | |
73 | %setup -q | |
bdae6aff | 74 | |
ee47d1d7 | 75 | %build |
2211a737 JB |
76 | %meson build \ |
77 | --default-library=shared \ | |
78 | -Ddocumentation=true | |
79 | ||
80 | %ninja_build -C build | |
ee47d1d7 ER |
81 | |
82 | %install | |
83 | rm -rf $RPM_BUILD_ROOT | |
d6de9473 | 84 | |
2211a737 | 85 | %ninja_install -C build |
ee47d1d7 | 86 | |
d6de9473 | 87 | # not supported by glibc (as of 2.37) |
2211a737 | 88 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{ie,rue,sma} |
7b2abf55 JB |
89 | # no generic variant supported, zh_{CN,TW} already present |
90 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/zh | |
4a4b0f33 | 91 | |
ee47d1d7 ER |
92 | %find_lang %{name} |
93 | ||
94 | %clean | |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | ||
016f6530 | 97 | %post |
185f69f8 | 98 | /sbin/ldconfig |
016f6530 | 99 | %update_icon_cache hicolor |
016f6530 ER |
100 | |
101 | %postun | |
185f69f8 | 102 | /sbin/ldconfig |
016f6530 | 103 | %update_icon_cache hicolor |
016f6530 | 104 | |
ee47d1d7 ER |
105 | %files -f %{name}.lang |
106 | %defattr(644,root,root,755) | |
2211a737 | 107 | %doc README.md |
ee47d1d7 | 108 | %attr(755,root,root) %{_bindir}/granite-demo |
185f69f8 | 109 | %attr(755,root,root) %{_libdir}/libgranite.so.*.*.* |
d5ee9782 | 110 | %attr(755,root,root) %ghost %{_libdir}/libgranite.so.6 |
2bb65ecf | 111 | %{_libdir}/girepository-1.0/Granite-1.0.typelib |
2211a737 JB |
112 | %{_datadir}/metainfo/granite.appdata.xml |
113 | %{_desktopdir}/io.elementary.granite.demo.desktop | |
114 | %{_iconsdir}/hicolor/*x*/actions/appointment.svg | |
115 | %{_iconsdir}/hicolor/*x*/actions/open-menu.svg | |
116 | %{_iconsdir}/hicolor/scalable/actions/open-menu-symbolic.svg | |
ee47d1d7 ER |
117 | |
118 | %files devel | |
119 | %defattr(644,root,root,755) | |
2bb65ecf | 120 | %{_libdir}/libgranite.so |
2211a737 | 121 | %{_includedir}/granite |
2bb65ecf | 122 | %{_datadir}/gir-1.0/Granite-1.0.gir |
ee47d1d7 | 123 | %{_pkgconfigdir}/granite.pc |
2bb65ecf JB |
124 | |
125 | %files -n vala-granite | |
126 | %defattr(644,root,root,755) | |
8c10fb5f JB |
127 | %{_datadir}/vala/vapi/granite.deps |
128 | %{_datadir}/vala/vapi/granite.vapi |