| 1 | Name: libindicate |
|---|
| 2 | Summary: A small library for applications to raise "flags" on DBus |
|---|
| 3 | Version: 12.10.1 |
|---|
| 4 | Release: 1%{?_dist_release} |
|---|
| 5 | |
|---|
| 6 | Group: System Environment/Libraries |
|---|
| 7 | License: LGPLv2+ |
|---|
| 8 | URL: https://launchpad.net/libindicate |
|---|
| 9 | |
|---|
| 10 | Source0: https://launchpad.net/%{name}/12.10/%{version}/+download/%{name}-%{version}.tar.gz |
|---|
| 11 | |
|---|
| 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 13 | BuildRequires: dbus-glib-devel >= 0.76 |
|---|
| 14 | BuildRequires: glib2-devel >= 2.18.0 |
|---|
| 15 | BuildRequires: gnome-doc-utils >= 0.3.2 |
|---|
| 16 | BuildRequires: gobject-introspection-devel >= 0.6.7 |
|---|
| 17 | BuildRequires: gtk-sharp2-devel |
|---|
| 18 | BuildRequires: gtk-sharp2-gapi |
|---|
| 19 | BuildRequires: libdbusmenu-devel >= 0.3.97 |
|---|
| 20 | BuildRequires: pkgconfig |
|---|
| 21 | BuildRequires: python-devel |
|---|
| 22 | BuildRequires: pygtk2-devel |
|---|
| 23 | BuildRequires: mono-devel |
|---|
| 24 | BuildRequires: vala-devel |
|---|
| 25 | BuildRequires: vala-tools |
|---|
| 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 | Summary(ja): %{name} の GTK+ バインディング |
|---|
| 46 | Group: System Environment/Libraries |
|---|
| 47 | Requires: %{name} = %{version}-%{release} |
|---|
| 48 | |
|---|
| 49 | %description gtk |
|---|
| 50 | %{summary}. |
|---|
| 51 | |
|---|
| 52 | %package gtk-devel |
|---|
| 53 | Summary: Developer files for libindicate-gtk |
|---|
| 54 | Summary(ja): libindicate-gtk の開発用ファイル |
|---|
| 55 | Group: Development/Libraries |
|---|
| 56 | Requires: %{name}-gtk = %{version}-%{release} |
|---|
| 57 | |
|---|
| 58 | %description gtk-devel |
|---|
| 59 | %{summary}. |
|---|
| 60 | |
|---|
| 61 | %package -n python-indicate |
|---|
| 62 | Summary: Python bindings for %{name} |
|---|
| 63 | Summary(ja): %{name} の Python バインディング |
|---|
| 64 | Group: System Environment/Libraries |
|---|
| 65 | Requires: %{name} = %{version}-%{release} |
|---|
| 66 | Requires: pygtk2 |
|---|
| 67 | Provides: %{name}-python = %{version}-%{release} |
|---|
| 68 | |
|---|
| 69 | %description -n python-indicate |
|---|
| 70 | %{summary}. |
|---|
| 71 | |
|---|
| 72 | %package sharp |
|---|
| 73 | Summary: C# bindings for %{name} |
|---|
| 74 | Summary(ja): %{name} の C# バインディング |
|---|
| 75 | Group: System Environment/Libraries |
|---|
| 76 | #Requires: %{name} = %{version}-%{release} |
|---|
| 77 | |
|---|
| 78 | %description sharp |
|---|
| 79 | %{summary}. |
|---|
| 80 | |
|---|
| 81 | %package doc |
|---|
| 82 | Summary: Document files for %{name} |
|---|
| 83 | Summary(ja): %{name} のドキュメント |
|---|
| 84 | BuildArch: noarch |
|---|
| 85 | Group: Documentation |
|---|
| 86 | |
|---|
| 87 | %description doc |
|---|
| 88 | The %{name}-doc package contains documents for |
|---|
| 89 | developing applications that use %{name}. |
|---|
| 90 | |
|---|
| 91 | |
|---|
| 92 | %prep |
|---|
| 93 | %setup -q |
|---|
| 94 | |
|---|
| 95 | %build |
|---|
| 96 | export CFLAGS="%{optflags} -Wno-error=deprecated-declarations" |
|---|
| 97 | %configure \ |
|---|
| 98 | --disable-static \ |
|---|
| 99 | --disable-scrollkeeper \ |
|---|
| 100 | --disable-tests \ |
|---|
| 101 | --enable-silent-rules \ |
|---|
| 102 | --with-gtk=2 |
|---|
| 103 | |
|---|
| 104 | sed -i -e "s|-lpyglib-2\.0-python2\.7|-lpyglib-2\.0-python|" \ |
|---|
| 105 | bindings/python/Makefile |
|---|
| 106 | |
|---|
| 107 | # parallel build fails |
|---|
| 108 | make |
|---|
| 109 | |
|---|
| 110 | %install |
|---|
| 111 | rm -rf $RPM_BUILD_ROOT |
|---|
| 112 | |
|---|
| 113 | make install DESTDIR=$RPM_BUILD_ROOT |
|---|
| 114 | |
|---|
| 115 | rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la |
|---|
| 116 | rm -f $RPM_BUILD_ROOT%{_libdir}/python?.?/site-packages/indicate/_indicate.la |
|---|
| 117 | rm -f $RPM_BUILD_ROOT%{_libexecdir}/* |
|---|
| 118 | |
|---|
| 119 | rm -rf $RPM_BUILD_ROOT%{_docdir}/libindicate/* |
|---|
| 120 | |
|---|
| 121 | %clean |
|---|
| 122 | rm -rf $RPM_BUILD_ROOT |
|---|
| 123 | |
|---|
| 124 | |
|---|
| 125 | %post -p /sbin/ldconfig |
|---|
| 126 | |
|---|
| 127 | %postun -p /sbin/ldconfig |
|---|
| 128 | |
|---|
| 129 | %post gtk -p /sbin/ldconfig |
|---|
| 130 | |
|---|
| 131 | %postun gtk -p /sbin/ldconfig |
|---|
| 132 | |
|---|
| 133 | %files |
|---|
| 134 | %defattr(-,root,root,-) |
|---|
| 135 | %doc AUTHORS COPYING COPYING.LGPL.2.1 NEWS |
|---|
| 136 | %{_libdir}/libindicate.so.* |
|---|
| 137 | %{_libdir}/girepository-1.0/Indicate-0.7.typelib |
|---|
| 138 | |
|---|
| 139 | %files devel |
|---|
| 140 | %defattr(-,root,root,-) |
|---|
| 141 | %{_includedir}/libindicate-0.7/libindicate |
|---|
| 142 | %{_libdir}/libindicate.so |
|---|
| 143 | %{_libdir}/pkgconfig/indicate-0.7.pc |
|---|
| 144 | %{_datadir}/gir-1.0/Indicate-0.7.gir |
|---|
| 145 | %{_datadir}/gtk-doc/html/libindicate |
|---|
| 146 | %{_datadir}/vala/vapi/Indicate-0.7.vapi |
|---|
| 147 | |
|---|
| 148 | %files gtk |
|---|
| 149 | %defattr(-,root,root,-) |
|---|
| 150 | %{_libdir}/libindicate-gtk.so.* |
|---|
| 151 | %{_libdir}/girepository-1.0/IndicateGtk-0.7.typelib |
|---|
| 152 | |
|---|
| 153 | %files gtk-devel |
|---|
| 154 | %defattr(-,root,root,-) |
|---|
| 155 | %{_includedir}/libindicate-gtk-0.7/libindicate-gtk |
|---|
| 156 | %{_libdir}/libindicate-gtk.so |
|---|
| 157 | %{_libdir}/pkgconfig/indicate-gtk-0.7.pc |
|---|
| 158 | %{_datadir}/gir-1.0/IndicateGtk-0.7.gir |
|---|
| 159 | %{_datadir}/vala/vapi/IndicateGtk-0.7.vapi |
|---|
| 160 | |
|---|
| 161 | %files -n python-indicate |
|---|
| 162 | %defattr(-,root,root,-) |
|---|
| 163 | %{_libdir}/python?.?/site-packages/indicate |
|---|
| 164 | %{_datadir}/pygtk/2.0/defs/indicate.defs |
|---|
| 165 | |
|---|
| 166 | %files sharp |
|---|
| 167 | %defattr(-,root,root,-) |
|---|
| 168 | %{_libdir}/indicate-gtk-sharp-0.1 |
|---|
| 169 | %{_libdir}/indicate-sharp-0.1 |
|---|
| 170 | %{mono_dir}/gac/indicate-gtk-sharp |
|---|
| 171 | %{mono_dir}/gac/indicate-sharp |
|---|
| 172 | %{mono_dir}/indicate-gtk |
|---|
| 173 | %{mono_dir}/indicate |
|---|
| 174 | %{_libdir}/pkgconfig/indicate*sharp-0.1.pc |
|---|
| 175 | |
|---|
| 176 | %files doc |
|---|
| 177 | %doc AUTHORS COPYING COPYING.LGPL.2.1 NEWS |
|---|
| 178 | %dir %{_datadir}/gtk-doc/html/libindicate |
|---|
| 179 | %{_datadir}/gtk-doc/html/libindicate/* |
|---|
| 180 | |
|---|
| 181 | |
|---|
| 182 | %changelog |
|---|
| 183 | * Mon Nov 3 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 12.10.1-1 |
|---|
| 184 | - updated to 12.10.1 |
|---|
| 185 | - dropt Patch0 |
|---|
| 186 | - split doc subpackage |
|---|
| 187 | |
|---|
| 188 | * Sun Feb 27 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.4-2 |
|---|
| 189 | - add BuildRequires: mono-devel |
|---|
| 190 | - add Patch0 (libindicate-0.4.4-disable-build-of-tests-examples.patch) |
|---|
| 191 | |
|---|
| 192 | * Fri Feb 18 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.4.4-1 |
|---|
| 193 | - Initial build for Vine Linux |
|---|