Blame SPECS/libpeas.spec

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