1 |
%define major 1 |
2 |
%define girmajor 0.1 |
3 |
%define libname %mklibname appindicator 3 %{major} |
4 |
%define libdevel %mklibname appindicator3 -d |
5 |
%define girname %mklibname appindicator3-gir %{girmajor} |
6 |
|
7 |
Name: libappindicator |
8 |
Summary: A library to allow applications to export a menu into the Unity Menu bar |
9 |
Group: System/Libraries |
10 |
Version: 12.10.0 |
11 |
Release: %mkrel 5 |
12 |
License: GPLv3 |
13 |
URL: http://launchpad.net/libappindicator |
14 |
Source0: http://launchpad.net/libappindicator/12.10/%{version}/+download/%{name}-%{version}.tar.gz |
15 |
Patch0: libappindicator-mono-nunit-fix.patch |
16 |
Patch1: libappindicator-0.4.92-configure.patch |
17 |
BuildRequires: gnome-common |
18 |
BuildRequires: gtk-doc |
19 |
BuildRequires: gtk-doc-mkpdf |
20 |
BuildRequires: intltool |
21 |
BuildRequires: perl-XML-SAX |
22 |
BuildRequires: vala-tools |
23 |
BuildRequires: vala-devel |
24 |
BuildRequires: pkgconfig(dbus-1) |
25 |
BuildRequires: pkgconfig(dbus-glib-1) |
26 |
BuildRequires: pkgconfig(dbusmenu-gtk3-0.4) >= 0.5.90 |
27 |
BuildRequires: pkgconfig(gapi-2.0) |
28 |
BuildRequires: pkgconfig(gobject-introspection-1.0) |
29 |
BuildRequires: pkgconfig(gnome-doc-utils) |
30 |
BuildRequires: pkgconfig(gtk+-3.0) |
31 |
BuildRequires: pkgconfig(gtk-sharp-2.0) |
32 |
BuildRequires: pkgconfig(indicate-0.6) |
33 |
BuildRequires: pkgconfig(indicator3-0.4) >= 0.4.93 |
34 |
BuildRequires: pkgconfig(libpng) |
35 |
BuildRequires: pkgconfig(mono) |
36 |
BuildRequires: pkgconfig(mono-nunit) |
37 |
BuildRequires: pkgconfig(pygobject-2.0) |
38 |
BuildRequires: pkgconfig(pygtk-2.0) |
39 |
|
40 |
%description |
41 |
A library to allow applications to export a menu into the Unity Menu bar. |
42 |
Based on KSNI, it also works in KDE, and will fallback to generic Systray |
43 |
support, if none of those are available. |
44 |
|
45 |
#-------------------------------------------------------------------- |
46 |
%package -n %{libname} |
47 |
Summary: libappindicator library |
48 |
Group: System/Libraries |
49 |
Obsoletes: %{_lib}appindicator1 < 12.10.0-5 |
50 |
|
51 |
%description -n %{libname} |
52 |
Library for libappindicator. |
53 |
|
54 |
%files -n %{libname} |
55 |
%{_libdir}/libappindicator3.so.%{major} |
56 |
%{_libdir}/libappindicator3.so.%{major}.* |
57 |
%{_libdir}/cli/appindicator-sharp-0.1/ |
58 |
|
59 |
#-------------------------------------------------------------------- |
60 |
%package -n %{girname} |
61 |
Summary: GObject Introspection interface description for %{name}3 |
62 |
Group: System/Libraries |
63 |
Conflicts: %{_lib}appindicator1 < 12.10.0-5 |
64 |
|
65 |
%description -n %{girname} |
66 |
GObject Introspection interface description for %{name}3. |
67 |
|
68 |
%files -n %{girname} |
69 |
%{_libdir}/girepository-1.0/AppIndicator3-%{girmajor}.typelib |
70 |
|
71 |
#-------------------------------------------------------------------- |
72 |
%package -n %{name}-sharp |
73 |
Summary: libappindicator tool |
74 |
Group: System/Libraries |
75 |
|
76 |
%description -n %{name}-sharp |
77 |
Tool to load libappindicator plugins. |
78 |
|
79 |
%files -n %{name}-sharp |
80 |
%{_usr}/lib/mono/appindicator-sharp/ |
81 |
%{_usr}/lib/mono/gac/appindicator-sharp/ |
82 |
%{_usr}/lib/mono/gac/policy.0.0.appindicator-sharp/ |
83 |
|
84 |
#-------------------------------------------------------------------- |
85 |
%package -n %{libdevel} |
86 |
Summary: libappindicator development files |
87 |
Group: Development/GNOME and GTK+ |
88 |
Requires: %{libname} = %{version}-%{release} |
89 |
Provides: %{name}-devel = %{version}-%{release} |
90 |
Obsoletes: %{_lib}appindicator-devel < 12.10.0-5 |
91 |
|
92 |
%description -n %{libdevel} |
93 |
Development files needed by libappindicator. |
94 |
|
95 |
%files -n %{libdevel} |
96 |
%doc %{_datadir}/gtk-doc/html/libappindicator/ |
97 |
%{_includedir}/libappindicator3-0.1/ |
98 |
%{_libdir}/libappindicator3.so |
99 |
%{_libdir}/pkgconfig/*.pc |
100 |
%{_datadir}/gir-1.0/AppIndicator3-0.1.gir |
101 |
%{_datadir}/vala/vapi/appindicator3-0.1.* |
102 |
|
103 |
#-------------------------------------------------------------------- |
104 |
%prep |
105 |
%setup -q |
106 |
%apply_patches |
107 |
|
108 |
%build |
109 |
autoreconf -vfi |
110 |
%configure2_5x \ |
111 |
--with-gtk=3 \ |
112 |
--enable-gtk-doc \ |
113 |
--disable-static |
114 |
# Parallel make, crash the build |
115 |
make |
116 |
|
117 |
%install |
118 |
%makeinstall_std |
119 |
|
120 |
# Clean .la files |
121 |
find %{buildroot} -name '*.la' -delete |