047dbd1
Name:		libappindicator
047dbd1
Version:	12.10.0
Eduardo Echeverria 1d125be
Release:	29%{?dist}
047dbd1
Summary:	Application indicators library
047dbd1
047dbd1
License:	LGPLv2 and LGPLv3
047dbd1
URL:		https://launchpad.net/libappindicator
047dbd1
Source0:	https://launchpad.net/libappindicator/12.10/%{version}/+download/%{name}-%{version}.tar.gz
047dbd1
Patch0:		0001_Fix_mono_dir.patch
4b89b62
# https://bazaar.launchpad.net/~indicator-applet-developers/libappindicator/trunk.16.10/revision/285
4b89b62
Patch1:		incompatible_pointer_build_fix.patch
047dbd1
047dbd1
BuildRequires:	autoconf
047dbd1
BuildRequires:	automake
047dbd1
BuildRequires:	gtk-doc
2a88f2c
BuildRequires:	vala
047dbd1
BuildRequires:	dbus-glib-devel
047dbd1
BuildRequires:	libdbusmenu-devel
047dbd1
BuildRequires:	libdbusmenu-gtk2-devel
047dbd1
BuildRequires:	libdbusmenu-gtk3-devel
047dbd1
BuildRequires:	gobject-introspection-devel
047dbd1
BuildRequires:	gtk2-devel
047dbd1
BuildRequires:	gtk3-devel
047dbd1
BuildRequires:	libindicator-devel
047dbd1
BuildRequires:	libindicator-gtk3-devel
Eduardo Echeverria 1d125be
BuildRequires:	python2-devel
Eduardo Echeverria 1d125be
BuildRequires:	pygtk2-devel
4f1d69d
%ifarch %{mono_arches}
4f1d69d
BuildRequires:	gtk-sharp2-devel
4f1d69d
BuildRequires:	gtk-sharp2-gapi
4f1d69d
BuildRequires:	mono-devel
4f1d69d
BuildRequires:	mono-nunit-devel
4f1d69d
%endif
4a0d3b7
047dbd1
%description
047dbd1
A library to allow applications to export a menu into the Unity Menu bar. Based
047dbd1
on KSNI it also works in KDE and will fallback to generic Systray support if
047dbd1
none of those are available.
047dbd1
Eduardo Echeverria 1d125be
%package -n python2-appindicator
Eduardo Echeverria 1d125be
%{?python_provide:%python_provide python2-appindicator}
Eduardo Echeverria 1d125be
Summary:	Python 2 bindings for %{name}
Eduardo Echeverria 1d125be
 
Eduardo Echeverria 1d125be
Requires:	%{name} = %{version}-%{release}
Eduardo Echeverria 1d125be
 
Eduardo Echeverria 1d125be
%description -n python2-appindicator
Eduardo Echeverria 1d125be
This package contains the Python 2 bindings for the appindicator library.
047dbd1
047dbd1
%package devel
047dbd1
Summary:	Development files for %{name}
047dbd1
047dbd1
Requires:	%{name} = %{version}-%{release}
047dbd1
Requires:	dbus-glib-devel
047dbd1
Requires:	libdbusmenu-devel
047dbd1
047dbd1
%description devel
047dbd1
This package contains the development files for the appindicator library.
047dbd1
047dbd1
047dbd1
%package gtk3
047dbd1
Summary:	Application indicators library - GTK 3
047dbd1
047dbd1
%description gtk3
047dbd1
A library to allow applications to export a menu into the Unity Menu bar. Based
047dbd1
on KSNI it also works in KDE and will fallback to generic Systray support if
047dbd1
none of those are available.
047dbd1
047dbd1
This package contains the GTK 3 version of this library.
047dbd1
047dbd1
047dbd1
%package gtk3-devel
047dbd1
Summary:	Development files for %{name}-gtk3
047dbd1
047dbd1
Requires:	%{name}-gtk3 = %{version}-%{release}
047dbd1
Requires:	dbus-glib-devel
047dbd1
Requires:	libdbusmenu-devel
047dbd1
047dbd1
%description gtk3-devel
047dbd1
This package contains the development files for the appindicator-gtk3 library.
047dbd1
047dbd1
047dbd1
%package docs
047dbd1
Summary:	Documentation for %{name} and %{name}-gtk3
047dbd1
047dbd1
BuildArch:	noarch
047dbd1
047dbd1
%description docs
047dbd1
This package contains the documentation for the appindicator and
047dbd1
appindicator-gtk3 libraries.
047dbd1
047dbd1
4f1d69d
%ifarch %{mono_arches}
047dbd1
%package sharp
047dbd1
Summary:	Application indicators library - C#
047dbd1
Eduardo Echeverria e2a2617
Requires: mono-complete
Eduardo Echeverria e2a2617
047dbd1
%description sharp
047dbd1
A library to allow applications to export a menu into the Unity Menu bar. Based
047dbd1
on KSNI it also works in KDE and will fallback to generic Systray support if
047dbd1
none of those are available.
047dbd1
047dbd1
This package contains the Mono C# bindings for this library.
047dbd1
047dbd1
047dbd1
%package sharp-devel
047dbd1
Summary:	Development files for %{name}-sharp
047dbd1
047dbd1
Requires:	%{name}-sharp = %{version}-%{release}
047dbd1
047dbd1
%description sharp-devel
047dbd1
This package contains the development files for the appindicator-sharp library.
4f1d69d
%endif
047dbd1
047dbd1
047dbd1
%prep
047dbd1
%setup -q
047dbd1
%patch0 -p1 -b .monodir
4b89b62
%patch1 -p1 -b .incompatible_pointer_build_fix
8508f7a
047dbd1
ef0b99a
sed -i "s#gmcs#mcs#g" configure.ac
8eacefc
# fix for gtk-doc 1.26
8eacefc
sed -i 's/--nogtkinit//' docs/reference/Makefile.am
8eacefc
gtkdocize --copy
8eacefc
cp -f gtk-doc.make gtk-doc.local.make
4f1d69d
autoreconf -vif
047dbd1
047dbd1
047dbd1
%build
047dbd1
%global _configure ../configure
047dbd1
mkdir build-gtk2 build-gtk3
047dbd1
047dbd1
pushd build-gtk2
8172545
export CFLAGS="%{optflags} $CFLAGS -Wno-deprecated-declarations -Wno-error"
047dbd1
%configure --with-gtk=2 --enable-gtk-doc --disable-static
047dbd1
# Parallel make, crash the build
4f1d69d
make -j1 V=1
047dbd1
popd
047dbd1
047dbd1
pushd build-gtk3
13f999e
export CFLAGS="%{optflags} $CFLAGS -Wno-deprecated-declarations"
047dbd1
%configure --with-gtk=3 --enable-gtk-doc --disable-static
047dbd1
# Parallel make, crash the build
4f1d69d
make -j1 V=1
047dbd1
popd
047dbd1
047dbd1
047dbd1
%install
047dbd1
pushd build-gtk2
047dbd1
make install DESTDIR=%{buildroot}
047dbd1
popd
047dbd1
047dbd1
pushd build-gtk3
047dbd1
make install DESTDIR=%{buildroot}
047dbd1
popd
047dbd1
047dbd1
find %{buildroot} -type f -name '*.la' -delete
047dbd1
047dbd1
a169dc5
%ldconfig_scriptlets
a169dc5
%ldconfig_scriptlets gtk3
047dbd1
047dbd1
047dbd1
%files
047dbd1
%doc AUTHORS README COPYING COPYING.LGPL.2.1
047dbd1
%{_libdir}/libappindicator.so.*
047dbd1
%{_libdir}/girepository-1.0/AppIndicator-0.1.typelib
047dbd1
Eduardo Echeverria 1d125be
%files -n python2-appindicator
Eduardo Echeverria 1d125be
%dir %{python2_sitearch}/appindicator/
Eduardo Echeverria 1d125be
%{python2_sitearch}/appindicator/__init__.py*
Eduardo Echeverria 1d125be
%{python2_sitearch}/appindicator/_appindicator.so
Eduardo Echeverria 1d125be
%dir %{_datadir}/pygtk/
Eduardo Echeverria 1d125be
%dir %{_datadir}/pygtk/2.0/
Eduardo Echeverria 1d125be
%dir %{_datadir}/pygtk/2.0/defs/
Eduardo Echeverria 1d125be
%{_datadir}/pygtk/2.0/defs/appindicator.defs
047dbd1
047dbd1
%files devel
047dbd1
%dir %{_includedir}/libappindicator-0.1/
047dbd1
%dir %{_includedir}/libappindicator-0.1/libappindicator/
047dbd1
%{_includedir}/libappindicator-0.1/libappindicator/*.h
047dbd1
%{_libdir}/libappindicator.so
047dbd1
%{_libdir}/pkgconfig/appindicator-0.1.pc
047dbd1
%{_datadir}/gir-1.0/AppIndicator-0.1.gir
047dbd1
%{_datadir}/vala/vapi/appindicator-0.1.vapi
047dbd1
%{_datadir}/vala/vapi/appindicator-0.1.deps
047dbd1
047dbd1
047dbd1
%files gtk3
047dbd1
%doc AUTHORS README COPYING COPYING.LGPL.2.1
047dbd1
%{_libdir}/libappindicator3.so.*
047dbd1
%{_libdir}/girepository-1.0/AppIndicator3-0.1.typelib
047dbd1
047dbd1
047dbd1
%files gtk3-devel
047dbd1
%dir %{_includedir}/libappindicator3-0.1/
047dbd1
%dir %{_includedir}/libappindicator3-0.1/libappindicator/
047dbd1
%{_includedir}/libappindicator3-0.1/libappindicator/*.h
047dbd1
%{_libdir}/libappindicator3.so
047dbd1
%{_libdir}/pkgconfig/appindicator3-0.1.pc
047dbd1
%{_datadir}/gir-1.0/AppIndicator3-0.1.gir
047dbd1
%{_datadir}/vala/vapi/appindicator3-0.1.vapi
047dbd1
%{_datadir}/vala/vapi/appindicator3-0.1.deps
047dbd1
047dbd1
047dbd1
%files docs
047dbd1
%doc %{_datadir}/gtk-doc/html/libappindicator/
047dbd1
047dbd1
4f1d69d
%ifarch %{mono_arches}
047dbd1
%files sharp
047dbd1
%doc AUTHORS README COPYING COPYING.LGPL.2.1
047dbd1
%dir %{_libdir}/appindicator-sharp-0.1/
047dbd1
%{_libdir}/appindicator-sharp-0.1/appindicator-sharp.dll
047dbd1
%{_libdir}/appindicator-sharp-0.1/appindicator-sharp.dll.config
047dbd1
%{_libdir}/appindicator-sharp-0.1/policy.0.0.appindicator-sharp.config
047dbd1
%{_libdir}/appindicator-sharp-0.1/policy.0.0.appindicator-sharp.dll
047dbd1
%{_libdir}/appindicator-sharp-0.1/policy.0.1.appindicator-sharp.config
047dbd1
%{_libdir}/appindicator-sharp-0.1/policy.0.1.appindicator-sharp.dll
047dbd1
%dir %{_prefix}/lib/mono/appindicator-sharp/
047dbd1
%{_prefix}/lib/mono/appindicator-sharp/appindicator-sharp.dll
047dbd1
%{_prefix}/lib/mono/appindicator-sharp/policy.0.0.appindicator-sharp.dll
047dbd1
%dir %{_prefix}/lib/mono/gac/appindicator-sharp/
047dbd1
%dir %{_prefix}/lib/mono/gac/appindicator-sharp/*/
047dbd1
%{_prefix}/lib/mono/gac/appindicator-sharp/*/appindicator-sharp.dll
047dbd1
%{_prefix}/lib/mono/gac/appindicator-sharp/*/appindicator-sharp.dll.config
047dbd1
%dir %{_prefix}/lib/mono/gac/policy.0.0.appindicator-sharp/
047dbd1
%dir %{_prefix}/lib/mono/gac/policy.0.0.appindicator-sharp/*/
047dbd1
%{_prefix}/lib/mono/gac/policy.0.0.appindicator-sharp/*/policy.0.0.appindicator-sharp.dll
047dbd1
%{_prefix}/lib/mono/gac/policy.0.0.appindicator-sharp/*/policy.0.0.appindicator-sharp.config
047dbd1
047dbd1
047dbd1
%files sharp-devel
047dbd1
%{_libdir}/pkgconfig/appindicator-sharp-0.1.pc
047dbd1
4f1d69d
%endif
047dbd1
047dbd1
%changelog
Eduardo Echeverria 1d125be
* Sun May 03 2020 Eduardo Echeverria <echevemaster@gmail.com> - 12-10-0-29
Eduardo Echeverria 1d125be
- Added the subpackage python2 package in F31
Eduardo Echeverria 1d125be
 
Eduardo Echeverria 1d125be
* Sun Apr 12 2020 Eduardo Echeverria <echevemaster@gmail.com> - 12-10-0-28
Eduardo Echeverria e2a2617
- Added mono to sharp sub-package 
Eduardo Echeverria e2a2617
de71e63
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 12.10.0-27
de71e63
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
de71e63
8508f7a
* Wed Sep 04 2019 Miro Hrončok <mhroncok@redhat.com> - 12.10.0-26
8508f7a
- Subpackage python2-appindicator has been removed
8508f7a
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
8508f7a
3a7056a
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 12.10.0-25
3a7056a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
3a7056a
2a88f2c
* Mon Feb 04 2019 Kalev Lember <klember@redhat.com> - 12.10.0-24
2a88f2c
- Update BRs for vala packaging changes
2a88f2c
791c0c4
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 12.10.0-23
791c0c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
791c0c4
39a9b7c
* Thu Jan 24 2019 Tomáš Popela <tpopela@redhat.com> - 12.10.0-22
39a9b7c
- Fix the build due to python_sitearch usage
39a9b7c
697c058
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 12.10.0-21
697c058
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
697c058
4b89b62
* Tue Apr 10 2018 Tomas Popela <tpopela@redhat.com> - 12.10.0-20
4b89b62
- Fix the build on F28+ with new glib2
4b89b62
a08f19e
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 12.10.0-19
a08f19e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a08f19e
a169dc5
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 12.10.0-18
a169dc5
- Switch to %%ldconfig_scriptlets
a169dc5
e5622df
* Sun Dec 17 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 12.10.0-17
e5622df
- Python 2 binary package renamed to python2-appindicator
e5622df
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
e5622df
a7f76c8
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 12.10.0-16
a7f76c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
a7f76c8
7ad2d8c
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 12.10.0-15
7ad2d8c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
7ad2d8c
7920251
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 12.10.0-14
7920251
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
7920251
e0cc1fe
* Thu Oct 13 2016 Peter Robinson <pbrobinson@fedoraproject.org> 12.10.0-13
e0cc1fe
- rebuild - mono on aarch64
e0cc1fe
1c06097
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 12.10.0-12
1c06097
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
1c06097
569ae28
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 12.10.0-11
569ae28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
569ae28
d1c7cf4
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 12.10.0-10
d1c7cf4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d1c7cf4
2754dfb
* Mon May 18 2015 Peter Robinson <pbrobinson@fedoraproject.org> 12.10.0-9
2754dfb
- Rebuild (mono4)
2754dfb
4f1d69d
* Sun Jan  4 2015 Peter Robinson <pbrobinson@fedoraproject.org> 12.10.0-8
4f1d69d
- Rather than exclude the entire library from non mono arches just don't build the bindings
4f1d69d
13f999e
* Mon Dec 29 2014 Eduardo Echeverria  <echevemaster@gmail.com> - 12.10.0-7
13f999e
- Added workaround -Wno-deprecated-declarations for fix FTBFS
13f999e
bae6dc0
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 12.10.0-6
bae6dc0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
bae6dc0
5abec39
* Tue Jul 22 2014 Kalev Lember <kalevlember@gmail.com> - 12.10.0-5
5abec39
- Rebuilt for gobject-introspection 1.41.4
5abec39
64a046f
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 12.10.0-4
64a046f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
64a046f
6c92a35
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 12.10.0-3
6c92a35
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
6c92a35
4a0d3b7
* Thu Jun 13 2013 Dan Horák <dan[at]danny.cz> - 12.10.0-2
4a0d3b7
- set ExclusiveArch
4a0d3b7
047dbd1
* Fri May 31 2013 Eduardo Echeverria  <echevemaster@gmail.com> - 12.10.0-1
047dbd1
- Initial Packaging