]>
Commit | Line | Data |
---|---|---|
1 | Summary: An extension of GTK | |
2 | Name: granite | |
3 | Version: 0.1.1 | |
4 | Release: 3 | |
5 | License: GPL v3 | |
6 | Group: X11/Libraries | |
7 | URL: http://elementaryos.org/ | |
8 | Source0: https://launchpad.net/granite/0.x/%{version}/+download/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 1bc0bc2df9176940097a26f3d031034a | |
10 | BuildRequires: cmake | |
11 | BuildRequires: gettext-tools | |
12 | BuildRequires: glib2-devel | |
13 | BuildRequires: gobject-introspection-devel | |
14 | BuildRequires: gtk+3-devel >= 3.3.14 | |
15 | BuildRequires: libgee0.6-devel | |
16 | BuildRequires: libstdc++-devel | |
17 | BuildRequires: pkgconfig | |
18 | BuildRequires: sed >= 4.0 | |
19 | BuildRequires: vala | |
20 | BuildRequires: vala-libgee0.6 | |
21 | BuildRequires: which | |
22 | Requires(post,postun): /sbin/ldconfig | |
23 | Requires: gtk-update-icon-cache | |
24 | Requires: hicolor-icon-theme | |
25 | Obsoletes: granite-libs < 0.1.1-3 | |
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 | |
36 | Requires: %{name} = %{version}-%{release} | |
37 | ||
38 | %description devel | |
39 | This package contains the header files for libgranite. | |
40 | ||
41 | %prep | |
42 | %setup -q | |
43 | ||
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 | ||
52 | %build | |
53 | install -d build | |
54 | cd build | |
55 | %cmake \ | |
56 | -DGSETTINGS_COMPILE=OFF \ | |
57 | -DICON_UPDATE=OFF \ | |
58 | .. | |
59 | %{__make} | |
60 | ||
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | %{__make} install -C build \ | |
64 | DESTDIR=$RPM_BUILD_ROOT | |
65 | ||
66 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/rue | |
67 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/sma | |
68 | ||
69 | %find_lang %{name} | |
70 | ||
71 | %clean | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %post | |
75 | /sbin/ldconfig | |
76 | %update_icon_cache hicolor | |
77 | ||
78 | %postun | |
79 | /sbin/ldconfig | |
80 | %update_icon_cache hicolor | |
81 | ||
82 | %files -f %{name}.lang | |
83 | %defattr(644,root,root,755) | |
84 | %doc AUTHORS | |
85 | %attr(755,root,root) %{_bindir}/granite-demo | |
86 | %attr(755,root,root) %{_libdir}/libgranite.so.*.*.* | |
87 | %attr(755,root,root) %ghost %{_libdir}/libgranite.so.0 | |
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 | |
91 | ||
92 | %files devel | |
93 | %defattr(644,root,root,755) | |
94 | %{_includedir}/%{name} | |
95 | %{_pkgconfigdir}/granite.pc | |
96 | %{_libdir}/libgranite.so | |
97 | %{_datadir}/gir-1.0/Granite-0.1.1.gir | |
98 | %{_datadir}/vala/vapi/granite.* |