]> git.pld-linux.org Git - packages/granite.git/blob - granite.spec
updated BR deps (cleanbuild to rescue)
[packages/granite.git] / granite.spec
1 Summary:        An extension of GTK
2 Name:           granite
3 Version:        0.1.1
4 Release:        1
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-devel
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:  vala
19 BuildRequires:  vala-libgee0.6
20 BuildRequires:  which
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
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
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
82 %{_datadir}/gir-1.0/Granite-0.1.1.gir
This page took 0.086118 seconds and 3 git commands to generate.