Blame SPECS/libpeas.spec

99cb08
%if 0%{?fedora} || 0%{?rhel} > 7
99cb08
%global use_python3 1
99cb08
%else
99cb08
%global use_python3 0
99cb08
%endif
99cb08
99cb08
%global apiver 1.0
99cb08
99cb08
Name:           libpeas
99cb08
Version:        1.22.0
99cb08
Release:        6%{?dist}
99cb08
Summary:        Plug-ins implementation convenience library
99cb08
99cb08
License:        LGPLv2+
99cb08
URL:            https://wiki.gnome.org/Projects/Libpeas
99cb08
Source0:        https://download.gnome.org/sources/%{name}/1.22/%{name}-%{version}.tar.xz
99cb08
99cb08
BuildRequires:  chrpath
99cb08
BuildRequires:  gcc
99cb08
BuildRequires:  intltool
99cb08
BuildRequires:  make
99cb08
BuildRequires:  pkgconfig(gio-2.0)
99cb08
BuildRequires:  pkgconfig(gladeui-2.0)
99cb08
BuildRequires:  pkgconfig(glib-2.0)
99cb08
BuildRequires:  pkgconfig(gmodule-2.0)
99cb08
BuildRequires:  pkgconfig(gobject-2.0)
99cb08
BuildRequires:  pkgconfig(gobject-introspection-1.0)
99cb08
BuildRequires:  pkgconfig(gtk+-3.0)
99cb08
BuildRequires:  pkgconfig(pygobject-3.0)
99cb08
%if %{use_python3}
99cb08
BuildRequires:  python3-devel
99cb08
%endif
99cb08
99cb08
%description
99cb08
libpeas is a convenience library making adding plug-ins support
99cb08
to glib-based applications.
99cb08
99cb08
%package gtk
99cb08
Summary:        GTK+ plug-ins support for libpeas
99cb08
Requires:       %{name}%{?_isa} = %{version}-%{release}
99cb08
99cb08
%description gtk
99cb08
libpeas-gtk is a convenience library making adding plug-ins support
99cb08
to GTK+-based applications.
99cb08
99cb08
%if %{use_python3}
99cb08
%package loader-python3
99cb08
Summary:        Python 3 loader for libpeas
99cb08
Requires:       %{name}%{?_isa} = %{version}-%{release}
99cb08
Requires:       python3-gobject
99cb08
99cb08
Obsoletes: libpeas-loader-python < %{version}-%{release}
99cb08
Provides: libpeas-loader-python = %{version}-%{release}
99cb08
99cb08
%description loader-python3
99cb08
This package contains the Python 3 loader that is needed to
99cb08
run Python 3 plugins that use libpeas.
99cb08
%endif
99cb08
99cb08
%package devel
99cb08
Summary:        Development files for libpeas
99cb08
Requires:       %{name}%{?_isa} = %{version}-%{release}
99cb08
Requires:       %{name}-gtk%{?_isa} = %{version}-%{release}
99cb08
99cb08
%description devel
99cb08
This package contains development libraries and header files
99cb08
that are needed to write applications that use libpeas.
99cb08
99cb08
%prep
99cb08
%autosetup
99cb08
99cb08
%build
99cb08
%configure --disable-silent-rules
99cb08
%make_build
99cb08
99cb08
%install
99cb08
%make_install
99cb08
99cb08
find $RPM_BUILD_ROOT%{_libdir} -type f -name '*.la' -print -delete
99cb08
99cb08
# Remove rpath as per https://fedoraproject.org/wiki/Packaging/Guidelines#Beware_of_Rpath
99cb08
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/peas-demo
99cb08
%if %{use_python3}
99cb08
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libpeas-1.0/loaders/libpython3loader.so
99cb08
%endif
99cb08
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libpeas-gtk-1.0.so
99cb08
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/peas-demo/plugins/helloworld/libhelloworld.so
99cb08
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/peas-demo/plugins/secondtime/libsecondtime.so
99cb08
99cb08
%find_lang libpeas
99cb08
99cb08
%ldconfig_scriptlets
99cb08
99cb08
%files -f libpeas.lang
99cb08
%doc AUTHORS NEWS README
99cb08
%license COPYING
99cb08
%{_libdir}/libpeas-%{apiver}.so.*
99cb08
%dir %{_libdir}/libpeas-%{apiver}/
99cb08
%dir %{_libdir}/libpeas-%{apiver}/loaders
99cb08
%dir %{_libdir}/girepository-1.0
99cb08
%{_libdir}/girepository-1.0/Peas-%{apiver}.typelib
99cb08
%{_datadir}/icons/hicolor/*/actions/libpeas-plugin.*
99cb08
99cb08
%files gtk
99cb08
%{_libdir}/libpeas-gtk-%{apiver}.so.*
99cb08
%{_libdir}/girepository-1.0/PeasGtk-%{apiver}.typelib
99cb08
99cb08
%if %{use_python3}
99cb08
%files loader-python3
99cb08
%{_libdir}/libpeas-%{apiver}/loaders/libpython3loader.so
99cb08
%endif
99cb08
99cb08
%files devel
99cb08
%{_bindir}/peas-demo
99cb08
%{_includedir}/libpeas-%{apiver}/
99cb08
%{_libdir}/peas-demo/
99cb08
%dir %{_datadir}/gtk-doc/
99cb08
%dir %{_datadir}/gtk-doc/html/
99cb08
%{_datadir}/gtk-doc/html/libpeas/
99cb08
%{_libdir}/libpeas-%{apiver}.so
99cb08
%{_libdir}/libpeas-gtk-%{apiver}.so
99cb08
%dir %{_datadir}/gir-1.0
99cb08
%{_datadir}/gir-1.0/Peas-%{apiver}.gir
99cb08
%{_datadir}/gir-1.0/PeasGtk-%{apiver}.gir
99cb08
%{_libdir}/pkgconfig/libpeas-%{apiver}.pc
99cb08
%{_libdir}/pkgconfig/libpeas-gtk-%{apiver}.pc
99cb08
%{_datadir}/glade/catalogs/libpeas-gtk.xml
99cb08
99cb08
%changelog
99cb08
* Wed Jun 06 2018 Bastien Nocera <bnocera@redhat.com> - 1.22.0-6
99cb08
+ libpeas-1.22.0-6
99cb08
- Remove python2 loader, all GNOME apps using libpeas were ported to Python3
99cb08
  when ported to GTK+ 3.x, and obsolete libpeas-loader-python
99cb08
- Resolves: #1559090
99cb08
99cb08
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.22.0-5
99cb08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
99cb08
99cb08
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.22.0-4
99cb08
- Switch to %%ldconfig_scriptlets
99cb08
99cb08
* Fri Jan 05 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.22.0-3
99cb08
- Remove obsolete scriptlets
99cb08
99cb08
* Thu Nov 30 2017 Merlin Mathesius <mmathesi@redhat.com> - 1.22.0-2
99cb08
- Cleanup spec file conditionals
99cb08
99cb08
* Sun Sep 10 2017 Kalev Lember <klember@redhat.com> - 1.22.0-1
99cb08
- Update to 1.22.0
99cb08
99cb08
* Tue Aug 15 2017 Kalev Lember <klember@redhat.com> - 1.21.0-1
99cb08
- Update to 1.21.0
99cb08
99cb08
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.21.0-0.3.gitbcc8644
99cb08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
99cb08
99cb08
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.21.0-0.2.gitbcc8644
99cb08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
99cb08
99cb08
* Tue Jul 18 2017 Kalev Lember <klember@redhat.com> - 1.21.0-0.1.gitbcc8644
99cb08
- Update to 1.21.0 git snapshot
99cb08
99cb08
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.20.0-5
99cb08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
99cb08
99cb08
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.20.0-4
99cb08
- Rebuild for Python 3.6
99cb08
99cb08
* Thu Nov 24 2016 Kalev Lember <klember@redhat.com> - 1.20.0-3
99cb08
- Remove lib64 rpaths
99cb08
- Update RHEL conditionals
99cb08
- Fix directory ownership
99cb08
99cb08
* Tue Nov 08 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 1.20.0-2
99cb08
- Trivial fixes in spec
99cb08
- disable silent building
99cb08
- use %%autosetup
99cb08
- split out GTK+ support to the subpackage
99cb08
- use %%make_build
99cb08
- remove all libtool files in libdir
99cb08
- drop unneeded chrpath calls
99cb08
99cb08
* Mon Sep 19 2016 Kalev Lember <klember@redhat.com> - 1.20.0-1
99cb08
- Update to 1.20.0
99cb08
- Don't set group tags
99cb08
99cb08
* Sun Mar 20 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 1.18.0-1
99cb08
- Update to 1.18.0
99cb08
99cb08
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.17.0-2
99cb08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
99cb08
99cb08
* Mon Jan 25 2016 Kalev Lember <klember@redhat.com> - 1.17.0-1
99cb08
- Update to 1.17.0
99cb08
99cb08
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.16.0-2
99cb08
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
99cb08
99cb08
* Tue Sep 22 2015 Kalev Lember <klember@redhat.com> - 1.16.0-1
99cb08
- Update to 1.16.0
99cb08
- Use make_install macro
99cb08
99cb08
* Fri Jul 03 2015 David King <amigadave@amigadave.com> - 1.15.0-3
99cb08
- Split out Python 2 and 3 loaders into subpackages (#1226879)
99cb08
99cb08
* Fri Jun 26 2015 David King <amigadave@amigadave.com> - 1.15.0-2
99cb08
- Add Requires for Python plugin support (#750925)
99cb08
99cb08
* Thu Jun 25 2015 David King <amigadave@amigadave.com> - 1.15.0-1
99cb08
- Update to 1.15.0 (#1235615)
99cb08
- Update URL
99cb08
- Use license macro for COPYING
99cb08
- Use pkgconfig for BuildRequires
99cb08
- Add README and NEWS to doc
99cb08
99cb08
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.14.0-2
99cb08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
99cb08
99cb08
* Tue Mar 24 2015 Kalev Lember <kalevlember@gmail.com> - 1.14.0-1
99cb08
- Update to 1.14.0
99cb08
99cb08
* Mon Feb 16 2015 Richard Hughes <rhughes@redhat.com> - 1.13.0-1
99cb08
- Update to 1.13.0
99cb08
99cb08
* Mon Sep 22 2014 Kalev Lember <kalevlember@gmail.com> - 1.12.1-1
99cb08
- Update to 1.12.1
99cb08
- Tighten deps with the _isa macro
99cb08
99cb08
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.1-2
99cb08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
99cb08
99cb08
* Fri Aug 01 2014 Kalev Lember <kalevlember@gmail.com> - 1.10.1-1
99cb08
- Update to 1.10.1
99cb08
99cb08
* Tue Jul 22 2014 Kalev Lember <kalevlember@gmail.com> - 1.10.0-4
99cb08
- Rebuilt for gobject-introspection 1.41.4
99cb08
99cb08
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.0-3
99cb08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
99cb08
99cb08
* Thu May 22 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 1.10.0-2
99cb08
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
99cb08
99cb08
* Mon Mar 31 2014 Richard Hughes <rhughes@redhat.com> - 1.10.0-1
99cb08
- Update to 1.10.0
99cb08
99cb08
* Wed Feb 05 2014 Adam Williamson <awilliam@redhat.com> - 1.9.0-3
99cb08
- drop gjs plugin support (backported from upstream; no-one wants it)
99cb08
99cb08
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.0-2
99cb08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
99cb08
99cb08
* Thu Jun 20 2013 Kalev Lember <kalevlember@gmail.com> - 1.9.0-1
99cb08
- Update to 1.9.0
99cb08
99cb08
* Tue Mar 26 2013 Ignacio Casal Quinteiro <icq@gnome.org> - 1.8.0-1
99cb08
- Update to 1.8.0
99cb08
99cb08
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.0-2
99cb08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
99cb08
99cb08
* Sun Jan 06 2013 Ignacio Casal Quinteiro <icq@gnome.org> - 1.7.0-1
99cb08
- Update to 1.7.0
99cb08
99cb08
* Wed Nov 28 2012 Kalev Lember <kalevlember@gmail.com> - 1.6.2-1
99cb08
- Update to 1.6.2
99cb08
- Avoid runtime deps on gtk-doc (#754495)
99cb08
99cb08
* Mon Nov 19 2012 Bastien Nocera <bnocera@redhat.com> 1.6.1-2
99cb08
- Fix source URL
99cb08
99cb08
* Tue Oct 16 2012 Ignacio Casal Quinteiro <icq@gnome.org> - 1.6.1-1
99cb08
- Update to 1.6.1
99cb08
99cb08
* Tue Sep 25 2012 Ignacio Casal Quinteiro <icq@gnome.org> - 1.6.0-1
99cb08
- Update to 1.6.0
99cb08
99cb08
* Wed Sep 19 2012 Bastien Nocera <bnocera@redhat.com> 1.5.0-1
99cb08
- Disable vala, as it was disabled upstream:
99cb08
http://git.gnome.org/browse/libpeas/commit/?id=1031aaeeef282ab2bb65cb6ae48fa4abff453c4d
99cb08
99cb08
* Wed Jul 18 2012 Ignacio Casal Quinteiro <icq@gnome.org> - 1.5.0-1
99cb08
- Update to 1.5.0
99cb08
99cb08
* Thu May 03 2012 Kalev Lember <kalevlember@gmail.com> - 1.4.0-2
99cb08
- Re-enable the GJS loader
99cb08
- Remove unwanted lib64 rpaths
99cb08
99cb08
* Wed Mar 28 2012 Ignacio Casal Quinteiro <icq@gnome.org> - 1.4.0-1
99cb08
- Update to 1.4.0
99cb08
99cb08
* Fri Mar  2 2012 Matthias Clasen <mclasen@redhat.com> - 1.3.0-2
99cb08
- Make seed optional for RHEL
99cb08
99cb08
* Sat Feb 25 2012 Ignacio Casal Quinteiro <icq@gnome.org> - 1.3.0-1
99cb08
- Update to 1.3.0
99cb08
99cb08
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-2
99cb08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
99cb08
99cb08
* Wed Sep 28 2011 Ray <rstrode@redhat.com> - 1.2.0-1
99cb08
- Update to 1.2.0
99cb08
99cb08
* Wed Sep 28 2011 Ray <rstrode@redhat.com> - 1.2.0-1
99cb08
- Update to 1.2.0
99cb08
99cb08
* Wed Sep 28 2011 Ray <rstrode@redhat.com> - 1.2.0-1
99cb08
- Update to 1.2.0
99cb08
99cb08
* Tue Sep 27 2011 Ray <rstrode@redhat.com> - 1.2.0-1
99cb08
- Update to 1.2.0
99cb08
99cb08
* Tue Sep 27 2011 Ray <rstrode@redhat.com> - 1.2.0-1
99cb08
- Update to 1.2.0
99cb08
99cb08
* Tue Sep 27 2011 Ray <rstrode@redhat.com> - 1.2.0-1
99cb08
- Update to 1.2.0
99cb08
99cb08
* Wed Aug 31 2011 Ignacio Casal Quinteiro <icq@gnome.org> - 1.1.3-1
99cb08
- Update to 1.1.3
99cb08
99cb08
* Wed Aug 31 2011 Ignacio Casal Quinteiro <icq@gnome.org> - 1.1.2-2
99cb08
- Rebuild for latest pygobject3
99cb08
99cb08
* Tue Aug 23 2011 Adam Williamson <awilliam@redhat.com> - 1.1.2-1
99cb08
- Update to 1.1.2
99cb08
- bump BR to pygobject3-devel
99cb08
99cb08
* Wed Aug 03 2011 Bastien Nocera <bnocera@redhat.com> 1.1.1-3
99cb08
- Another attempt at building against the latest gjs
99cb08
99cb08
* Wed Aug 03 2011 Bastien Nocera <bnocera@redhat.com> 1.1.1-2
99cb08
- Rebuild for newer gjs
99cb08
99cb08
* Tue Jul 26 2011 Matthias Clasen <mclasen@redhat.com> - 1.1.1-1
99cb08
- Update to 1.1.1
99cb08
99cb08
* Tue Jun 14 2011 Tomas Bzatek <tbzatek@redhat.com> - 1.1.0-1
99cb08
- Update to 1.1.0
99cb08
99cb08
* Mon Apr  4 2011 Christopher Aillon <caillon@redhat.com> 1.0.0-1
99cb08
- Update to 1.0.0
99cb08
99cb08
* Sun Mar 27 2011 Bastien Nocera <bnocera@redhat.com> 0.9.0-1
99cb08
- Update to 0.9.0
99cb08
99cb08
* Thu Mar 10 2011 Bastien Nocera <bnocera@redhat.com> 0.7.4-1
99cb08
- Update to 0.7.4
99cb08
99cb08
* Tue Feb 22 2011 Matthias Clasen <mclasen@redhat.com> 0.7.3-1
99cb08
- Update to 0.7.3
99cb08
- Drop unneeded dependencies
99cb08
99cb08
* Mon Feb 21 2011 Bastien Nocera <bnocera@redhat.com> 0.7.2-1
99cb08
- Update to 0.7.2
99cb08
99cb08
* Thu Feb 10 2011 Matthias Clasen <mclasen@redhat.com> 0.7.1-7
99cb08
- Rebuild
99cb08
99cb08
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-6
99cb08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
99cb08
99cb08
* Wed Feb  2 2011 Matthias Clasen <mclasen@redhat.com> 0.7.1-5
99cb08
- Rebuild against newer gtk
99cb08
99cb08
* Fri Jan 28 2011 Bastien Nocera <bnocera@redhat.com> 0.7.1-4
99cb08
- Update to real 0.7.1 release
99cb08
99cb08
* Fri Jan  7 2011 Matthias Clasen <mclasen@redhat.com> - 0.7.1-3.gita2f98e
99cb08
- Rebuild against newer gtk
99cb08
99cb08
* Fri Dec  3 2010 Matthias Clasen <mclasen@redhat.com> - 0.7.1-2.gita2f98e
99cb08
- Rebuild against newer gtk
99cb08
99cb08
* Thu Nov 11 2010 Dan Williams <dcbw@redhat.com> - 0.7.1-1.gita2f98e
99cb08
- Update to 0.7.1
99cb08
- Fix some crashes with missing introspection data
99cb08
99cb08
* Mon Nov  1 2010 Matthias Clasen <mclasen@redhat.com> 0.7.0-2
99cb08
- Rebuild against newer gtk3
99cb08
99cb08
* Mon Oct 04 2010 Bastien Nocera <bnocera@redhat.com> 0.7.0-1
99cb08
- Update to 0.7.0
99cb08
99cb08
* Tue Sep 21 2010 Matthias Clasen <mclasen@redhat.com> - 0.5.5-2
99cb08
- Rebuild against newer gobject-introspection
99cb08
99cb08
* Thu Aug 19 2010 Matthias Clasen <mclasen@redhat.com> - 0.5.5-1
99cb08
- Update to 0.5.5
99cb08
99cb08
* Thu Aug  5 2010 Matthias Clasen <mclasen@redhat.com> - 0.5.4-1
99cb08
- Update to 0.5.4
99cb08
99cb08
* Tue Jul 27 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> 0.5.3-2
99cb08
- Rebuild against python 2.7
99cb08
99cb08
* Fri Jul 23 2010 Bastien Nocera <bnocera@redhat.com> 0.5.3-1
99cb08
- Update to 0.5.3
99cb08
99cb08
* Thu Jul 22 2010 Bastien Nocera <bnocera@redhat.com> 0.5.2-5
99cb08
- Fix post scriplet (#615021)
99cb08
99cb08
* Thu Jul 15 2010 Colin Walters <walters@verbum.org> - 0.5.2-4
99cb08
- Rebuild with new gobject-introspection
99cb08
99cb08
* Tue Jul 13 2010 Matthias Clasen <mclasen@redhat.com> 0.5.2-3
99cb08
- Rebuild
99cb08
99cb08
* Mon Jul 12 2010 Colin Walters <walters@verbum.org> - 0.5.2-2
99cb08
- Rebuild against new gobject-introspection
99cb08
99cb08
* Mon Jul 12 2010 Matthias Clasen <mclasen@redhat.com> 0.5.2-1
99cb08
- Update to 0.5.2
99cb08
99cb08
* Thu Jul  8 2010 Matthias Clasen <mclasen@redhat.com> 0.5.1-2
99cb08
- Rebuild
99cb08
99cb08
* Mon Jun 28 2010 Bastien Nocera <bnocera@redhat.com> 0.5.1-1
99cb08
- Update to 0.5.1
99cb08
99cb08
* Thu Jun 24 2010 Bastien Nocera <bnocera@redhat.com> 0.5.0-4
99cb08
- Document rpath work-arounds disabling, and remove verbose build
99cb08
99cb08
* Fri Jun 18 2010 Bastien Nocera <bnocera@redhat.com> 0.5.0-3
99cb08
- Fix a number of comments from review request
99cb08
99cb08
* Mon Jun 14 2010 Bastien Nocera <bnocera@redhat.com> 0.5.0-2
99cb08
- Call ldconfig when installing the package
99cb08
99cb08
* Mon Jun 14 2010 Bastien Nocera <bnocera@redhat.com> 0.5.0-1
99cb08
- First package
99cb08