%define debug_package %{nil} %define api 0.1 %define major 1 %define libname %mklibname ayatana-appindicator3_ %{major} %define girname %mklibname ayatana-appindicator3-gir %{api} %define devname %mklibname ayatana-appindicator3 -d %bcond_with mono Summary: Ayatana application indicators library Name: libayatana-appindicator Version: 0.5.93 Release: 1 License: LGPLv2 AND LGPLv3 AND GPLv3 Group: System/Libraries URL: https://ayatanaindicators.github.io Source0: https://github.com/AyatanaIndicators/libayatana-appindicator/archive/%{version}/%{name}-%{version}.tar.gz Source1000: %{name}.rpmlintrc Buildrequires: cmake BuildRequires: mate-common BuildRequires: vala BuildRequires: pkgconfig(ayatana-indicator3-0.4) BuildRequires: pkgconfig(dbus-glib-1) BuildRequires: pkgconfig(dbusmenu-glib-0.4) BuildRequires: pkgconfig(dbusmenu-gtk3-0.4) BuildRequires: pkgconfig(gobject-introspection-1.0) BuildRequires: pkgconfig(gtk+-3.0) BuildRequires: pkgconfig(gtk-doc) BuildRequires: pkgconfig(python3) %if %{with mono} BuildRequires: pkgconfig(gapi-2.0) BuildRequires: pkgconfig(gtk-sharp-2.0) BuildRequires: pkgconfig(mono) BuildRequires: pkgconfig(nunit) %endif %description A library to allow applications to add an icon into the StatusNotifier-compatible notification area. If none are available, it also provides an XEmbed-tray fallback. #---------------------------------------------------------------------------- %package -n %{libname} Summary: Ayatana application indicators library for GTK+3 Group: System/Libraries %description -n %{libname} A library to allow applications to add an icon into the StatusNotifier-compatible notification area. If none are available, it also provides an XEmbed-tray fallback. This package contains the GTK+3 version of the library. %files -n %{libname} %{_libdir}/libayatana-appindicator3.so.%{major}* #---------------------------------------------------------------------------- %package -n %{girname} Summary: GObject Introspection interface description for Ayatana Application Indicator3 Group: System/Libraries Requires: %{libname} = %{EVRD} %description -n %{girname} This package contains the GObject Introspection interface description for Ayatana Application Indicator3 and GTK+3. %files -n %{girname} %{_libdir}/girepository-1.0/AyatanaAppIndicator3-%{api}.typelib #---------------------------------------------------------------------------- %package -n %{devname} Summary: Development package for %{name}3 (GTK+3) Group: Development/C++ Requires: %{libname} = %{EVRD} Requires: %{girname} = %{EVRD} %description -n %{devname} Header files for development with %{name}3 (GTK+3). %files -n %{devname} %doc README.md COPYING* %{_includedir}/libayatana-appindicator3-%{api}/ %{_libdir}/libayatana-appindicator3.so %{_libdir}/pkgconfig/ayatana-appindicator3-%{api}.pc %{_datadir}/gir-1.0/AyatanaAppIndicator3-%{api}.gir %{_datadir}/vala/vapi/ayatana-appindicator3-%{api}.* #---------------------------------------------------------------------------- %package doc Summary: Documentation for libayatana-appindicator3 Group: Documentation BuildArch: noarch %description doc This package contains the documentation for the Ayatana appindicator3 libraries. %files doc %{_datadir}/gtk-doc/html/libayatana-appindicator3/ #---------------------------------------------------------------------------- %if %{with mono} %package -n ayatana-appindicator-sharp Summary: Ayatana application indicators library for C# Group: Development/C# %description -n ayatana-appindicator-sharp This package provides the ayatana-appindicator-sharp assembly that allows CLI (.NET) applications to take menus from applications and place them in the panel. This package provides assemblies to be used by applications. %files -n ayatana-appindicator-sharp %{_libdir}/ayatana-appindicator-sharp-%{api}/ %{_prefix}/lib/mono/ayatana-appindicator-sharp/ %{_prefix}/lib/mono/gac/ayatana-appindicator-sharp/ %{_prefix}/lib/mono/gac/policy.0.0.ayatana-appindicator-sharp/ %endif #---------------------------------------------------------------------------- %if %{with mono} %package -n ayatana-appindicator-sharp-devel Summary: Development files for ayatana-appindicator-sharp Group: Development/C# Requires: ayatana-appindicator-sharp = %{EVRD} %description -n ayatana-appindicator-sharp-devel This package contains the development files for the ayatana-appindicator-sharp library. %files -n ayatana-appindicator-sharp-devel %{_libdir}/pkgconfig/ayatana-appindicator-sharp-%{api}.pc %endif #---------------------------------------------------------------------------- %prep %setup -q %build %if %{with mono} export CSC=%{_bindir}/mcs %endif %cmake \ %if %{with mono} -DENABLE_BINDINGS_MONO=ON \ %else -DENABLE_BINDINGS_MONO=OFF \ %endif -DENABLE_GTKDOC=ON %make %install %makeinstall_std -C build