]>
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 | |
999da519 | 8 | Version: 0.2.1 |
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 | |
999da519 | 13 | # Source0-md5: be2b05ad28898f760d0ec792df2bba90 |
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 | |
18 | BuildRequires: json-glib-devel | |
19 | BuildRequires: libsoup-devel >= 2.4 | |
20 | BuildRequires: pkgconfig | |
21 | BuildRequires: rest-devel >= 0.7 | |
22 | BuildRequires: tar >= 1:1.22 | |
23 | BuildRequires: xz | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | GObject library for Facebook Graph API. | |
28 | ||
29 | %description -l pl.UTF-8 | |
30 | Biblioteka GObject do API Facebook Graph. | |
31 | ||
32 | %package devel | |
33 | Summary: Header files for GFBGraph library | |
34 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GFBGraph | |
35 | Group: Development/Libraries | |
36 | Requires: %{name} = %{version}-%{release} | |
37 | Requires: glib2-devel >= 2.0 | |
38 | Requires: gnome-online-accounts-devel >= 1.0 | |
39 | Requires: json-glib-devel | |
40 | Requires: libsoup-devel >= 2.4 | |
41 | Requires: rest-devel >= 0.7 | |
42 | ||
43 | %description devel | |
44 | Header files for GFBGraph library. | |
45 | ||
46 | %description devel -l pl.UTF-8 | |
47 | Pliki nagłówkowe biblioteki GFBGraph. | |
48 | ||
49 | %package static | |
50 | Summary: Static GFBGraph library | |
51 | Summary(pl.UTF-8): Statyczna biblioteka GFBGraph | |
52 | Group: Development/Libraries | |
53 | Requires: %{name}-devel = %{version}-%{release} | |
54 | ||
55 | %description static | |
56 | Static GFBGraph library. | |
57 | ||
58 | %description static -l pl.UTF-8 | |
59 | Statyczna biblioteka GFBGraph. | |
60 | ||
61 | %prep | |
62 | %setup -q | |
63 | ||
64 | %build | |
65 | %configure \ | |
66 | %{!?with_static_libs:--disable-static} | |
67 | %{__make} | |
68 | ||
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %{__make} install \ | |
73 | DESTDIR=$RPM_BUILD_ROOT | |
74 | ||
75 | # obsoleted by pkg-config | |
76 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgfbgraph-*.la | |
77 | # packaged as %doc | |
78 | %{__rm} -r $RPM_BUILD_ROOT%{_prefix}/doc | |
79 | ||
80 | %clean | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %post -p /sbin/ldconfig | |
84 | %postun -p /sbin/ldconfig | |
85 | ||
86 | %files | |
87 | %defattr(644,root,root,755) | |
88 | %doc AUTHORS NEWS README | |
89 | %attr(755,root,root) %{_libdir}/libgfbgraph-0.2.so.*.*.* | |
90 | %attr(755,root,root) %ghost %{_libdir}/libgfbgraph-0.2.so.0 | |
91 | %{_libdir}/girepository-1.0/GFBGraph-0.2.typelib | |
92 | ||
93 | %files devel | |
94 | %defattr(644,root,root,755) | |
95 | %attr(755,root,root) %{_libdir}/libgfbgraph-0.2.so | |
96 | %{_includedir}/gfbgraph-0.2 | |
97 | %{_datadir}/gir-1.0/GFBGraph-0.2.gir | |
98 | %{_pkgconfigdir}/libgfbgraph-0.2.pc | |
99 | ||
100 | %if %{with static_libs} | |
101 | %files static | |
102 | %defattr(644,root,root,755) | |
103 | %{_libdir}/libgfbgraph-0.2.a | |
104 | %endif |