| 1 | Name: libindicate |
|---|
| 2 | Summary: A small library for applications to raise "flags" on DBus |
|---|
| 3 | Version: 0.4.4 |
|---|
| 4 | Release: 2%{?_dist_release} |
|---|
| 5 | |
|---|
| 6 | Group: System Environment/Libraries |
|---|
| 7 | License: LGPLv2+ |
|---|
| 8 | URL: https://launchpad.net/libindicate |
|---|
| 9 | |
|---|
| 10 | Source0: http://launchpad.net/%{name}/0.4/%{versioin}/+download/%{name}-%{version}.tar.gz |
|---|
| 11 | |
|---|
| 12 | Patch0: libindicate-0.4.4-disable-build-of-tests-examples.patch |
|---|
| 13 | |
|---|
| 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 15 | BuildRequires: pkgconfig |
|---|
| 16 | BuildRequires: glib2-devel >= 2.18.0 |
|---|
| 17 | #BuildRequires: gobject-introspection-devel |
|---|
| 18 | BuildRequires: dbus-glib-devel >= 0.76 |
|---|
| 19 | BuildRequires: dbusmenu-glib-devel |
|---|
| 20 | BuildRequires: gtk-sharp2 |
|---|
| 21 | BuildRequires: gtk-sharp2-gapi |
|---|
| 22 | BuildRequires: python-devel |
|---|
| 23 | BuildRequires: pygtk2-devel |
|---|
| 24 | BuildRequires: mono-devel |
|---|
| 25 | BuildRequires: gnome-doc-utils >= 0.3.2 |
|---|
| 26 | |
|---|
| 27 | %define mono_dir %{_prefix}/lib/mono |
|---|
| 28 | |
|---|
| 29 | %description |
|---|
| 30 | Libindicate is a small library for applications to raise "flags" on |
|---|
| 31 | DBus for other components of the desktop to pick up and visualize. |
|---|
| 32 | Currently used by the messaging indicator. |
|---|
| 33 | |
|---|
| 34 | %package devel |
|---|
| 35 | Summary: Developer files for %{name} |
|---|
| 36 | Summary(ja): %{name} の開発用ファイル |
|---|
| 37 | Group: Development/Libraries |
|---|
| 38 | Requires: %{name} = %{version}-%{release} |
|---|
| 39 | |
|---|
| 40 | %description devel |
|---|
| 41 | %{summary}. |
|---|
| 42 | |
|---|
| 43 | %package gtk |
|---|
| 44 | Summary: GTK+ bindings for %{name} |
|---|
| 45 | Group: System Environment/Libraries |
|---|
| 46 | Requires: %{name} = %{version}-%{release} |
|---|
| 47 | |
|---|
| 48 | %description gtk |
|---|
| 49 | %{summary}. |
|---|
| 50 | |
|---|
| 51 | %package gtk-devel |
|---|
| 52 | Summary: Developer files for libindicate-gtk |
|---|
| 53 | Summary(ja): libindicate-gtk の開発用ファイル |
|---|
| 54 | Group: Development/Libraries |
|---|
| 55 | Requires: %{name}-gtk = %{version}-%{release} |
|---|
| 56 | |
|---|
| 57 | %description gtk-devel |
|---|
| 58 | %{summary}. |
|---|
| 59 | |
|---|
| 60 | %package -n python-indicate |
|---|
| 61 | Summary: Python bindings for %{name} |
|---|
| 62 | Group: Development/Libraries |
|---|
| 63 | Requires: %{name} = %{version}-%{release} |
|---|
| 64 | Requires: pygtk2 |
|---|
| 65 | Provides: %{name}-python = %{version}-%{release} |
|---|
| 66 | |
|---|
| 67 | %description -n python-indicate |
|---|
| 68 | %{summary}. |
|---|
| 69 | |
|---|
| 70 | %package sharp |
|---|
| 71 | Summary: C# bindings for %{name} |
|---|
| 72 | Group: System Environment/Libraries |
|---|
| 73 | #Requires: %{name} = %{version}-%{release} |
|---|
| 74 | |
|---|
| 75 | %description sharp |
|---|
| 76 | %{summary}. |
|---|
| 77 | |
|---|
| 78 | %prep |
|---|
| 79 | %setup -q |
|---|
| 80 | %patch0 -p1 -b .disable_build |
|---|
| 81 | |
|---|
| 82 | %build |
|---|
| 83 | %configure \ |
|---|
| 84 | --disable-static \ |
|---|
| 85 | --enable-silent-rules \ |
|---|
| 86 | --enable-introspection=no \ |
|---|
| 87 | --enable-gtk-doc-html |
|---|
| 88 | |
|---|
| 89 | sed -i -e "s|-lpyglib-2\.0-python2\.6|-lpyglib-2\.0-python|" \ |
|---|
| 90 | bindings/python/Makefile |
|---|
| 91 | |
|---|
| 92 | make %{?_smp_mflags} |
|---|
| 93 | |
|---|
| 94 | %install |
|---|
| 95 | rm -rf $RPM_BUILD_ROOT |
|---|
| 96 | |
|---|
| 97 | make install DESTDIR=$RPM_BUILD_ROOT |
|---|
| 98 | |
|---|
| 99 | rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la |
|---|
| 100 | rm -f $RPM_BUILD_ROOT%{_libdir}/python?.?/site-packages/indicate/_indicate.la |
|---|
| 101 | rm -f $RPM_BUILD_ROOT%{_libexecdir}/* |
|---|
| 102 | |
|---|
| 103 | rm -rf $RPM_BUILD_ROOT%{_docdir}/libindicate/* |
|---|
| 104 | |
|---|
| 105 | %clean |
|---|
| 106 | rm -rf $RPM_BUILD_ROOT |
|---|
| 107 | |
|---|
| 108 | |
|---|
| 109 | %post -p /sbin/ldconfig |
|---|
| 110 | |
|---|
| 111 | %postun -p /sbin/ldconfig |
|---|
| 112 | |
|---|
| 113 | %post gtk -p /sbin/ldconfig |
|---|
| 114 | |
|---|
| 115 | %postun gtk -p /sbin/ldconfig |
|---|
| 116 | |
|---|
| 117 | %files |
|---|
| 118 | %defattr(-,root,root,-) |
|---|
| 119 | %doc AUTHORS ChangeLog COPYING |
|---|
| 120 | %doc _docs/* |
|---|
| 121 | %{_libdir}/libindicate.so.* |
|---|
| 122 | |
|---|
| 123 | %files devel |
|---|
| 124 | %defattr(-,root,root,-) |
|---|
| 125 | %{_includedir}/libindicate-0.2/libindicate |
|---|
| 126 | %{_libdir}/libindicate.so |
|---|
| 127 | %{_libdir}/pkgconfig/indicate.pc |
|---|
| 128 | %{_datadir}/gtk-doc/html/libindicate |
|---|
| 129 | |
|---|
| 130 | %files gtk |
|---|
| 131 | %defattr(-,root,root,-) |
|---|
| 132 | %{_libdir}/libindicate-gtk.so.* |
|---|
| 133 | |
|---|
| 134 | %files gtk-devel |
|---|
| 135 | %defattr(-,root,root,-) |
|---|
| 136 | %{_includedir}/libindicate-0.2/libindicate-gtk |
|---|
| 137 | %{_libdir}/libindicate-gtk.so |
|---|
| 138 | %{_libdir}/pkgconfig/indicate-gtk.pc |
|---|
| 139 | %{_datadir}/gtk-doc/html/libindicate |
|---|
| 140 | |
|---|
| 141 | %files -n python-indicate |
|---|
| 142 | %defattr(-,root,root,-) |
|---|
| 143 | %{_libdir}/python?.?/site-packages/indicate |
|---|
| 144 | %{_datadir}/pygtk/2.0/defs/indicate.defs |
|---|
| 145 | |
|---|
| 146 | %files sharp |
|---|
| 147 | %defattr(-,root,root,-) |
|---|
| 148 | %{_libdir}/indicate-gtk-sharp-0.1 |
|---|
| 149 | %{_libdir}/indicate-sharp-0.1 |
|---|
| 150 | %{mono_dir}/gac/indicate-gtk-sharp |
|---|
| 151 | %{mono_dir}/gac/indicate-sharp |
|---|
| 152 | %{mono_dir}/indicate-gtk |
|---|
| 153 | %{mono_dir}/indicate |
|---|
| 154 | %{_libdir}/pkgconfig/indicate*sharp-0.1.pc |
|---|
| 155 | |
|---|
| 156 | %changelog |
|---|
| 157 | * Sun Feb 27 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.4-2 |
|---|
| 158 | - add BuildRequires: mono-devel |
|---|
| 159 | - add Patch0 (libindicate-0.4.4-disable-build-of-tests-examples.patch) |
|---|
| 160 | |
|---|
| 161 | * Fri Feb 18 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.4.4-1 |
|---|
| 162 | - Initial build for Vine Linux |
|---|