commit 01d5b98c05e7cf9764d70db1a7d7d44b15bf2d88 Author: Sergey Cherevko Date: Mon Jun 19 12:52:09 2023 +0300 import libappindicator-12.10.0-33.el9 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7a068f7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/libappindicator-12.10.0.tar.gz diff --git a/.libappindicator.metadata b/.libappindicator.metadata new file mode 100644 index 0000000..bed7cf4 --- /dev/null +++ b/.libappindicator.metadata @@ -0,0 +1 @@ +17e2e22cb7025a175ba7f7cff5efdf5dc0e79634 SOURCES/libappindicator-12.10.0.tar.gz diff --git a/SOURCES/0001_Fix_mono_dir.patch b/SOURCES/0001_Fix_mono_dir.patch new file mode 100644 index 0000000..b7c82c4 --- /dev/null +++ b/SOURCES/0001_Fix_mono_dir.patch @@ -0,0 +1,24 @@ +diff -Nru libappindicator-0.4.92.orig/bindings/mono/appindicator-sharp-0.1.pc.in libappindicator-0.4.92/bindings/mono/appindicator-sharp-0.1.pc.in +--- libappindicator-0.4.92.orig/bindings/mono/appindicator-sharp-0.1.pc.in 2012-06-27 21:04:30.199741626 -0400 ++++ libappindicator-0.4.92/bindings/mono/appindicator-sharp-0.1.pc.in 2012-06-27 21:05:23.326822552 -0400 +@@ -1,7 +1,7 @@ + prefix=@prefix@ + exec_prefix=@exec_prefix@ + libdir=@libdir@ +-assemblies_dir=${libdir}/cli/appindicator-sharp-0.1 ++assemblies_dir=${libdir}/appindicator-sharp-0.1 + + Name: appindicator-sharp + Description: application indicators for .NET +diff -Nru libappindicator-0.4.92.orig/bindings/mono/Makefile.am libappindicator-0.4.92/bindings/mono/Makefile.am +--- libappindicator-0.4.92.orig/bindings/mono/Makefile.am 2012-06-27 21:04:30.199741626 -0400 ++++ libappindicator-0.4.92/bindings/mono/Makefile.am 2012-06-27 21:04:59.562786431 -0400 +@@ -31,7 +31,7 @@ + $(DLLPOLICY1) \ + $(POLICY1).config + +-assemblydir = $(libdir)/cli/appindicator-sharp-0.1 ++assemblydir = $(libdir)/appindicator-sharp-0.1 + assembly_DATA = $(TARGET) + + CLEANFILES = \ diff --git a/SOURCES/incompatible_pointer_build_fix.patch b/SOURCES/incompatible_pointer_build_fix.patch new file mode 100644 index 0000000..50678be --- /dev/null +++ b/SOURCES/incompatible_pointer_build_fix.patch @@ -0,0 +1,12 @@ +diff -up libappindicator-12.10.0/src/app-indicator.c.build_fix libappindicator-12.10.0/src/app-indicator.c +--- libappindicator-12.10.0/src/app-indicator.c.build_fix 2018-04-10 14:43:57.134400594 +0200 ++++ libappindicator-12.10.0/src/app-indicator.c 2018-04-10 14:45:34.655448722 +0200 +@@ -2196,7 +2196,7 @@ app_indicator_set_secondary_activate_tar + + g_return_if_fail (GTK_IS_WIDGET (menuitem)); + +- priv->sec_activate_target = g_object_ref(G_OBJECT(menuitem)); ++ priv->sec_activate_target = g_object_ref(menuitem); + priv->sec_activate_enabled = widget_is_menu_child(self, menuitem); + g_signal_connect(menuitem, "parent-set", G_CALLBACK(sec_activate_target_parent_changed), self); + } diff --git a/SOURCES/nopython.patch b/SOURCES/nopython.patch new file mode 100644 index 0000000..713676a --- /dev/null +++ b/SOURCES/nopython.patch @@ -0,0 +1,59 @@ +diff --git a/bindings/Makefile.am b/bindings/Makefile.am +index d1f6d73..dccca6c 100644 +--- a/bindings/Makefile.am ++++ b/bindings/Makefile.am +@@ -3,7 +3,6 @@ SUBDIRS = \ + vala + else + SUBDIRS = \ +- python \ + vala + endif + +diff --git a/configure.ac b/configure.ac +index ee03390..4713b22 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -181,33 +181,6 @@ AM_CONDITIONAL(BUILD_MONO_TEST, test x${have_nunit} = xyes) + with_localinstall="no" + AC_ARG_ENABLE(localinstall, AS_HELP_STRING([--enable-localinstall], [install all of the files localy instead of system directories (for distcheck)]), with_localinstall=$enableval, with_localinstall=no) + +-########################### +-# Python +-########################### +- +-PYGTK_REQUIRED=2.14.0 +-PYGOBJECT_REQUIRED=0.22 +- +-AM_PATH_PYTHON(2.3.5) +-AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)]) +- +-PKG_CHECK_MODULES(APPINDICATOR_PYTHON, +- [ +- pygtk-2.0 >= $PYGTK_REQUIRED +- gtk+-2.0 >= $GTK_REQUIRED_VERSION +- pygobject-2.0 >= $PYGOBJECT_REQUIRED +- ]) +- +-AC_MSG_CHECKING(for pygtk defs) +-PYGTK_DEFSDIR=`$PKG_CONFIG --variable=defsdir pygtk-2.0` +-AC_SUBST(PYGTK_DEFSDIR) +-AC_MSG_RESULT($PYGTK_DEFSDIR) +- +-AC_MSG_CHECKING(for pygtk codegen) +-PYGTK_CODEGEN="$PYTHON `$PKG_CONFIG --variable=codegendir pygtk-2.0`/codegen.py" +-AC_SUBST(PYGTK_CODEGEN) +-AC_MSG_RESULT($PYGTK_CODEGEN) +- + ######################### + # Check if build tests + ######################### +@@ -239,8 +212,6 @@ src/Makefile + src/appindicator-0.1.pc + src/appindicator3-0.1.pc + bindings/Makefile +-bindings/python/Makefile +-bindings/python/appindicator.override + bindings/vala/Makefile + bindings/vala/examples/Makefile + tests/Makefile diff --git a/SPECS/libappindicator.spec b/SPECS/libappindicator.spec new file mode 100644 index 0000000..8a50529 --- /dev/null +++ b/SPECS/libappindicator.spec @@ -0,0 +1,336 @@ +%if 0%{?rhel} >= 9 +%bcond_with mono +%else +%bcond_without mono +%endif + +Name: libappindicator +Version: 12.10.0 +Release: 33%{?dist} +Summary: Application indicators library + +License: LGPLv2 and LGPLv3 +URL: https://launchpad.net/libappindicator +Source0: https://launchpad.net/libappindicator/12.10/%{version}/+download/%{name}-%{version}.tar.gz +Patch0: 0001_Fix_mono_dir.patch +# https://bazaar.launchpad.net/~indicator-applet-developers/libappindicator/trunk.16.10/revision/285 +Patch1: incompatible_pointer_build_fix.patch +Patch2: nopython.patch + +BuildRequires: make +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: gtk-doc +BuildRequires: vala +BuildRequires: dbus-glib-devel +BuildRequires: libdbusmenu-devel +BuildRequires: libdbusmenu-gtk2-devel +BuildRequires: libdbusmenu-gtk3-devel +BuildRequires: gobject-introspection-devel +BuildRequires: gtk2-devel +BuildRequires: gtk3-devel +BuildRequires: libindicator-devel +BuildRequires: libindicator-gtk3-devel +%if %{with mono} +%ifarch %{mono_arches} +BuildRequires: gtk-sharp2-devel +BuildRequires: gtk-sharp2-gapi +BuildRequires: mono-devel +BuildRequires: mono-nunit-devel +%endif +%endif + +%description +A library to allow applications to export a menu into the Unity Menu bar. Based +on KSNI it also works in KDE and will fallback to generic Systray support if +none of those are available. + + +%package devel +Summary: Development files for %{name} + +Requires: %{name} = %{version}-%{release} +Requires: dbus-glib-devel +Requires: libdbusmenu-devel + +%description devel +This package contains the development files for the appindicator library. + + +%package gtk3 +Summary: Application indicators library - GTK 3 + +%description gtk3 +A library to allow applications to export a menu into the Unity Menu bar. Based +on KSNI it also works in KDE and will fallback to generic Systray support if +none of those are available. + +This package contains the GTK 3 version of this library. + + +%package gtk3-devel +Summary: Development files for %{name}-gtk3 + +Requires: %{name}-gtk3 = %{version}-%{release} +Requires: dbus-glib-devel +Requires: libdbusmenu-devel + +%description gtk3-devel +This package contains the development files for the appindicator-gtk3 library. + + +%package docs +Summary: Documentation for %{name} and %{name}-gtk3 + +BuildArch: noarch + +%description docs +This package contains the documentation for the appindicator and +appindicator-gtk3 libraries. + + +%if %{with mono} +%ifarch %{mono_arches} +%package sharp +Summary: Application indicators library - C# + +Requires: mono-complete + +%description sharp +A library to allow applications to export a menu into the Unity Menu bar. Based +on KSNI it also works in KDE and will fallback to generic Systray support if +none of those are available. + +This package contains the Mono C# bindings for this library. + + +%package sharp-devel +Summary: Development files for %{name}-sharp + +Requires: %{name}-sharp = %{version}-%{release} + +%description sharp-devel +This package contains the development files for the appindicator-sharp library. +%endif +%endif + + +%prep +%setup -q +%patch0 -p1 -b .monodir +%patch1 -p1 -b .incompatible_pointer_build_fix +%patch2 -p1 -b .nopython + + +sed -i "s#gmcs#mcs#g" configure.ac +# fix for gtk-doc 1.26 +sed -i 's/--nogtkinit//' docs/reference/Makefile.am +gtkdocize --copy +cp -f gtk-doc.make gtk-doc.local.make +autoreconf -vif + + +%build +%global _configure ../configure +mkdir build-gtk2 build-gtk3 + +pushd build-gtk2 +export CFLAGS="%{optflags} $CFLAGS -Wno-deprecated-declarations -Wno-error" +%configure --with-gtk=2 --enable-gtk-doc --disable-static +# Parallel make, crash the build +make -j1 V=1 +popd + +pushd build-gtk3 +export CFLAGS="%{optflags} $CFLAGS -Wno-deprecated-declarations" +%configure --with-gtk=3 --enable-gtk-doc --disable-static +# Parallel make, crash the build +make -j1 V=1 +popd + + +%install +pushd build-gtk2 +make install DESTDIR=%{buildroot} +popd + +pushd build-gtk3 +make install DESTDIR=%{buildroot} +popd + +find %{buildroot} -type f -name '*.la' -delete + + +%ldconfig_scriptlets +%ldconfig_scriptlets gtk3 + + +%files +%doc AUTHORS README COPYING COPYING.LGPL.2.1 +%{_libdir}/libappindicator.so.* +%{_libdir}/girepository-1.0/AppIndicator-0.1.typelib + + +%files devel +%dir %{_includedir}/libappindicator-0.1/ +%dir %{_includedir}/libappindicator-0.1/libappindicator/ +%{_includedir}/libappindicator-0.1/libappindicator/*.h +%{_libdir}/libappindicator.so +%{_libdir}/pkgconfig/appindicator-0.1.pc +%{_datadir}/gir-1.0/AppIndicator-0.1.gir +%{_datadir}/vala/vapi/appindicator-0.1.vapi +%{_datadir}/vala/vapi/appindicator-0.1.deps + + +%files gtk3 +%doc AUTHORS README COPYING COPYING.LGPL.2.1 +%{_libdir}/libappindicator3.so.* +%{_libdir}/girepository-1.0/AppIndicator3-0.1.typelib + + +%files gtk3-devel +%dir %{_includedir}/libappindicator3-0.1/ +%dir %{_includedir}/libappindicator3-0.1/libappindicator/ +%{_includedir}/libappindicator3-0.1/libappindicator/*.h +%{_libdir}/libappindicator3.so +%{_libdir}/pkgconfig/appindicator3-0.1.pc +%{_datadir}/gir-1.0/AppIndicator3-0.1.gir +%{_datadir}/vala/vapi/appindicator3-0.1.vapi +%{_datadir}/vala/vapi/appindicator3-0.1.deps + + +%files docs +%doc %{_datadir}/gtk-doc/html/libappindicator/ + + +%if %{with mono} +%ifarch %{mono_arches} +%files sharp +%doc AUTHORS README COPYING COPYING.LGPL.2.1 +%dir %{_libdir}/appindicator-sharp-0.1/ +%{_libdir}/appindicator-sharp-0.1/appindicator-sharp.dll +%{_libdir}/appindicator-sharp-0.1/appindicator-sharp.dll.config +%{_libdir}/appindicator-sharp-0.1/policy.0.0.appindicator-sharp.config +%{_libdir}/appindicator-sharp-0.1/policy.0.0.appindicator-sharp.dll +%{_libdir}/appindicator-sharp-0.1/policy.0.1.appindicator-sharp.config +%{_libdir}/appindicator-sharp-0.1/policy.0.1.appindicator-sharp.dll +%dir %{_prefix}/lib/mono/appindicator-sharp/ +%{_prefix}/lib/mono/appindicator-sharp/appindicator-sharp.dll +%{_prefix}/lib/mono/appindicator-sharp/policy.0.0.appindicator-sharp.dll +%dir %{_prefix}/lib/mono/gac/appindicator-sharp/ +%dir %{_prefix}/lib/mono/gac/appindicator-sharp/*/ +%{_prefix}/lib/mono/gac/appindicator-sharp/*/appindicator-sharp.dll +%{_prefix}/lib/mono/gac/appindicator-sharp/*/appindicator-sharp.dll.config +%dir %{_prefix}/lib/mono/gac/policy.0.0.appindicator-sharp/ +%dir %{_prefix}/lib/mono/gac/policy.0.0.appindicator-sharp/*/ +%{_prefix}/lib/mono/gac/policy.0.0.appindicator-sharp/*/policy.0.0.appindicator-sharp.dll +%{_prefix}/lib/mono/gac/policy.0.0.appindicator-sharp/*/policy.0.0.appindicator-sharp.config + + +%files sharp-devel +%{_libdir}/pkgconfig/appindicator-sharp-0.1.pc + +%endif +%endif + +%changelog +* Sun Jun 26 2022 Neal Gompa - 12.10.0-33 +- Disable Mono bindings for RHEL 9+ for now + +* Thu Jan 20 2022 Fedora Release Engineering - 12.10.0-32 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Jul 22 2021 Fedora Release Engineering - 12.10.0-31 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Jan 26 2021 Fedora Release Engineering - 12.10.0-30 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 12.10.0-29 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sun Apr 13 2020 Eduardo Echeverria - 12-10-0-28 +- Added mono to sharp sub-package + +* Wed Jan 29 2020 Fedora Release Engineering - 12.10.0-27 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Wed Sep 04 2019 Miro Hrončok - 12.10.0-26 +- Subpackage python2-appindicator has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + +* Thu Jul 25 2019 Fedora Release Engineering - 12.10.0-25 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Mon Feb 04 2019 Kalev Lember - 12.10.0-24 +- Update BRs for vala packaging changes + +* Fri Feb 01 2019 Fedora Release Engineering - 12.10.0-23 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Thu Jan 24 2019 Tomáš Popela - 12.10.0-22 +- Fix the build due to python_sitearch usage + +* Fri Jul 13 2018 Fedora Release Engineering - 12.10.0-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Apr 10 2018 Tomas Popela - 12.10.0-20 +- Fix the build on F28+ with new glib2 + +* Wed Feb 07 2018 Fedora Release Engineering - 12.10.0-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Sat Feb 03 2018 Igor Gnatenko - 12.10.0-18 +- Switch to %%ldconfig_scriptlets + +* Sun Dec 17 2017 Zbigniew Jędrzejewski-Szmek - 12.10.0-17 +- Python 2 binary package renamed to python2-appindicator + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + +* Thu Aug 03 2017 Fedora Release Engineering - 12.10.0-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 12.10.0-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 12.10.0-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Oct 13 2016 Peter Robinson 12.10.0-13 +- rebuild - mono on aarch64 + +* Tue Jul 19 2016 Fedora Release Engineering - 12.10.0-12 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Thu Feb 04 2016 Fedora Release Engineering - 12.10.0-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Fedora Release Engineering - 12.10.0-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Mon May 18 2015 Peter Robinson 12.10.0-9 +- Rebuild (mono4) + +* Sun Jan 4 2015 Peter Robinson 12.10.0-8 +- Rather than exclude the entire library from non mono arches just don't build the bindings + +* Mon Dec 29 2014 Eduardo Echeverria - 12.10.0-7 +- Added workaround -Wno-deprecated-declarations for fix FTBFS + +* Sun Aug 17 2014 Fedora Release Engineering - 12.10.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Tue Jul 22 2014 Kalev Lember - 12.10.0-5 +- Rebuilt for gobject-introspection 1.41.4 + +* Sat Jun 07 2014 Fedora Release Engineering - 12.10.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sat Aug 03 2013 Fedora Release Engineering - 12.10.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Jun 13 2013 Dan Horák - 12.10.0-2 +- set ExclusiveArch + +* Fri May 31 2013 Eduardo Echeverria - 12.10.0-1 +- Initial Packaging