[gfbgraph] Initial build

Debarshi Ray rishi at fedoraproject.org
Tue Dec 3 10:03:26 UTC 2013


commit ef6129c2c5ce6b8c0e69a8301fa2a4a5713f7f9a
Author: Debarshi Ray <debarshir at gnome.org>
Date:   Tue Dec 3 11:02:44 2013 +0100

    Initial build

 .gitignore    |    1 +
 gfbgraph.spec |   90 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources       |    1 +
 3 files changed, 92 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..aaeed3e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/gfbgraph-0.2.1.tar.xz
diff --git a/gfbgraph.spec b/gfbgraph.spec
new file mode 100644
index 0000000..89b2113
--- /dev/null
+++ b/gfbgraph.spec
@@ -0,0 +1,90 @@
+%global api 0.2
+
+Name:           gfbgraph
+Version:        %{api}.1
+Release:        2%{?dist}
+Summary:        GLib/GObject wrapper for the Facebook Graph API
+
+License:        LGPLv2+
+URL:            http://wiki.gnome.org/GFBGraph
+Source0:        http://download.gnome.org/sources/%{name}/%{api}/%{name}-%{version}.tar.xz
+
+BuildRequires:  glib2-devel
+BuildRequires:  gnome-online-accounts-devel
+BuildRequires:  gobject-introspection-devel
+BuildRequires:  json-glib-devel
+BuildRequires:  libsoup-devel
+BuildRequires:  pkgconfig
+BuildRequires:  rest-devel
+Requires:       gobject-introspection
+
+%description
+GLib/GObject wrapper for the Facebook Graph API that integrates with GNOME
+Online Accounts.
+
+%package        devel
+Summary:        Development files for %{name}
+Requires:       gobject-introspection-devel
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+
+%description    devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+
+%prep
+%setup -q
+
+
+%build
+%configure \
+  --disable-silent-rules \
+  --disable-static \
+  --enable-introspection
+
+# Omit unused direct shared library dependencies.
+sed --in-place --expression 's! -shared ! -Wl,--as-needed\0!g' libtool
+
+make %{?_smp_mflags}
+
+
+%install
+make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT
+
+find $RPM_BUILD_ROOT -name '*.la' -delete
+rm -rf $RPM_BUILD_ROOT%{_prefix}/doc
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%doc AUTHORS
+%doc COPYING
+%doc NEWS
+%doc README
+%{_libdir}/lib%{name}-%{api}.so.*
+
+%dir %{_libdir}/girepository-1.0
+%{_libdir}/girepository-1.0/GFBGraph-%{api}.typelib
+
+%files devel
+%{_libdir}/lib%{name}-%{api}.so
+%{_libdir}/pkgconfig/libgfbgraph-%{api}.pc
+
+%dir %{_datadir}/gir-1.0
+%{_datadir}/gir-1.0/GFBGraph-%{api}.gir
+
+%dir %{_includedir}/%{name}-%{api}
+%{_includedir}/%{name}-%{api}/%{name}
+
+
+%changelog
+* Thu Nov 28 2013 Debarshi Ray <rishi at fedoraproject.org> - 0.2.1-2
+- Use %%global instead of %%define
+- Define Version in terms of %%{api}
+- Drop redundant Requires: pkgconfig from devel
+
+* Wed Nov 27 2013 Debarshi Ray <rishi at fedoraproject.org> - 0.2.1-1
+- Initial spec.
diff --git a/sources b/sources
index e69de29..5e972ff 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+be2b05ad28898f760d0ec792df2bba90  gfbgraph-0.2.1.tar.xz


More information about the scm-commits mailing list