]>
Commit | Line | Data |
---|---|---|
ee47d1d7 ER |
1 | Summary: An extension of GTK |
2 | Name: granite | |
1072797b | 3 | Version: 0.1.1 |
185f69f8 | 4 | Release: 3 |
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 |
9ff1852d | 11 | BuildRequires: gettext-tools |
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 |
185f69f8 | 18 | BuildRequires: sed >= 4.0 |
ee47d1d7 | 19 | BuildRequires: vala |
c95887eb ER |
20 | BuildRequires: vala-libgee0.6 |
21 | BuildRequires: which | |
185f69f8 | 22 | Requires(post,postun): /sbin/ldconfig |
016f6530 ER |
23 | Requires: gtk-update-icon-cache |
24 | Requires: hicolor-icon-theme | |
185f69f8 | 25 | Obsoletes: granite-libs < 0.1.1-3 |
ee47d1d7 ER |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
28 | %description | |
29 | Granite is an extension of GTK. Among other things, it provides the | |
30 | commonly-used widgets such as modeswitchers, welcome screens, | |
31 | AppMenus, search bars, and more found in elementary apps. | |
32 | ||
33 | %package devel | |
34 | Summary: Header files for libgranite | |
35 | Group: Development/Libraries | |
185f69f8 | 36 | Requires: %{name} = %{version}-%{release} |
ee47d1d7 ER |
37 | |
38 | %description devel | |
111f439d | 39 | This package contains the header files for libgranite. |
ee47d1d7 ER |
40 | |
41 | %prep | |
42 | %setup -q | |
43 | ||
bdae6aff ER |
44 | %{__sed} -i -e ' |
45 | s,${CMAKE_INSTALL_PREFIX}/lib,${CMAKE_INSTALL_LIBDIR}, | |
46 | ' lib/CMakeLists.txt | |
47 | ||
48 | %{__sed} -i -e ' | |
49 | s,DESTINATION lib/girepository-1.0/,DESTINATION lib${LIB_SUFFIX}/girepository-1.0/, | |
50 | ' cmake/GObjectIntrospectionMacros.cmake | |
51 | ||
ee47d1d7 ER |
52 | %build |
53 | install -d build | |
54 | cd build | |
016f6530 ER |
55 | %cmake \ |
56 | -DGSETTINGS_COMPILE=OFF \ | |
57 | -DICON_UPDATE=OFF \ | |
58 | .. | |
ee47d1d7 ER |
59 | %{__make} |
60 | ||
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | %{__make} install -C build \ | |
64 | DESTDIR=$RPM_BUILD_ROOT | |
65 | ||
5fea5589 ER |
66 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/rue |
67 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/sma | |
4a4b0f33 | 68 | |
ee47d1d7 ER |
69 | %find_lang %{name} |
70 | ||
71 | %clean | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
016f6530 | 74 | %post |
185f69f8 | 75 | /sbin/ldconfig |
016f6530 | 76 | %update_icon_cache hicolor |
016f6530 ER |
77 | |
78 | %postun | |
185f69f8 | 79 | /sbin/ldconfig |
016f6530 | 80 | %update_icon_cache hicolor |
016f6530 | 81 | |
ee47d1d7 ER |
82 | %files -f %{name}.lang |
83 | %defattr(644,root,root,755) | |
84 | %doc AUTHORS | |
85 | %attr(755,root,root) %{_bindir}/granite-demo | |
185f69f8 ER |
86 | %attr(755,root,root) %{_libdir}/libgranite.so.*.*.* |
87 | %attr(755,root,root) %ghost %{_libdir}/libgranite.so.0 | |
1072797b ER |
88 | %{_iconsdir}/hicolor/*/actions/application-menu.svg |
89 | %{_iconsdir}/hicolor/*/actions/application-menu-symbolic.svg | |
90 | %{_libdir}/girepository-1.0/Granite-0.1.1.typelib | |
ee47d1d7 ER |
91 | |
92 | %files devel | |
93 | %defattr(644,root,root,755) | |
94 | %{_includedir}/%{name} | |
95 | %{_pkgconfigdir}/granite.pc | |
96 | %{_libdir}/libgranite.so | |
1072797b | 97 | %{_datadir}/gir-1.0/Granite-0.1.1.gir |
505a7b42 | 98 | %{_datadir}/vala/vapi/granite.* |