]> git.pld-linux.org Git - packages/gfbgraph.git/blob - gfbgraph.spec
- updated to 0.2.5 (fixes CVE-2021-39358)
[packages/gfbgraph.git] / gfbgraph.spec
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
8 Version:        0.2.3
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
13 # Source0-md5:  81f216f637b40dc9b3a7298651305763
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:  gtk-doc >= 1.14
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
62 %package apidocs
63 Summary:        API documentation for GFBGraph library
64 Summary(pl.UTF-8):      Dokumentacja API biblioteki GFBGraph
65 Group:          Documentation
66 %if "%{_rpmversion}" >= "5"
67 BuildArch:      noarch
68 %endif
69
70 %description apidocs
71 API documentation for GFBGraph library.
72
73 %description apidocs -l pl.UTF-8
74 Dokumentacja API biblioteki GFBGraph.
75
76 %prep
77 %setup -q
78
79 %build
80 %configure \
81         %{!?with_static_libs:--disable-static} \
82         --with-html-dir=%{_gtkdocdir}
83 %{__make}
84
85 %install
86 rm -rf $RPM_BUILD_ROOT
87
88 %{__make} install \
89         DESTDIR=$RPM_BUILD_ROOT
90
91 # obsoleted by pkg-config
92 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgfbgraph-*.la
93 # packaged as %doc
94 %{__rm} -r $RPM_BUILD_ROOT%{_prefix}/doc
95
96 %clean
97 rm -rf $RPM_BUILD_ROOT
98
99 %post   -p /sbin/ldconfig
100 %postun -p /sbin/ldconfig
101
102 %files
103 %defattr(644,root,root,755)
104 %doc AUTHORS NEWS README
105 %attr(755,root,root) %{_libdir}/libgfbgraph-0.2.so.*.*.*
106 %attr(755,root,root) %ghost %{_libdir}/libgfbgraph-0.2.so.0
107 %{_libdir}/girepository-1.0/GFBGraph-0.2.typelib
108
109 %files devel
110 %defattr(644,root,root,755)
111 %attr(755,root,root) %{_libdir}/libgfbgraph-0.2.so
112 %{_includedir}/gfbgraph-0.2
113 %{_datadir}/gir-1.0/GFBGraph-0.2.gir
114 %{_pkgconfigdir}/libgfbgraph-0.2.pc
115
116 %if %{with static_libs}
117 %files static
118 %defattr(644,root,root,755)
119 %{_libdir}/libgfbgraph-0.2.a
120 %endif
121
122 %files apidocs
123 %defattr(644,root,root,755)
124 %{_gtkdocdir}/gfbgraph-0.2
This page took 0.080179 seconds and 3 git commands to generate.