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