libpeas/libpeas.spec

227 lines
7.0 KiB
RPMSpec

%define majver %(echo %version | cut -d. -f 1-2)
%define with_vala 0
Name: libpeas
Version: 1.36.0
Release: 1mamba
Summary: A gobject-based plugins engine
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://wiki.gnome.org/Projects/Libpeas
Source: http://ftp.acc.umu.se/pub/GNOME/sources/libpeas/%{majver}/libpeas-%{version}.tar.xz
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: gobject-introspection-devel
BuildRequires: libglib-devel
BuildRequires: libgtk3-devel
BuildRequires: libpython39-devel
## AUTOBUILDREQ-END
BuildRequires: intltool
BuildRequires: libtool
BuildRequires: pygobject-devel
BuildRequires: glade-devel
%if %with_vala
BuildRequires: vala >= 0.11.1
%endif
# TODO
# BuildRequires: seed
#Configuration:
# Source code location : .
# Compiler : i586-openmamba-linux-gnu-gcc
# Installation prefix : /usr
# Build libpeas-gtk : yes
# Coverage testing : no (disabled, use --enable-gcov to enable)
# Glade Catalog : no
# Seed JS support : no
# Python support : yes
# Vala support : no (disabled, use --enable-vala to enable)
%description
libpeas is a gobject-based plugins engine, and is targetted at giving every application the
chance to assume its own extensibility. It also has a set of features including, but not limited to:
* multiple extension points
* on demand (lazy) programming language support for C, Python and JS
* simplicity of the API
More details can be found on the announcement blog post here:
http://log.istique.net/2010-06-03/announcing-libpeas.html
%package devel
Group: Development/Libraries
Summary: Static libraries and headers for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
libpeas is a gobject-based plugins engine.
This package contains static libraries and header files need for development.
%package apidocs
Group: Documentation
Summary: %{name} API documentation
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: gtk-doc
%description apidocs
libpeas is a gobject-based plugins engine.
This package includes the %{name} API documentation.
%prep
%setup -q
%build
%meson \
-Dgtk_doc=true
#% configure \
#%if %with_vala
# --enable-vala \
#%else
# --disable-vala \
#%endif
# --enable-python \
# --enable-gtk-doc \
%meson_build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%meson_install
rm -rf %{buildroot}%{_libdir}/lib*.la
rm -rf %{buildroot}%{_libdir}/libpeas-1.0/loaders/lib*.la
%find_lang %{name} --all-name
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(-,root,root)
%{_libdir}/libpeas-*.so.*
%if "%{stage1}" != "1"
%dir %{_libdir}/libpeas-1.0
%dir %{_libdir}/libpeas-1.0/loaders
#%{_libdir}/libpeas-1.0/loaders/libgjsloader.so
#%{_libdir}/libpeas-1.0/loaders/libpythonloader.so
%{_libdir}/libpeas-1.0/loaders/libpython3loader.so
%endif
%{_libdir}/girepository-*.*/Peas-*.*.typelib
%{_libdir}/girepository-*.*/PeasGtk-*.*.typelib
%{_datadir}/glade/catalogs/libpeas-gtk.xml
%{_datadir}/icons/hicolor/*x*/actions/*.png
%{_datadir}/icons/hicolor/scalable/actions/*.svg
%doc AUTHORS COPYING
%files devel
%defattr(-,root,root)
%{_bindir}/peas-demo
%dir %{_libdir}/peas-demo
%{_libdir}/peas-demo/plugins
%dir %{_includedir}/libpeas-1.0
%dir %{_includedir}/libpeas-1.0/libpeas-gtk
%{_includedir}/libpeas-1.0/libpeas-gtk/*.h
%dir %{_includedir}/libpeas-1.0/libpeas
%{_includedir}/libpeas-1.0/libpeas/*.h
%{_libdir}/libpeas-1.0.so
%{_libdir}/libpeas-gtk-1.0.so
%{_libdir}/pkgconfig/libpeas-*.pc
%{_datadir}/gir-*.*/Peas-*.*.gir
%{_datadir}/gir-*.*/PeasGtk-*.*.gir
%doc README
%files apidocs
%defattr(-,root,root)
%dir %{_docdir}/libpeas-1.0
%{_docdir}/libpeas-1.0/*
%dir %{_docdir}/libpeas-gtk-1.0
%{_docdir}/libpeas-gtk-1.0/*
%changelog
* Sat Mar 18 2023 Automatic Build System <autodist@mambasoft.it> 1.36.0-1mamba
- automatic version update by autodist
* Mon Sep 19 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.34.0-1mamba
- update to 1.34.0
* Fri Mar 25 2022 Automatic Build System <autodist@mambasoft.it> 1.32.0-1mamba
- automatic version update by autodist
* Sun Mar 21 2021 Automatic Build System <autodist@mambasoft.it> 1.30.0-1mamba
- automatic version update by autodist
* Tue Oct 06 2020 Automatic Build System <autodist@mambasoft.it> 1.28.0-1mamba
- automatic version update by autodist
* Thu Mar 12 2020 Automatic Build System <autodist@mambasoft.it> 1.26.0-1mamba
- automatic version update by autodist
* Sat Feb 22 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.24.1-1mamba
- update to 1.24.1
* Fri Oct 06 2017 Automatic Build System <autodist@mambasoft.it> 1.22.0-1mamba
- automatic version update by autodist
* Thu Oct 13 2016 Automatic Build System <autodist@mambasoft.it> 1.20.0-1mamba
- automatic version update by autodist
* Sat Apr 09 2016 Automatic Build System <autodist@mambasoft.it> 1.18.0-1mamba
- automatic version update by autodist
* Fri Oct 09 2015 Automatic Build System <autodist@mambasoft.it> 1.16.0-1mamba
- automatic version update by autodist
* Thu Apr 09 2015 Automatic Build System <autodist@mambasoft.it> 1.14.0-1mamba
- automatic version update by autodist
* Mon Sep 22 2014 Automatic Build System <autodist@mambasoft.it> 1.12.1-1mamba
- automatic version update by autodist
* Fri Aug 01 2014 Automatic Build System <autodist@mambasoft.it> 1.10.1-1mamba
- automatic version update by autodist
* Mon Mar 31 2014 Automatic Build System <autodist@mambasoft.it> 1.10.0-1mamba
- automatic version update by autodist
* Mon Oct 07 2013 Automatic Build System <autodist@mambasoft.it> 1.9.0-1mamba
- automatic version update by autodist
* Tue Jun 25 2013 Automatic Build System <autodist@mambasoft.it> 1.8.1-1mamba
- automatic version update by autodist
* Thu Mar 28 2013 Automatic Build System <autodist@mambasoft.it> 1.8.0-1mamba
- automatic version update by autodist
* Sun Jan 06 2013 Automatic Build System <autodist@mambasoft.it> 1.7.0-1mamba
- automatic version update by autodist
* Sun Nov 25 2012 Automatic Build System <autodist@mambasoft.it> 1.6.2-1mamba
- automatic version update by autodist
* Tue Oct 16 2012 Automatic Build System <autodist@mambasoft.it> 1.6.1-1mamba
- automatic version update by autodist
* Thu Sep 27 2012 Automatic Build System <autodist@mambasoft.it> 1.6.0-1mamba
- automatic version update by autodist
* Tue Jun 12 2012 Automatic Build System <autodist@mambasoft.it> 1.4.0-1mamba
- automatic version update by autodist
* Wed Oct 19 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.0-1mamba
- update to 1.2.0
* Fri Apr 15 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.0-1mamba
- update to 1.0.0
* Tue Mar 22 2011 gil <puntogil@libero.it> 0.7.4-1mamba
- package created by autospec