From e02b613034b5e20632d07b00b1d5f77c152c0a0d Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Nov 02 2019 16:20:10 +0000 Subject: import libappindicator-12.10.0-13.el7 --- 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..d9a4b99 --- /dev/null +++ b/.libappindicator.metadata @@ -0,0 +1 @@ +17e2e22cb7025a175ba7f7cff5efdf5dc0e79634 SOURCES/libappindicator-12.10.0.tar.gz diff --git a/SOURCES/covscan.patch b/SOURCES/covscan.patch new file mode 100644 index 0000000..2ff72ed --- /dev/null +++ b/SOURCES/covscan.patch @@ -0,0 +1,12 @@ +diff -up libappindicator-12.10.0/src/app-indicator.c.covscan libappindicator-12.10.0/src/app-indicator.c +--- libappindicator-12.10.0/src/app-indicator.c.covscan 2018-02-26 07:55:51.677902536 +0100 ++++ libappindicator-12.10.0/src/app-indicator.c 2018-02-26 07:56:02.141836701 +0100 +@@ -1899,7 +1899,7 @@ app_indicator_set_attention_icon_full (A + g_free (self->priv->att_accessible_desc); + } + +- self->priv->att_accessible_desc = g_strdup(icon_name); ++ self->priv->att_accessible_desc = g_strdup(icon_desc); + changed = TRUE; + } + diff --git a/SPECS/libappindicator.spec b/SPECS/libappindicator.spec new file mode 100644 index 0000000..58c32d2 --- /dev/null +++ b/SPECS/libappindicator.spec @@ -0,0 +1,223 @@ +Name: libappindicator +Version: 12.10.0 +Release: 13%{?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: covscan.patch + +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: gtk-doc +BuildRequires: vala-tools +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 +BuildRequires: python2-devel +BuildRequires: pygtk2-devel + +%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 -n python-appindicator +Summary: Python 2 bindings for %{name} + +Requires: %{name} = %{version}-%{release} + +%description -n python-appindicator +This package contains the Python 2 bindings for the appindicator library. + + +%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. + + +%prep +%autosetup -p1 + +sed -i "s#gmcs#mcs#g" configure.ac +autoreconf -vif + + +%build +%global _configure ../configure +mkdir build-gtk2 build-gtk3 + +pushd build-gtk2 +export CFLAGS="%{optflags} $CFLAGS -Wno-deprecated-declarations" +%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 + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + + +%post gtk3 -p /sbin/ldconfig + +%postun gtk3 -p /sbin/ldconfig + + +%files +%doc AUTHORS README COPYING COPYING.LGPL.2.1 +%{_libdir}/libappindicator.so.* +%{_libdir}/girepository-1.0/AppIndicator-0.1.typelib + + +%files -n python-appindicator +%dir %{python_sitearch}/appindicator/ +%{python_sitearch}/appindicator/__init__.py* +%{python_sitearch}/appindicator/_appindicator.so +%dir %{_datadir}/pygtk/ +%dir %{_datadir}/pygtk/2.0/ +%dir %{_datadir}/pygtk/2.0/defs/ +%{_datadir}/pygtk/2.0/defs/appindicator.defs + + +%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/ + + +%changelog +* Mon Feb 26 2018 Tomas Popela - 12.10.0-13 +- Fix covscan warning +- Resolves: rhbz#1546657 + +* Tue Feb 20 2018 Tomas Popela - 12.10.0-12 +- Move package from EPEL 7 to RHEL 7, but leave the mono support in EPEL in + libappindicator-sharp package. +- Resolves: rhbz#1546657 + +* Fri Sep 09 2016 Timotheus Pokorra - 12.10.0-11 +- Rebuilt for Mono4 in Epel7 + +* 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