From 047dbd168e122730ade43596c10e8fda281be079 Mon Sep 17 00:00:00 2001 From: Eduardo Echeverria Date: Mon, 3 Jun 2013 14:14:46 -0430 Subject: [PATCH] Initial import BZ #969623 --- .gitignore | 1 + 0001_Fix_mono_dir.patch | 24 ++++ libappindicator.spec | 239 ++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 265 insertions(+) create mode 100644 0001_Fix_mono_dir.patch create mode 100644 libappindicator.spec diff --git a/.gitignore b/.gitignore index e69de29..c35661c 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/libappindicator-12.10.0.tar.gz diff --git a/0001_Fix_mono_dir.patch b/0001_Fix_mono_dir.patch new file mode 100644 index 0000000..b7c82c4 --- /dev/null +++ b/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/libappindicator.spec b/libappindicator.spec new file mode 100644 index 0000000..bd416a6 --- /dev/null +++ b/libappindicator.spec @@ -0,0 +1,239 @@ +Name: libappindicator +Version: 12.10.0 +Release: 1%{?dist} +Summary: Application indicators library + +Group: System Environment/Libraries +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 + +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: gtk-sharp2-gapi +BuildRequires: gobject-introspection-devel +BuildRequires: gtk2-devel +BuildRequires: gtk3-devel +BuildRequires: gtk-sharp2-devel +BuildRequires: libindicator-devel +BuildRequires: libindicator-gtk3-devel +BuildRequires: mono-devel +BuildRequires: mono-nunit-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} +Group: System Environment/Libraries + +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} +Group: Development/Libraries + +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 +Group: System Environment/Libraries + +%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 +Group: Development/Libraries + +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 +Group: Documentation + +BuildArch: noarch + +%description docs +This package contains the documentation for the appindicator and +appindicator-gtk3 libraries. + + +%package sharp +Summary: Application indicators library - C# +Group: System Environment/Libraries + +%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 +Group: Development/Libraries + +Requires: %{name}-sharp = %{version}-%{release} + +%description sharp-devel +This package contains the development files for the appindicator-sharp library. + + +%prep +%setup -q +%patch0 -p1 -b .monodir + +autoreconf -vfi + + +%build +%global _configure ../configure +mkdir build-gtk2 build-gtk3 + +pushd build-gtk2 +%configure --with-gtk=2 --enable-gtk-doc --disable-static +# Parallel make, crash the build +make -j1 V=1 +popd + +pushd build-gtk3 +%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/ + + +%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 + + +%changelog +* Fri May 31 2013 Eduardo Echeverria - 12.10.0-1 +- Initial Packaging diff --git a/sources b/sources index e69de29..2ae3069 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +41910f2005edee9240da1e53fffcdc12 libappindicator-12.10.0.tar.gz