dd5e8ef
%if 0%{?rhel} >= 9
dd5e8ef
%bcond_with mono
dd5e8ef
%else
dd5e8ef
%bcond_without mono
dd5e8ef
%endif
dd5e8ef
047dbd1
Name:		libappindicator
Timotheus Pokorra 9f1c953
Version:	12.10.1
3ff1d64
Release:	4%{?dist}
047dbd1
Summary:	Application indicators library
047dbd1
047dbd1
License:	LGPLv2 and LGPLv3
047dbd1
URL:		https://launchpad.net/libappindicator
Timotheus Pokorra 9f1c953
# see https://launchpad.net/ubuntu/+source/libappindicator/12.10.1+20.10.20200706.1-0ubuntu1
Timotheus Pokorra 9f1c953
Source0:	https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/%{name}/%{version}+20.10.20200706.1-0ubuntu1/%{name}_%{version}+20.10.20200706.1.orig.tar.gz
047dbd1
Patch0:		0001_Fix_mono_dir.patch
047dbd1
1383fc1
BuildRequires: make
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
dd5e8ef
%if %{with mono}
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
dd5e8ef
%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
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
dd5e8ef
%if %{with mono}
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
dd5e8ef
%endif
047dbd1
047dbd1
047dbd1
%prep
Timotheus Pokorra 9f1c953
%setup -q -c
Software Management Team 8cc140d
%patch -P0 -p1 -b .monodir
8508f7a
047dbd1
Timotheus Pokorra 9f1c953
sed -i "s#mono-csc#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
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
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
dd5e8ef
%if %{with mono}
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
dd5e8ef
%endif
047dbd1
047dbd1
%changelog
3ff1d64
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 12.10.1-4
3ff1d64
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
3ff1d64
4d81719
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 12.10.1-3
4d81719
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
4d81719
8beb17d
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 12.10.1-2
8beb17d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
8beb17d
6227a75
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 12.10.1-1
6227a75
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
6227a75
Timotheus Pokorra 9f1c953
* Mon Nov 07 2022 Timotheus Pokorra <timotheus.pokorra@solidcharity.com> - 12.10.1-0
Timotheus Pokorra 9f1c953
- Upgrade to 12.10.1 to fix bug 2135815
Timotheus Pokorra 9f1c953
43b9ae8
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 12.10.0-34
43b9ae8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
43b9ae8
dd5e8ef
* Sun Jun 26 2022 Neal Gompa <ngompa@fedoraproject.org> - 12.10.0-33
dd5e8ef
- Disable Mono bindings for RHEL 9+ for now
dd5e8ef
287b099
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 12.10.0-32
287b099
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
287b099
d30b7e0
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 12.10.0-31
d30b7e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
d30b7e0
3ed8deb
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 12.10.0-30
3ed8deb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
3ed8deb
7bfd7bc
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 12.10.0-29
7bfd7bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
7bfd7bc
Timotheus Pokorra f342aae
* 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