qulogic/gplugin

d716e25c2c80
Merged in feature/rpmspec-cleanups (pull request #57)

Clean up rpm packages

Approved-by: Elliott Sales de Andrade
--- a/packaging/gplugin.spec.in Mon Feb 17 01:28:29 2020 +0000
+++ b/packaging/gplugin.spec.in Wed Feb 19 03:51:27 2020 +0000
@@ -23,7 +23,14 @@
BuildRequires: python3-devel
BuildRequires: python3-gobject
BuildRequires: vala
-BuildRequires: /usr/lib64/pkgconfig/pygobject-3.0.pc
+BuildRequires: perl-Glib
+BuildRequires: perl-Glib-Object-Introspection
+%if 0%{?fedora}
+BuildRequires: perl-devel
+%endif
+%if 0%{?opensuse}
+BuildRequires: perl-ExtUtils-Config
+%endif
%package -n libgplugin0
Summary: A GObject based library that implements a reusable plugin system
@@ -54,6 +61,10 @@
Summary: A GObject based library that implements a reusable plugin system
Group: Development/Libraries
+%package perl
+Summary: A GObject based library that implements a reusable plugin system
+Group: Development/Libraries
+
%package python3
Summary: A GObject based library that implements a reusable plugin system
Group: Development/Libraries
@@ -68,31 +79,16 @@
that supports loading plugins in other languages via loaders. GPlugin also
implements dependencies among the plugins.
-It was started due to the infamous "Plugin Problem" for Guifications 3, which
-was that I needed plugins that could depend on each other, be able to be
-written in other languages, have plugins that are loaded before the main load
-phase, and allow plugins to register types into the GObject type system.
-
%description -n libgplugin0
GPlugin is a GObject based library that implements a reusable plugin system
that supports loading plugins in other languages via loaders. GPlugin also
implements dependencies among the plugins.
-It was started due to the infamous "Plugin Problem" for Guifications 3, which
-was that I needed plugins that could depend on each other, be able to be
-written in other languages, have plugins that are loaded before the main load
-phase, and allow plugins to register types into the GObject type system.
-
%description devel
GPlugin is a GObject based library that implements a reusable plugin system
that supports loading plugins in other languages via loaders. GPlugin also
implements dependencies among the plugins.
-It was started due to the infamous "Plugin Problem" for Guifications 3, which
-was that I needed plugins that could depend on each other, be able to be
-written in other languages, have plugins that are loaded before the main load
-phase, and allow plugins to register types into the GObject type system.
-
This package contains all necessary include files and libraries needed
to develop applications that require these.
@@ -101,11 +97,6 @@
that supports loading plugins in other languages via loaders. GPlugin also
implements dependencies among the plugins.
-It was started due to the infamous "Plugin Problem" for Guifications 3, which
-was that I needed plugins that could depend on each other, be able to be
-written in other languages, have plugins that are loaded before the main load
-phase, and allow plugins to register types into the GObject type system.
-
This package contains additional GTK3 dependencies for %{name} library.
%description gtk3-devel
@@ -113,11 +104,6 @@
that supports loading plugins in other languages via loaders. GPlugin also
implements dependencies among the plugins.
-It was started due to the infamous "Plugin Problem" for Guifications 3, which
-was that I needed plugins that could depend on each other, be able to be
-written in other languages, have plugins that are loaded before the main load
-phase, and allow plugins to register types into the GObject type system.
-
This package contains all necessary include files and libraries needed
to develop GTK3 applications that require these.
@@ -126,11 +112,6 @@
that supports loading plugins in other languages via loaders. GPlugin also
implements dependencies among the plugins.
-It was started due to the infamous "Plugin Problem" for Guifications 3, which
-was that I needed plugins that could depend on each other, be able to be
-written in other languages, have plugins that are loaded before the main load
-phase, and allow plugins to register types into the GObject type system.
-
This package contains the vapi bindings allowing GPluginGtk to be used from
vala.
@@ -139,23 +120,20 @@
that supports loading plugins in other languages via loaders. GPlugin also
implements dependencies among the plugins.
-It was started due to the infamous "Plugin Problem" for Guifications 3, which
-was that I needed plugins that could depend on each other, be able to be
-written in other languages, have plugins that are loaded before the main load
-phase, and allow plugins to register types into the GObject type system.
+This package contains the Lua Loader for %{name} library.
-This package contains the Lua Loader for %{name} library.
+%description perl
+GPlugin is a GObject based library that implements a reusable plugin system
+that supports loading plugins in other languages via loaders. GPlugin also
+implements dependencies among the plugins.
+
+This package contains Perl loader for %{name} library.
%description python3
GPlugin is a GObject based library that implements a reusable plugin system
that supports loading plugins in other languages via loaders. GPlugin also
implements dependencies among the plugins.
-It was started due to the infamous "Plugin Problem" for Guifications 3, which
-was that I needed plugins that could depend on each other, be able to be
-written in other languages, have plugins that are loaded before the main load
-phase, and allow plugins to register types into the GObject type system.
-
This package contains Python 3 loader for %{name} library.
%description vala
@@ -163,18 +141,11 @@
that supports loading plugins in other languages via loaders. GPlugin also
implements dependencies among the plugins.
-It was started due to the infamous "Plugin Problem" for Guifications 3, which
-was that I needed plugins that could depend on each other, be able to be
-written in other languages, have plugins that are loaded before the main load
-phase, and allow plugins to register types into the GObject type system.
-
This package contains the vapi bindings allowing GPlugin to be used from vala.
%build
CFLAGS="%{optflags}" meson \
--prefix=%{_prefix} \
- -Dlua=true \
- -Dpython=true \
build
ninja -C build %{?_smp_mflags}
@@ -196,17 +167,21 @@
%files
%defattr(-,root,root)
%doc README.md ChangeLog
+%license COPYING
%{_bindir}/gplugin-query
%{_libdir}/gplugin/
%{_mandir}/man1/gplugin-query.1*
%files -n libgplugin0
%defattr(-,root,root)
+%doc README.md
+%license COPYING
%{_libdir}/libgplugin.so.0.1.0
%files devel
%defattr(-,root,root)
%doc HACKING README.md
+%license COPYING
%{_datadir}/gir-1.0/GPlugin-0.0.gir
%{_datadir}/gtk-doc/html/gplugin/
%{_includedir}/gplugin-1.0/
@@ -219,6 +194,7 @@
%files gtk3
%defattr(-,root,root)
%doc README.md
+%license COPYING
%{_bindir}/gplugin-gtk-viewer
%{_libdir}/libgplugin-gtk.so.0.1.0
%{_mandir}/man1/gplugin-gtk-viewer.1*
@@ -227,6 +203,7 @@
%defattr(-,root,root)
%dir %{_datadir}/glade/catalogs/
%doc README.md
+%license COPYING
%{_datadir}/gir-1.0/GPluginGtk-0.0.gir
%{_datadir}/glade/catalogs/gplugin-gtk.xml
%{_datadir}/gtk-doc/html/gplugin-gtk/
@@ -234,16 +211,30 @@
%{_libdir}/libgplugin-gtk.so
%{_libdir}/libgplugin-gtk.so.0
+%files gtk3-vala
+%defattr(-,root,root)
+%doc README.md
+%license COPYING
+%{_datadir}/vala/vapi/gplugin-gtk.vapi
+%{_datadir}/vala/vapi/gplugin-gtk.deps
+
%files lua
%defattr(-,root,root)
%doc README.md
%license COPYING
%{_libdir}/gplugin/gplugin-lua.so
+%files perl
+%defattr(-,root,root)
+%doc README.md
+%license COPYING
+%{_libdir}/gplugin/gplugin-perl.so
+
%files python3
%defattr(-,root,root)
%doc README.md
-%{_libdir}/gplugin/gplugin-python.so
+%license COPYING
+%{_libdir}/gplugin/gplugin-python3.so
%files vala
%defattr(-,root,root)
@@ -252,14 +243,11 @@
%{_datadir}/vala/vapi/gplugin.vapi
%{_datadir}/vala/vapi/gplugin.deps
-%files gtk3-vala
-%defattr(-,root,root)
-%doc README.md
-%license COPYING
-%{_datadir}/vala/vapi/gplugin-gtk.vapi
-%{_datadir}/vala/vapi/gplugin-gtk.deps
+%changelog
+* Tue Feb 18 2020 Gary Kramlich <grim@reaperworld.com>
+- Add the perl package
+- Updated the python files to reference the new name for gplugin-python3
-%changelog
* Thu Oct 31 2019 Gary Kramlich <grim@reaperworld.com>
- Fixed an include bug in gplugin-gtk
- Fixed building again python3.8