| 1 | Summary: allow applications to export a menu into the Unity Menu bar |
|---|
| 2 | Name: libappindicator |
|---|
| 3 | Version: 12.10.0 |
|---|
| 4 | Release: 2%{?_dist_release} |
|---|
| 5 | Group: system |
|---|
| 6 | Vendor: Project Vine |
|---|
| 7 | Distribution: Vine Linux |
|---|
| 8 | Packager: iwaim |
|---|
| 9 | |
|---|
| 10 | License: LGPLv3 |
|---|
| 11 | URL: https://launchpad.net/libappindicator |
|---|
| 12 | Source0: %{name}-%{version}.tar.gz |
|---|
| 13 | Patch0: 0001_Fix_mono_dir.patch |
|---|
| 14 | # https://bazaar.launchpad.net/~indicator-applet-developers/libappindicator/trunk.16.10/revision/285 |
|---|
| 15 | Patch1: incompatible_pointer_build_fix.patch |
|---|
| 16 | Patch2: nopython.patch |
|---|
| 17 | |
|---|
| 18 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
|---|
| 19 | |
|---|
| 20 | BuildRequires: gtk3-devel >= 2.91 |
|---|
| 21 | BuildRequires: glib2-devel >= 2.26 |
|---|
| 22 | BuildRequires: libindicator-devel >= 0.4.93 |
|---|
| 23 | |
|---|
| 24 | BuildRequires: autoconf |
|---|
| 25 | BuildRequires: automake |
|---|
| 26 | BuildRequires: gtk-doc |
|---|
| 27 | BuildRequires: vala |
|---|
| 28 | BuildRequires: dbus-glib-devel |
|---|
| 29 | BuildRequires: libdbusmenu-devel |
|---|
| 30 | BuildRequires: libdbusmenu-gtk-devel |
|---|
| 31 | BuildRequires: gobject-introspection-devel |
|---|
| 32 | BuildRequires: gtk3-devel |
|---|
| 33 | BuildRequires: libindicator-devel |
|---|
| 34 | |
|---|
| 35 | %description |
|---|
| 36 | A library to allow applications to export a menu into the Unity Menu bar. |
|---|
| 37 | Based on KSNI it also works in KDE and will fallback to generic Systray |
|---|
| 38 | support if none of those are available. |
|---|
| 39 | |
|---|
| 40 | |
|---|
| 41 | %package devel |
|---|
| 42 | Summary: Header files and libraries for developing apps which will use %{name} |
|---|
| 43 | Group: programming |
|---|
| 44 | Requires: %{name} = %{version}-%{release} |
|---|
| 45 | |
|---|
| 46 | %description devel |
|---|
| 47 | The %{name}-devel package contains the header files and libraries. |
|---|
| 48 | |
|---|
| 49 | |
|---|
| 50 | %debug_package |
|---|
| 51 | |
|---|
| 52 | |
|---|
| 53 | %prep |
|---|
| 54 | %setup -q |
|---|
| 55 | %patch0 -p1 -b .monodir |
|---|
| 56 | %patch1 -p1 -b .incompatible_pointer_build_fix |
|---|
| 57 | %patch2 -p1 -b .nopython |
|---|
| 58 | |
|---|
| 59 | sed -i "s#gmcs#mcs#g" configure.ac |
|---|
| 60 | # fix for gtk-doc 1.26 |
|---|
| 61 | sed -i 's/--nogtkinit//' docs/reference/Makefile.am |
|---|
| 62 | gtkdocize --copy |
|---|
| 63 | cp -f gtk-doc.make gtk-doc.local.make |
|---|
| 64 | autoreconf -vif |
|---|
| 65 | |
|---|
| 66 | |
|---|
| 67 | %build |
|---|
| 68 | %global _configure ./configure |
|---|
| 69 | export CFLAGS="%{optflags} $CFLAGS -Wno-deprecated-declarations -Wno-error" |
|---|
| 70 | %configure --with-gtk=3 |
|---|
| 71 | make V=1 |
|---|
| 72 | |
|---|
| 73 | |
|---|
| 74 | %install |
|---|
| 75 | rm -rf $RPM_BUILD_ROOT |
|---|
| 76 | %makeinstall |
|---|
| 77 | |
|---|
| 78 | %__rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}3.{a,la} |
|---|
| 79 | |
|---|
| 80 | %clean |
|---|
| 81 | rm -rf $RPM_BUILD_ROOT |
|---|
| 82 | |
|---|
| 83 | |
|---|
| 84 | %ldconfig_scriptlets |
|---|
| 85 | |
|---|
| 86 | |
|---|
| 87 | %files |
|---|
| 88 | %defattr(-,root,root,-) |
|---|
| 89 | %license COPYING |
|---|
| 90 | %doc AUTHORS ChangeLog NEWS README |
|---|
| 91 | %{_libdir}/girepository-1.0/AppIndicator3-0.1.typelib |
|---|
| 92 | %{_libdir}/%{name}3.so.* |
|---|
| 93 | %{_datadir}/gtk-doc/html/%{name} |
|---|
| 94 | |
|---|
| 95 | %files devel |
|---|
| 96 | %defattr(-,root,root,-) |
|---|
| 97 | %{_includedir}/%{name}3-0.1 |
|---|
| 98 | %{_libdir}/%{name}3.so |
|---|
| 99 | %{_libdir}/pkgconfig/appindicator3-0.1.pc |
|---|
| 100 | %{_datadir}/gir-1.0/AppIndicator3-0.1.gir |
|---|
| 101 | %dir %{_datadir}/vala |
|---|
| 102 | %dir %{_datadir}/vala/vapi |
|---|
| 103 | %{_datadir}/vala/vapi/appindicator3-0.1.vapi |
|---|
| 104 | %{_datadir}/vala/vapi/appindicator3-0.1.deps |
|---|
| 105 | |
|---|
| 106 | |
|---|
| 107 | %changelog |
|---|
| 108 | * Fri Feb 26 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 12.10.0-2 |
|---|
| 109 | - rebuilt with current environment. |
|---|
| 110 | |
|---|
| 111 | * Sun May 20 2018 IWAI, Masaharu <iwaim.sub@gmail.com> 12.10.0-1 |
|---|
| 112 | - Initial build. |
|---|