7c272f
%if 0%{?fedora} || 0%{?rhel} > 7
68e358
%global use_python3 1
68e358
%else
68e358
%global use_python3 0
68e358
%endif
68e358
1d242f
%global apiver 1.0
1d242f
1d242f
Name:           libpeas
7c272f
Version:        1.22.0
1d242f
Release:        1%{?dist}
1d242f
Summary:        Plug-ins implementation convenience library
1d242f
1d242f
License:        LGPLv2+
1d242f
URL:            https://wiki.gnome.org/Projects/Libpeas
7c272f
Source0:        https://download.gnome.org/sources/%{name}/1.22/%{name}-%{version}.tar.xz
1d242f
1d242f
BuildRequires:  chrpath
1d242f
BuildRequires:  gcc
1d242f
BuildRequires:  intltool
1d242f
BuildRequires:  make
1d242f
BuildRequires:  pkgconfig(gio-2.0)
1d242f
BuildRequires:  pkgconfig(gladeui-2.0)
1d242f
BuildRequires:  pkgconfig(glib-2.0)
1d242f
BuildRequires:  pkgconfig(gmodule-2.0)
1d242f
BuildRequires:  pkgconfig(gobject-2.0)
1d242f
BuildRequires:  pkgconfig(gobject-introspection-1.0)
1d242f
BuildRequires:  pkgconfig(gtk+-3.0)
1d242f
BuildRequires:  pkgconfig(pygobject-3.0)
1d242f
BuildRequires:  python2-devel
68e358
%if %{use_python3}
1d242f
BuildRequires:  python3-devel
68e358
%endif
95e96e
1d242f
%description
1d242f
libpeas is a convenience library making adding plug-ins support
1d242f
to glib-based applications.
1d242f
1d242f
%package gtk
1d242f
Summary:        GTK+ plug-ins support for libpeas
1d242f
Requires:       %{name}%{?_isa} = %{version}-%{release}
95e96e
1d242f
%description gtk
1d242f
libpeas-gtk is a convenience library making adding plug-ins support
1d242f
to GTK+-based applications.
f82499
1d242f
%package loader-python
1d242f
Summary:        Python 2 loader for libpeas
1d242f
Requires:       %{name}%{?_isa} = %{version}-%{release}
1d242f
Requires:       python-gobject
68e358
1d242f
%description loader-python
1d242f
This package contains the Python 2 loader that is needed to
1d242f
run Python 2 plugins that use libpeas.
1d242f
1d242f
%if %{use_python3}
1d242f
%package loader-python3
1d242f
Summary:        Python 3 loader for libpeas
1d242f
Requires:       %{name}%{?_isa} = %{version}-%{release}
1d242f
Requires:       python3-gobject
1d242f
1d242f
%description loader-python3
1d242f
This package contains the Python 3 loader that is needed to
1d242f
run Python 3 plugins that use libpeas.
1d242f
%endif
95e96e
95e96e
%package devel
1d242f
Summary:        Development files for libpeas
1d242f
Requires:       %{name}%{?_isa} = %{version}-%{release}
1d242f
Requires:       %{name}-gtk%{?_isa} = %{version}-%{release}
95e96e
95e96e
%description devel
95e96e
This package contains development libraries and header files
95e96e
that are needed to write applications that use libpeas.
95e96e
95e96e
%prep
1d242f
%autosetup
95e96e
95e96e
%build
1d242f
%configure --disable-silent-rules
1d242f
%make_build
95e96e
95e96e
%install
1d242f
%make_install
95e96e
1d242f
find $RPM_BUILD_ROOT%{_libdir} -type f -name '*.la' -print -delete
95e96e
95e96e
# Remove rpath as per https://fedoraproject.org/wiki/Packaging/Guidelines#Beware_of_Rpath
95e96e
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/peas-demo
68e358
%if %{use_python3}
68e358
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libpeas-1.0/loaders/libpython3loader.so
68e358
%endif
68e358
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libpeas-1.0/loaders/libpythonloader.so
95e96e
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libpeas-gtk-1.0.so
68e358
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/peas-demo/plugins/helloworld/libhelloworld.so
68e358
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/peas-demo/plugins/secondtime/libsecondtime.so
95e96e
95e96e
%find_lang libpeas
95e96e
95e96e
%post
95e96e
/sbin/ldconfig
95e96e
touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
95e96e
95e96e
%postun
95e96e
/sbin/ldconfig
95e96e
if [ $1 -eq 0 ]; then
95e96e
  touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
95e96e
  gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
95e96e
fi
95e96e
95e96e
%posttrans
95e96e
gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
95e96e
95e96e
%files -f libpeas.lang
1d242f
%doc AUTHORS NEWS README
1d242f
%license COPYING
1d242f
%{_libdir}/libpeas-%{apiver}.so.*
1d242f
%dir %{_libdir}/libpeas-%{apiver}/
1d242f
%dir %{_libdir}/libpeas-%{apiver}/loaders
1d242f
%dir %{_libdir}/girepository-1.0
1d242f
%{_libdir}/girepository-1.0/Peas-%{apiver}.typelib
1d242f
%{_datadir}/icons/hicolor/*/actions/libpeas-plugin.*
1d242f
1d242f
%files gtk
1d242f
%{_libdir}/libpeas-gtk-%{apiver}.so.*
1d242f
%{_libdir}/girepository-1.0/PeasGtk-%{apiver}.typelib
1d242f
1d242f
%files loader-python
1d242f
%{_libdir}/libpeas-%{apiver}/loaders/libpythonloader.so
1d242f
68e358
%if %{use_python3}
1d242f
%files loader-python3
1d242f
%{_libdir}/libpeas-%{apiver}/loaders/libpython3loader.so
68e358
%endif
95e96e
95e96e
%files devel
95e96e
%{_bindir}/peas-demo
1d242f
%{_includedir}/libpeas-%{apiver}/
95e96e
%{_libdir}/peas-demo/
95e96e
%dir %{_datadir}/gtk-doc/
95e96e
%dir %{_datadir}/gtk-doc/html/
95e96e
%{_datadir}/gtk-doc/html/libpeas/
1d242f
%{_libdir}/libpeas-%{apiver}.so
1d242f
%{_libdir}/libpeas-gtk-%{apiver}.so
1d242f
%dir %{_datadir}/gir-1.0
1d242f
%{_datadir}/gir-1.0/Peas-%{apiver}.gir
1d242f
%{_datadir}/gir-1.0/PeasGtk-%{apiver}.gir
1d242f
%{_libdir}/pkgconfig/libpeas-%{apiver}.pc
1d242f
%{_libdir}/pkgconfig/libpeas-gtk-%{apiver}.pc
95e96e
%{_datadir}/glade/catalogs/libpeas-gtk.xml
95e96e
95e96e
%changelog
7c272f
* Sun Sep 10 2017 Kalev Lember <klember@redhat.com> - 1.22.0-1
7c272f
- Update to 1.22.0
7c272f
- Resolves: #1569732
7c272f
1d242f
* Mon Sep 19 2016 Kalev Lember <klember@redhat.com> - 1.20.0-1
1d242f
- Update to 1.20.0
1d242f
- Resolves: #1387015
1d242f
f82499
* Thu Jun 30 2016 Bastien Nocera <bnocera@redhat.com> - 1.12.1-2
f82499
- Update translations
f82499
Resolves: #1304243
f82499
68e358
* Wed Jun 24 2015 Ray Strode <rstrode@redhat.com>- 1.12.1-1
68e358
- Update to 1.12.1
68e358
67cfc2
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.8.0-5
67cfc2
- Mass rebuild 2014-01-24
67cfc2
67cfc2
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.8.0-4
67cfc2
- Mass rebuild 2013-12-27
67cfc2
95e96e
* Tue Oct  8 2013 Matthias Clasen <mclasen@redhat.com> - 1.8.0-3
95e96e
- Actually apply the patch (related: #884531)
95e96e
95e96e
* Mon Jun 17 2013 Bastien Nocera <bnocera@redhat.com> 1.8.0-2
95e96e
- Fix possible crasher (#917731)
95e96e
95e96e
* Tue Mar 26 2013 Ignacio Casal Quinteiro <icq@gnome.org> - 1.8.0-1
95e96e
- Update to 1.8.0
95e96e
95e96e
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.0-2
95e96e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
95e96e
95e96e
* Sun Jan 06 2013 Ignacio Casal Quinteiro <icq@gnome.org> - 1.7.0-1
95e96e
- Update to 1.7.0
95e96e
95e96e
* Wed Nov 28 2012 Kalev Lember <kalevlember@gmail.com> - 1.6.2-1
95e96e
- Update to 1.6.2
95e96e
- Avoid runtime deps on gtk-doc (#754495)
95e96e
95e96e
* Mon Nov 19 2012 Bastien Nocera <bnocera@redhat.com> 1.6.1-2
95e96e
- Fix source URL
95e96e
95e96e
* Tue Oct 16 2012 Ignacio Casal Quinteiro <icq@gnome.org> - 1.6.1-1
95e96e
- Update to 1.6.1
95e96e
95e96e
* Tue Sep 25 2012 Ignacio Casal Quinteiro <icq@gnome.org> - 1.6.0-1
95e96e
- Update to 1.6.0
95e96e
95e96e
* Wed Sep 19 2012 Bastien Nocera <bnocera@redhat.com> 1.5.0-1
95e96e
- Disable vala, as it was disabled upstream:
95e96e
http://git.gnome.org/browse/libpeas/commit/?id=1031aaeeef282ab2bb65cb6ae48fa4abff453c4d
95e96e
95e96e
* Wed Jul 18 2012 Ignacio Casal Quinteiro <icq@gnome.org> - 1.5.0-1
95e96e
- Update to 1.5.0
95e96e
95e96e
* Thu May 03 2012 Kalev Lember <kalevlember@gmail.com> - 1.4.0-2
95e96e
- Re-enable the GJS loader
95e96e
- Remove unwanted lib64 rpaths
95e96e
95e96e
* Wed Mar 28 2012 Ignacio Casal Quinteiro <icq@gnome.org> - 1.4.0-1
95e96e
- Update to 1.4.0
95e96e
95e96e
* Fri Mar  2 2012 Matthias Clasen <mclasen@redhat.com> - 1.3.0-2
95e96e
- Make seed optional for RHEL
95e96e
95e96e
* Sat Feb 25 2012 Ignacio Casal Quinteiro <icq@gnome.org> - 1.3.0-1
95e96e
- Update to 1.3.0
95e96e
95e96e
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-2
95e96e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
95e96e
95e96e
* Wed Sep 28 2011 Ray <rstrode@redhat.com> - 1.2.0-1
95e96e
- Update to 1.2.0
95e96e
95e96e
* Wed Sep 28 2011 Ray <rstrode@redhat.com> - 1.2.0-1
95e96e
- Update to 1.2.0
95e96e
95e96e
* Wed Sep 28 2011 Ray <rstrode@redhat.com> - 1.2.0-1
95e96e
- Update to 1.2.0
95e96e
95e96e
* Tue Sep 27 2011 Ray <rstrode@redhat.com> - 1.2.0-1
95e96e
- Update to 1.2.0
95e96e
95e96e
* Tue Sep 27 2011 Ray <rstrode@redhat.com> - 1.2.0-1
95e96e
- Update to 1.2.0
95e96e
95e96e
* Tue Sep 27 2011 Ray <rstrode@redhat.com> - 1.2.0-1
95e96e
- Update to 1.2.0
95e96e
95e96e
* Wed Aug 31 2011 Ignacio Casal Quinteiro <icq@gnome.org> - 1.1.3-1
95e96e
- Update to 1.1.3
95e96e
95e96e
* Wed Aug 31 2011 Ignacio Casal Quinteiro <icq@gnome.org> - 1.1.2-2
95e96e
- Rebuild for latest pygobject3
95e96e
95e96e
* Tue Aug 23 2011 Adam Williamson <awilliam@redhat.com> - 1.1.2-1
95e96e
- Update to 1.1.2
95e96e
- bump BR to pygobject3-devel
95e96e
95e96e
* Wed Aug 03 2011 Bastien Nocera <bnocera@redhat.com> 1.1.1-3
95e96e
- Another attempt at building against the latest gjs
95e96e
95e96e
* Wed Aug 03 2011 Bastien Nocera <bnocera@redhat.com> 1.1.1-2
95e96e
- Rebuild for newer gjs
95e96e
95e96e
* Tue Jul 26 2011 Matthias Clasen <mclasen@redhat.com> - 1.1.1-1
95e96e
- Update to 1.1.1
95e96e
95e96e
* Tue Jun 14 2011 Tomas Bzatek <tbzatek@redhat.com> - 1.1.0-1
95e96e
- Update to 1.1.0
95e96e
95e96e
* Mon Apr  4 2011 Christopher Aillon <caillon@redhat.com> 1.0.0-1
95e96e
- Update to 1.0.0
95e96e
95e96e
* Sun Mar 27 2011 Bastien Nocera <bnocera@redhat.com> 0.9.0-1
95e96e
- Update to 0.9.0
95e96e
95e96e
* Thu Mar 10 2011 Bastien Nocera <bnocera@redhat.com> 0.7.4-1
95e96e
- Update to 0.7.4
95e96e
95e96e
* Tue Feb 22 2011 Matthias Clasen <mclasen@redhat.com> 0.7.3-1
95e96e
- Update to 0.7.3
95e96e
- Drop unneeded dependencies
95e96e
95e96e
* Mon Feb 21 2011 Bastien Nocera <bnocera@redhat.com> 0.7.2-1
95e96e
- Update to 0.7.2
95e96e
95e96e
* Thu Feb 10 2011 Matthias Clasen <mclasen@redhat.com> 0.7.1-7
95e96e
- Rebuild
95e96e
95e96e
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-6
95e96e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
95e96e
95e96e
* Wed Feb  2 2011 Matthias Clasen <mclasen@redhat.com> 0.7.1-5
95e96e
- Rebuild against newer gtk
95e96e
95e96e
* Fri Jan 28 2011 Bastien Nocera <bnocera@redhat.com> 0.7.1-4
95e96e
- Update to real 0.7.1 release
95e96e
95e96e
* Fri Jan  7 2011 Matthias Clasen <mclasen@redhat.com> - 0.7.1-3.gita2f98e
95e96e
- Rebuild against newer gtk
95e96e
95e96e
* Fri Dec  3 2010 Matthias Clasen <mclasen@redhat.com> - 0.7.1-2.gita2f98e
95e96e
- Rebuild against newer gtk
95e96e
95e96e
* Thu Nov 11 2010 Dan Williams <dcbw@redhat.com> - 0.7.1-1.gita2f98e
95e96e
- Update to 0.7.1
95e96e
- Fix some crashes with missing introspection data
95e96e
95e96e
* Mon Nov  1 2010 Matthias Clasen <mclasen@redhat.com> 0.7.0-2
95e96e
- Rebuild against newer gtk3
95e96e
95e96e
* Mon Oct 04 2010 Bastien Nocera <bnocera@redhat.com> 0.7.0-1
95e96e
- Update to 0.7.0
95e96e
95e96e
* Tue Sep 21 2010 Matthias Clasen <mclasen@redhat.com> - 0.5.5-2
95e96e
- Rebuild against newer gobject-introspection
95e96e
95e96e
* Thu Aug 19 2010 Matthias Clasen <mclasen@redhat.com> - 0.5.5-1
95e96e
- Update to 0.5.5
95e96e
95e96e
* Thu Aug  5 2010 Matthias Clasen <mclasen@redhat.com> - 0.5.4-1
95e96e
- Update to 0.5.4
95e96e
95e96e
* Tue Jul 27 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> 0.5.3-2
95e96e
- Rebuild against python 2.7
95e96e
95e96e
* Fri Jul 23 2010 Bastien Nocera <bnocera@redhat.com> 0.5.3-1
95e96e
- Update to 0.5.3
95e96e
95e96e
* Thu Jul 22 2010 Bastien Nocera <bnocera@redhat.com> 0.5.2-5
95e96e
- Fix post scriplet (#615021)
95e96e
95e96e
* Thu Jul 15 2010 Colin Walters <walters@verbum.org> - 0.5.2-4
95e96e
- Rebuild with new gobject-introspection
95e96e
95e96e
* Tue Jul 13 2010 Matthias Clasen <mclasen@redhat.com> 0.5.2-3
95e96e
- Rebuild
95e96e
95e96e
* Mon Jul 12 2010 Colin Walters <walters@verbum.org> - 0.5.2-2
95e96e
- Rebuild against new gobject-introspection
95e96e
95e96e
* Mon Jul 12 2010 Matthias Clasen <mclasen@redhat.com> 0.5.2-1
95e96e
- Update to 0.5.2
95e96e
95e96e
* Thu Jul  8 2010 Matthias Clasen <mclasen@redhat.com> 0.5.1-2
95e96e
- Rebuild
95e96e
95e96e
* Mon Jun 28 2010 Bastien Nocera <bnocera@redhat.com> 0.5.1-1
95e96e
- Update to 0.5.1
95e96e
95e96e
* Thu Jun 24 2010 Bastien Nocera <bnocera@redhat.com> 0.5.0-4
95e96e
- Document rpath work-arounds disabling, and remove verbose build
95e96e
95e96e
* Fri Jun 18 2010 Bastien Nocera <bnocera@redhat.com> 0.5.0-3
95e96e
- Fix a number of comments from review request
95e96e
95e96e
* Mon Jun 14 2010 Bastien Nocera <bnocera@redhat.com> 0.5.0-2
95e96e
- Call ldconfig when installing the package
95e96e
95e96e
* Mon Jun 14 2010 Bastien Nocera <bnocera@redhat.com> 0.5.0-1
95e96e
- First package
95e96e