]>
Commit | Line | Data |
---|---|---|
94e85f81 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static libraries | |
4 | # | |
5 | Summary: GObject library for Facebook Graph API | |
6 | Summary(pl.UTF-8): Biblioteka GObject do API Facebook Graph | |
7 | Name: gfbgraph | |
9b1a7c96 | 8 | Version: 0.2.2 |
94e85f81 JB |
9 | Release: 1 |
10 | License: LGPL v2.1+ | |
11 | Group: Libraries | |
12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gfbgraph/0.2/%{name}-%{version}.tar.xz | |
9b1a7c96 | 13 | # Source0-md5: af796932cec99e6da8e21174caf28ee3 |
94e85f81 JB |
14 | URL: https://github.com/alvaropg/gfbgraph |
15 | BuildRequires: glib2-devel >= 2.0 | |
16 | BuildRequires: gnome-online-accounts-devel >= 1.0 | |
17 | BuildRequires: gobject-introspection-devel >= 1.30.0 | |
9b1a7c96 | 18 | BuildRequires: gtk-doc >= 1.14 |
94e85f81 JB |
19 | BuildRequires: json-glib-devel |
20 | BuildRequires: libsoup-devel >= 2.4 | |
21 | BuildRequires: pkgconfig | |
22 | BuildRequires: rest-devel >= 0.7 | |
23 | BuildRequires: tar >= 1:1.22 | |
24 | BuildRequires: xz | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | GObject library for Facebook Graph API. | |
29 | ||
30 | %description -l pl.UTF-8 | |
31 | Biblioteka GObject do API Facebook Graph. | |
32 | ||
33 | %package devel | |
34 | Summary: Header files for GFBGraph library | |
35 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GFBGraph | |
36 | Group: Development/Libraries | |
37 | Requires: %{name} = %{version}-%{release} | |
38 | Requires: glib2-devel >= 2.0 | |
39 | Requires: gnome-online-accounts-devel >= 1.0 | |
40 | Requires: json-glib-devel | |
41 | Requires: libsoup-devel >= 2.4 | |
42 | Requires: rest-devel >= 0.7 | |
43 | ||
44 | %description devel | |
45 | Header files for GFBGraph library. | |
46 | ||
47 | %description devel -l pl.UTF-8 | |
48 | Pliki nagłówkowe biblioteki GFBGraph. | |
49 | ||
50 | %package static | |
51 | Summary: Static GFBGraph library | |
52 | Summary(pl.UTF-8): Statyczna biblioteka GFBGraph | |
53 | Group: Development/Libraries | |
54 | Requires: %{name}-devel = %{version}-%{release} | |
55 | ||
56 | %description static | |
57 | Static GFBGraph library. | |
58 | ||
59 | %description static -l pl.UTF-8 | |
60 | Statyczna biblioteka GFBGraph. | |
61 | ||
9b1a7c96 JB |
62 | %package apidocs |
63 | Summary: API documentation for GFBGraph library | |
64 | Summary(pl.UTF-8): Dokumentacja API biblioteki GFBGraph | |
65 | Group: Documentation | |
66 | ||
67 | %description apidocs | |
68 | API documentation for GFBGraph library. | |
69 | ||
70 | %description apidocs -l pl.UTF-8 | |
71 | Dokumentacja API biblioteki GFBGraph. | |
72 | ||
94e85f81 JB |
73 | %prep |
74 | %setup -q | |
75 | ||
76 | %build | |
77 | %configure \ | |
9b1a7c96 JB |
78 | %{!?with_static_libs:--disable-static} \ |
79 | --with-html-dir=%{_gtkdocdir} | |
94e85f81 JB |
80 | %{__make} |
81 | ||
82 | %install | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %{__make} install \ | |
86 | DESTDIR=$RPM_BUILD_ROOT | |
87 | ||
88 | # obsoleted by pkg-config | |
89 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgfbgraph-*.la | |
90 | # packaged as %doc | |
91 | %{__rm} -r $RPM_BUILD_ROOT%{_prefix}/doc | |
92 | ||
93 | %clean | |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
96 | %post -p /sbin/ldconfig | |
97 | %postun -p /sbin/ldconfig | |
98 | ||
99 | %files | |
100 | %defattr(644,root,root,755) | |
101 | %doc AUTHORS NEWS README | |
102 | %attr(755,root,root) %{_libdir}/libgfbgraph-0.2.so.*.*.* | |
103 | %attr(755,root,root) %ghost %{_libdir}/libgfbgraph-0.2.so.0 | |
104 | %{_libdir}/girepository-1.0/GFBGraph-0.2.typelib | |
105 | ||
106 | %files devel | |
107 | %defattr(644,root,root,755) | |
108 | %attr(755,root,root) %{_libdir}/libgfbgraph-0.2.so | |
109 | %{_includedir}/gfbgraph-0.2 | |
110 | %{_datadir}/gir-1.0/GFBGraph-0.2.gir | |
111 | %{_pkgconfigdir}/libgfbgraph-0.2.pc | |
112 | ||
113 | %if %{with static_libs} | |
114 | %files static | |
115 | %defattr(644,root,root,755) | |
116 | %{_libdir}/libgfbgraph-0.2.a | |
117 | %endif | |
9b1a7c96 JB |
118 | |
119 | %files apidocs | |
120 | %defattr(644,root,root,755) | |
121 | %{_gtkdocdir}/gfbgraph |