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