diff --git a/.cvsignore b/.cvsignore index e69de29..56612a9 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +libpeas-0.5.0.tar.bz2 diff --git a/0001-Install-peas-demo-plugins-in-the-right-location.patch b/0001-Install-peas-demo-plugins-in-the-right-location.patch new file mode 100644 index 0000000..57cc5aa --- /dev/null +++ b/0001-Install-peas-demo-plugins-in-the-right-location.patch @@ -0,0 +1,45 @@ +From 3111185550c82feca0d92b112ef825d07446c011 Mon Sep 17 00:00:00 2001 +From: Bastien Nocera +Date: Mon, 14 Jun 2010 17:13:16 +0100 +Subject: [PATCH] Install peas-demo plugins in the right location + +use $(libdir) and not $(prefix)/lib for the plugins. +--- + peas-demo/plugins/helloworld/Makefile.am | 2 +- + peas-demo/plugins/pythonhello/Makefile.am | 2 +- + peas-demo/plugins/seedhello/Makefile.am | 2 +- + 3 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/peas-demo/plugins/helloworld/Makefile.am b/peas-demo/plugins/helloworld/Makefile.am +index 7f44913..5140f90 100644 +--- a/peas-demo/plugins/helloworld/Makefile.am ++++ b/peas-demo/plugins/helloworld/Makefile.am +@@ -1,4 +1,4 @@ +-plugindir = $(prefix)/lib/peas-demo/plugins/helloworld ++plugindir = $(libdir)/peas-demo/plugins/helloworld + + INCLUDES = \ + -I$(top_srcdir) \ +diff --git a/peas-demo/plugins/pythonhello/Makefile.am b/peas-demo/plugins/pythonhello/Makefile.am +index 244eead..ba08e5e 100644 +--- a/peas-demo/plugins/pythonhello/Makefile.am ++++ b/peas-demo/plugins/pythonhello/Makefile.am +@@ -1,4 +1,4 @@ +-plugindir = $(prefix)/lib/peas-demo/plugins/pythonhello ++plugindir = $(libdir)/peas-demo/plugins/pythonhello + + plugin_PYTHON = \ + pythonhello.py +diff --git a/peas-demo/plugins/seedhello/Makefile.am b/peas-demo/plugins/seedhello/Makefile.am +index 4166558..640b84c 100644 +--- a/peas-demo/plugins/seedhello/Makefile.am ++++ b/peas-demo/plugins/seedhello/Makefile.am +@@ -1,4 +1,4 @@ +-plugindir = $(prefix)/lib/peas-demo/plugins/seedhello ++plugindir = $(libdir)/peas-demo/plugins/seedhello + + plugin_DATA = \ + seedhello.js \ +-- +1.7.0.1 + diff --git a/import.log b/import.log new file mode 100644 index 0000000..ef9793c --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +libpeas-0_5_0-3_fc13:HEAD:libpeas-0.5.0-3.fc13.src.rpm:1277304273 diff --git a/libpeas.spec b/libpeas.spec new file mode 100644 index 0000000..a5c8e1e --- /dev/null +++ b/libpeas.spec @@ -0,0 +1,101 @@ +Name: libpeas +Version: 0.5.0 +Release: 3%{?dist} +Summary: Plug-ins implementation convenience library + +Group: System Environment/Libraries +License: LGPLv2+ +URL: http://ftp.acc.umu.se/pub/GNOME/sources/libpeas/ +Source0: http://ftp.acc.umu.se/pub/GNOME/sources/%{name}/0.5/%{name}-%{version}.tar.bz2 +# https://bugzilla.gnome.org/show_bug.cgi?id=621563 +Patch0: 0001-Install-peas-demo-plugins-in-the-right-location.patch +BuildRequires: autoconf automake libtool intltool gettext-devel gnome-common + +BuildRequires: gtk3-devel +BuildRequires: pygobject2-devel +BuildRequires: python-devel + +# For the girepository-1.0 directory +Requires: gobject-introspection + +%description +libpeas is a convenience library making adding plug-ins support +to GTK+ and glib-based applications. + +%package devel +Summary: Development files for libpeas +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: gtk-doc +Requires: gobject-introspection-devel + +%description devel +This package contains development libraries and header files +that are needed to write applications that use libpeas. + +%prep +%setup -q +%patch0 -p1 -b .libdir +autoreconf -f + +%build +%configure + +# Remove rpath as per https://fedoraproject.org/wiki/Packaging/Guidelines#Beware_of_Rpath +sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool +sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool + +make %{?_smp_mflags} + +%install +make install DESTDIR=$RPM_BUILD_ROOT + +rm $RPM_BUILD_ROOT/%{_libdir}/lib*.la \ + $RPM_BUILD_ROOT/%{_libdir}/libpeas-1.0/loaders/lib*.la + +%find_lang libpeas + +%post -p /sbin/ldconfig +touch --no-create %{_datadir}/icons/hicolor >&/dev/null || : + +%postun +/sbin/ldconfig +if [ $1 -eq 0 ]; then + touch --no-create %{_datadir}/icons/hicolor >&/dev/null || : + gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || : +fi + +%posttrans +gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || : + +%files -f libpeas.lang +%defattr(-,root,root,-) +%doc AUTHORS +%{_libdir}/libpeas*-1.0.so.* +%dir %{_libdir}/libpeas-1.0/ +%dir %{_libdir}/libpeas-1.0/loaders +%{_libdir}/libpeas-1.0/loaders/libcloader.so +%{_libdir}/libpeas-1.0/loaders/libpythonloader.so +%{_libdir}/girepository-1.0/*.typelib +%{_datadir}/icons/hicolor/*/actions/libpeas-plugin.* + +%files devel +%defattr(-,root,root,-) +%{_bindir}/peas-demo +%{_includedir}/libpeas-1.0/ +%{_libdir}/peas-demo/ +%{_datadir}/gtk-doc/html/libpeas/ +%{_libdir}/libpeas*-1.0.so +%{_datadir}/gir-1.0/*.gir +%{_libdir}/pkgconfig/*.pc + +%changelog +* Fri Jun 18 2010 Bastien Nocera 0.5.0-3 +- Fix a number of comments from review request + +* Mon Jun 14 2010 Bastien Nocera 0.5.0-2 +- Call ldconfig when installing the package + +* Mon Jun 14 2010 Bastien Nocera 0.5.0-1 +- First package + diff --git a/sources b/sources index e69de29..900a2d4 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +4e42d9b1b1137081905d4fac0a198c66 libpeas-0.5.0.tar.bz2