From a65072b53a1ffd063d2ec09c4e2d949ffa58809b Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Tue, 9 Jul 2013 15:12:25 +0200 Subject: [PATCH] enable introspection Introspection is required when using libgee with the vala compiler. Apparently all code using libgee so far was the C code produced in advance by the vala compiler. --- packaging/libgee.changes | 3 ++ packaging/libgee.spec | 109 ++++++++++++++++++++++------------------------- 2 files changed, 54 insertions(+), 58 deletions(-) diff --git a/packaging/libgee.changes b/packaging/libgee.changes index f5247ba..3b8966d 100644 --- a/packaging/libgee.changes +++ b/packaging/libgee.changes @@ -1,3 +1,6 @@ +* Tue Jul 09 2013 Patrick Ohly +- enable introspection + * Tue Jun 11 2013 Regis Merlino - Update libgee to 0.10.0 (b7aeceb) diff --git a/packaging/libgee.spec b/packaging/libgee.spec index dd611ac..79b5e4a 100644 --- a/packaging/libgee.spec +++ b/packaging/libgee.spec @@ -1,92 +1,85 @@ -# -# Do NOT Edit the Auto-generated Part! -# Generated by: spectacle version 0.22 -# -# >> macros -# << macros - -Name: libgee -Summary: GObject collection library -Version: 0.10.0 -Release: 1 -Group: System/Libraries -License: LGPLv2+ -URL: http://live.gnome.org/Libgee -Source0: http://download.gnome.org/sources/%{name}/0.9/%{name}-%{version}.tar.bz2 +%define baseline 0.10 +%define apiversion 0.8 + +Name: libgee +Version: 0.10.0 +Release: 0 +Summary: GObject-based library providing commonly used data structures +License: LGPL-2.1+ +Group: System/Libraries +Url: http://live.gnome.org/Libgee +Source: http://download.gnome.org/sources/libgee/%{baseline}/%{name}-%{version}.tar.xz + +BuildRequires: gnome-common +BuildRequires: vala >= 0.17.5 +BuildRequires: pkgconfig(glib-2.0) >= 2.32 +BuildRequires: pkgconfig(gobject-introspection-1.0) + Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig -BuildRequires: pkgconfig(glib-2.0) -BuildRequires: pkgconfig(gobject-2.0) - %description -libgee is a collection library providing GObject-based interfaces and +Libgee is a collection library providing GObject-based interfaces and classes for commonly used data structures. +%package -n typelib-Gee +Summary: GObject-based library providing common data structures -- Introspection binding +Group: System/Libraries -%package devel -Summary: Development files for %{name} -Group: Development/Libraries -Requires: %{name} = %{version}-%{release} -Requires: pkgconfig +%description -n typelib-Gee +Libgee is a collection library providing GObject-based interfaces and +classes for commonly used data structures. + +This package provides the GObject Introspection bindings for libgee. -%description devel -The %{name}-devel package contains libraries and header files for -developing applications that use %{name}. +%package devel +Summary: GObject-based library providing useful data structures - Development Files +Group: Development/Libraries +Requires: %{name} = %{version} +Requires: typelib-Gee = %{version} +%description -n libgee-devel +Libgee is a collection library providing GObject-based interfaces and +classes for commonly used data structures. %prep -%setup -q -n %{name}-%{version} +%setup -q -# >> setup -# << setup %build -# >> build pre -# << build pre %configure --disable-static + make %{?jobs:-j%jobs} -# >> build post -# << build post %install -rm -rf %{buildroot} -# >> install pre -# << install pre %make_install -# >> install post -find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' - - -# << install post - - - %post -p /sbin/ldconfig %postun -p /sbin/ldconfig - - - %files -%defattr(-,root,root,-) -# >> files -%doc COPYING +%defattr(-, root, root) +%license COPYING %{_libdir}/*.so.* -# << files + + +%files -n typelib-Gee +%defattr(-,root,root) +%{_libdir}/girepository-1.0/Gee-%{apiversion}.typelib %files devel -%defattr(-,root,root,-) -# >> files devel -%{_includedir}/* +%defattr(-, root, root) +%{_includedir}/gee-%{apiversion}/ %{_libdir}/*.so -%{_libdir}/pkgconfig/gee-0.8.pc -%{_datadir}/vala/vapi/gee-0.8.vapi -# << files devel +%{_libdir}/pkgconfig/*.pc +%{_datadir}/gir-1.0/*.gir +%dir %{_datadir}/vala +%dir %{_datadir}/vala/vapi +%{_datadir}/vala/vapi/*.vapi + -- 2.7.4