Blame SPECS/libpeas.spec

95e96e
%if 0%{?rhel} == 0
95e96e
%global use_seed 1
95e96e
%global seed_option --enable-seed
95e96e
%else
95e96e
%global use_seed 0
95e96e
%global seed_option --disable-seed
95e96e
%endif
95e96e
68e358
%if 0%{?rhel} == 0
68e358
%global use_python3 1
68e358
%else
68e358
%global use_python3 0
68e358
%endif
68e358
95e96e
Name:		libpeas
68e358
Version:	1.12.1
68e358
Release:	1%{?dist}
95e96e
Summary:	Plug-ins implementation convenience library
95e96e
95e96e
Group:		System Environment/Libraries
95e96e
License:	LGPLv2+
95e96e
URL:		http://ftp.acc.umu.se/pub/GNOME/sources/libpeas/
68e358
Source0:	http://ftp.acc.umu.se/pub/GNOME/sources/%{name}/1.12/%{name}-%{version}.tar.xz
95e96e
95e96e
BuildRequires:	chrpath
95e96e
BuildRequires:	gtk3-devel >= 3.0.0
95e96e
BuildRequires:	pygobject3-devel
95e96e
BuildRequires:	python-devel
68e358
%if %{use_python3}
68e358
BuildRequires:	python3-devel
68e358
%endif
95e96e
BuildRequires:	intltool
95e96e
BuildRequires:	libtool
95e96e
%if %{use_seed}
95e96e
BuildRequires:	seed-devel
95e96e
%endif
95e96e
BuildRequires:	gtk-doc
95e96e
BuildRequires:	glade-devel
95e96e
95e96e
BuildRequires:	autoconf automake gnome-common
95e96e
68e358
# For the girepository-1.0 directory
68e358
Requires:	gobject-introspection%{?_isa}
68e358
95e96e
%description
95e96e
libpeas is a convenience library making adding plug-ins support
95e96e
to GTK+ and glib-based applications.
95e96e
95e96e
%package devel
95e96e
Summary:	Development files for libpeas
95e96e
Group:		Development/Libraries
68e358
Requires:	%{name}%{?_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
95e96e
%setup -q
95e96e
95e96e
%build
95e96e
%configure %{seed_option}
95e96e
95e96e
make %{?_smp_mflags}
95e96e
95e96e
%install
95e96e
make install DESTDIR=$RPM_BUILD_ROOT
95e96e
95e96e
rm $RPM_BUILD_ROOT/%{_libdir}/lib*.la	\
95e96e
	$RPM_BUILD_ROOT/%{_libdir}/libpeas-1.0/loaders/lib*.la
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
68e358
%if %{use_seed}
68e358
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libpeas-1.0/loaders/libseedloader.so
68e358
%endif
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
95e96e
%doc AUTHORS
95e96e
%{_libdir}/libpeas*-1.0.so.*
95e96e
%dir %{_libdir}/libpeas-1.0/
95e96e
%dir %{_libdir}/libpeas-1.0/loaders
95e96e
%{_libdir}/libpeas-1.0/loaders/libpythonloader.so
68e358
%if %{use_python3}
68e358
%{_libdir}/libpeas-1.0/loaders/libpython3loader.so
68e358
%endif
95e96e
%if %{use_seed}
95e96e
%{_libdir}/libpeas-1.0/loaders/libseedloader.so
95e96e
%endif
95e96e
%{_libdir}/girepository-1.0/*.typelib
95e96e
%{_datadir}/icons/hicolor/*/actions/libpeas-plugin.*
95e96e
95e96e
%files devel
95e96e
%{_bindir}/peas-demo
95e96e
%{_includedir}/libpeas-1.0/
95e96e
%{_libdir}/peas-demo/
95e96e
%dir %{_datadir}/gtk-doc/
95e96e
%dir %{_datadir}/gtk-doc/html/
95e96e
%{_datadir}/gtk-doc/html/libpeas/
95e96e
%{_libdir}/libpeas*-1.0.so
95e96e
%{_datadir}/gir-1.0/*.gir
95e96e
%{_libdir}/pkgconfig/*.pc
95e96e
%{_datadir}/glade/catalogs/libpeas-gtk.xml
95e96e
95e96e
%changelog
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