]>
Commit | Line | Data |
---|---|---|
ee47d1d7 ER |
1 | Summary: An extension of GTK |
2 | Name: granite | |
1072797b ER |
3 | Version: 0.1.1 |
4 | Release: 1 | |
ee47d1d7 ER |
5 | License: GPL v3 |
6 | Group: X11/Libraries | |
7 | URL: http://elementaryos.org/ | |
1072797b | 8 | Source0: https://launchpad.net/granite/0.x/%{version}/+download/%{name}-%{version}.tar.gz |
3b0459d4 | 9 | # Source0-md5: 1bc0bc2df9176940097a26f3d031034a |
ee47d1d7 | 10 | BuildRequires: cmake |
c95887eb | 11 | BuildRequires: gettext-devel |
ee47d1d7 ER |
12 | BuildRequires: glib2-devel |
13 | BuildRequires: gobject-introspection-devel | |
c95887eb | 14 | BuildRequires: gtk+3-devel >= 3.3.14 |
ee47d1d7 ER |
15 | BuildRequires: libgee0.6-devel |
16 | BuildRequires: libstdc++-devel | |
c95887eb | 17 | BuildRequires: pkgconfig |
ee47d1d7 | 18 | BuildRequires: vala |
c95887eb ER |
19 | BuildRequires: vala-libgee0.6 |
20 | BuildRequires: which | |
ee47d1d7 ER |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
24 | Granite is an extension of GTK. Among other things, it provides the | |
25 | commonly-used widgets such as modeswitchers, welcome screens, | |
26 | AppMenus, search bars, and more found in elementary apps. | |
27 | ||
28 | %package devel | |
29 | Summary: Header files for libgranite | |
30 | Group: Development/Libraries | |
31 | Requires: %{name} = %{version}-%{release} | |
32 | ||
33 | %description devel | |
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 | ||
38 | This package contains the header files | |
39 | ||
40 | %prep | |
41 | %setup -q | |
42 | ||
43 | %build | |
44 | install -d build | |
45 | cd build | |
46 | %cmake .. | |
47 | %{__make} | |
48 | ||
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | %{__make} install -C build \ | |
52 | DESTDIR=$RPM_BUILD_ROOT | |
53 | ||
54 | %if "%{_lib}" != "lib" | |
55 | mv $RPM_BUILD_ROOT%{_prefix}/lib $RPM_BUILD_ROOT%{_libdir} | |
56 | %endif | |
57 | ||
58 | %find_lang %{name} | |
59 | ||
60 | %clean | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %post -p /sbin/ldconfig | |
64 | %postun -p /sbin/ldconfig | |
65 | ||
66 | %files -f %{name}.lang | |
67 | %defattr(644,root,root,755) | |
68 | %doc AUTHORS | |
69 | %attr(755,root,root) %{_bindir}/granite-demo | |
70 | %attr(755,root,root) %{_libdir}/libgranite.so.*.*.* | |
71 | %attr(755,root,root) %ghost %{_libdir}/libgranite.so.0 | |
1072797b ER |
72 | %{_iconsdir}/hicolor/*/actions/application-menu.svg |
73 | %{_iconsdir}/hicolor/*/actions/application-menu-symbolic.svg | |
74 | %{_libdir}/girepository-1.0/Granite-0.1.1.typelib | |
ee47d1d7 ER |
75 | %{_datadir}/vala/vapi/granite.* |
76 | ||
77 | %files devel | |
78 | %defattr(644,root,root,755) | |
79 | %{_includedir}/%{name} | |
80 | %{_pkgconfigdir}/granite.pc | |
81 | %{_libdir}/libgranite.so | |
1072797b | 82 | %{_datadir}/gir-1.0/Granite-0.1.1.gir |