Mageia Bugzilla – Attachment 12837 Details for
Bug 29203
libappindicator : necessary for Tutanota desktop client (bug 29202). Spec file given {NEW PKG REQUEST}
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Proposal spec file
libappindicator.spec (text/plain), 6.15 KB, created by
Kristoffer Grundström
on 2021-07-02 00:49:27 CEST
(
hide
)
Description:
Proposal spec file
Filename:
MIME Type:
Creator:
Kristoffer Grundström
Created:
2021-07-02 00:49:27 CEST
Size:
6.15 KB
patch
obsolete
>Name: libappindicator >Version: 12.10.0 >Release: 30%{?dist} >Summary: Application indicators library > >License: LGPLv2 and LGPLv3 >URL: https://launchpad.net/libappindicator >Source0: https://launchpad.net/libappindicator/12.10/%{version}/+download/%{name}-%{version}.tar.gz >Patch0: 0001_Fix_mono_dir.patch ># https://bazaar.launchpad.net/~indicator-applet-developers/libappindicator/trunk.16.10/revision/285 >Patch1: incompatible_pointer_build_fix.patch >Patch2: nopython.patch > >BuildRequires: make >BuildRequires: autoconf >BuildRequires: automake >BuildRequires: gtk-doc >BuildRequires: vala >BuildRequires: dbus-glib-devel >BuildRequires: libdbusmenu-devel >BuildRequires: libdbusmenu-gtk2-devel >BuildRequires: libdbusmenu-gtk3-devel >BuildRequires: gobject-introspection-devel >BuildRequires: gtk2-devel >BuildRequires: gtk3-devel >BuildRequires: libindicator-devel >BuildRequires: libindicator-gtk3-devel >%ifarch %{mono_arches} >BuildRequires: gtk-sharp-devel >BuildRequires: gtk-sharp-gapi >BuildRequires: mono-devel >BuildRequires: mono-nunit-devel >%endif > >%description >A library to allow applications to export a menu into the Unity Menu bar. Based >on KSNI it also works in KDE and will fallback to generic Systray support if >none of those are available. > > >%package devel >Summary: Development files for %{name} > >Requires: %{name} = %{version}-%{release} >Requires: dbus-glib-devel >Requires: libdbusmenu-devel > >%description devel >This package contains the development files for the appindicator library. > > >%package gtk3 >Summary: Application indicators library - GTK 3 > >%description gtk3 >A library to allow applications to export a menu into the Unity Menu bar. Based >on KSNI it also works in KDE and will fallback to generic Systray support if >none of those are available. > >This package contains the GTK 3 version of this library. > > >%package gtk3-devel >Summary: Development files for %{name}-gtk3 > >Requires: %{name}-gtk3 = %{version}-%{release} >Requires: dbus-glib-devel >Requires: libdbusmenu-devel > >%description gtk3-devel >This package contains the development files for the appindicator-gtk3 library. > > >%package docs >Summary: Documentation for %{name} and %{name}-gtk3 > >BuildArch: noarch > >%description docs >This package contains the documentation for the appindicator and >appindicator-gtk3 libraries. > > >%ifarch %{mono_arches} >%package sharp >Summary: Application indicators library - C# > >Requires: mono-complete > >%description sharp >A library to allow applications to export a menu into the Unity Menu bar. Based >on KSNI it also works in KDE and will fallback to generic Systray support if >none of those are available. > >This package contains the Mono C# bindings for this library. > > >%package sharp-devel >Summary: Development files for %{name}-sharp > >Requires: %{name}-sharp = %{version}-%{release} > >%description sharp-devel >This package contains the development files for the appindicator-sharp library. >%endif > > >%prep >%setup -q >%patch0 -p1 -b .monodir >%patch1 -p1 -b .incompatible_pointer_build_fix >%patch2 -p1 -b .nopython > > >sed -i "s#gmcs#mcs#g" configure.ac ># fix for gtk-doc 1.26 >sed -i 's/--nogtkinit//' docs/reference/Makefile.am >gtkdocize --copy >cp -f gtk-doc.make gtk-doc.local.make >autoreconf -vif > > >%build >%global _configure ../configure >mkdir build-gtk2 build-gtk3 > >pushd build-gtk2 >export CFLAGS="%{optflags} $CFLAGS -Wno-deprecated-declarations -Wno-error" >%configure --with-gtk=2 --enable-gtk-doc --disable-static ># Parallel make, crash the build >make -j1 V=1 >popd > >pushd build-gtk3 >export CFLAGS="%{optflags} $CFLAGS -Wno-deprecated-declarations" >%configure --with-gtk=3 --enable-gtk-doc --disable-static ># Parallel make, crash the build >make -j1 V=1 >popd > > >%install >pushd build-gtk2 >make install DESTDIR=%{buildroot} >popd > >pushd build-gtk3 >make install DESTDIR=%{buildroot} >popd > >find %{buildroot} -type f -name '*.la' -delete > > >%ldconfig_scriptlets >%ldconfig_scriptlets gtk3 > > >%files >%doc AUTHORS README COPYING COPYING.LGPL.2.1 >%{_libdir}/libappindicator.so.* >%{_libdir}/girepository-1.0/AppIndicator-0.1.typelib > > >%files devel >%dir %{_includedir}/libappindicator-0.1/ >%dir %{_includedir}/libappindicator-0.1/libappindicator/ >%{_includedir}/libappindicator-0.1/libappindicator/*.h >%{_libdir}/libappindicator.so >%{_libdir}/pkgconfig/appindicator-0.1.pc >%{_datadir}/gir-1.0/AppIndicator-0.1.gir >%{_datadir}/vala/vapi/appindicator-0.1.vapi >%{_datadir}/vala/vapi/appindicator-0.1.deps > > >%files gtk3 >%doc AUTHORS README COPYING COPYING.LGPL.2.1 >%{_libdir}/libappindicator3.so.* >%{_libdir}/girepository-1.0/AppIndicator3-0.1.typelib > > >%files gtk3-devel >%dir %{_includedir}/libappindicator3-0.1/ >%dir %{_includedir}/libappindicator3-0.1/libappindicator/ >%{_includedir}/libappindicator3-0.1/libappindicator/*.h >%{_libdir}/libappindicator3.so >%{_libdir}/pkgconfig/appindicator3-0.1.pc >%{_datadir}/gir-1.0/AppIndicator3-0.1.gir >%{_datadir}/vala/vapi/appindicator3-0.1.vapi >%{_datadir}/vala/vapi/appindicator3-0.1.deps > > >%files docs >%doc %{_datadir}/gtk-doc/html/libappindicator/ > > >%ifarch %{mono_arches} >%files sharp >%doc AUTHORS README COPYING COPYING.LGPL.2.1 >%dir %{_libdir}/appindicator-sharp-0.1/ >%{_libdir}/appindicator-sharp-0.1/appindicator-sharp.dll >%{_libdir}/appindicator-sharp-0.1/appindicator-sharp.dll.config >%{_libdir}/appindicator-sharp-0.1/policy.0.0.appindicator-sharp.config >%{_libdir}/appindicator-sharp-0.1/policy.0.0.appindicator-sharp.dll >%{_libdir}/appindicator-sharp-0.1/policy.0.1.appindicator-sharp.config >%{_libdir}/appindicator-sharp-0.1/policy.0.1.appindicator-sharp.dll >%dir %{_prefix}/lib/mono/appindicator-sharp/ >%{_prefix}/lib/mono/appindicator-sharp/appindicator-sharp.dll >%{_prefix}/lib/mono/appindicator-sharp/policy.0.0.appindicator-sharp.dll >%dir %{_prefix}/lib/mono/gac/appindicator-sharp/ >%dir %{_prefix}/lib/mono/gac/appindicator-sharp/*/ >%{_prefix}/lib/mono/gac/appindicator-sharp/*/appindicator-sharp.dll >%{_prefix}/lib/mono/gac/appindicator-sharp/*/appindicator-sharp.dll.config >%dir %{_prefix}/lib/mono/gac/policy.0.0.appindicator-sharp/ >%dir %{_prefix}/lib/mono/gac/policy.0.0.appindicator-sharp/*/ >%{_prefix}/lib/mono/gac/policy.0.0.appindicator-sharp/*/policy.0.0.appindicator-sharp.dll >%{_prefix}/lib/mono/gac/policy.0.0.appindicator-sharp/*/policy.0.0.appindicator-sharp.config > > >%files sharp-devel >%{_libdir}/pkgconfig/appindicator-sharp-0.1.pc > >%endif
Name: libappindicator Version: 12.10.0 Release: 30%{?dist} Summary: Application indicators library License: LGPLv2 and LGPLv3 URL: https://launchpad.net/libappindicator Source0: https://launchpad.net/libappindicator/12.10/%{version}/+download/%{name}-%{version}.tar.gz Patch0: 0001_Fix_mono_dir.patch # https://bazaar.launchpad.net/~indicator-applet-developers/libappindicator/trunk.16.10/revision/285 Patch1: incompatible_pointer_build_fix.patch Patch2: nopython.patch BuildRequires: make BuildRequires: autoconf BuildRequires: automake BuildRequires: gtk-doc BuildRequires: vala BuildRequires: dbus-glib-devel BuildRequires: libdbusmenu-devel BuildRequires: libdbusmenu-gtk2-devel BuildRequires: libdbusmenu-gtk3-devel BuildRequires: gobject-introspection-devel BuildRequires: gtk2-devel BuildRequires: gtk3-devel BuildRequires: libindicator-devel BuildRequires: libindicator-gtk3-devel %ifarch %{mono_arches} BuildRequires: gtk-sharp-devel BuildRequires: gtk-sharp-gapi BuildRequires: mono-devel BuildRequires: mono-nunit-devel %endif %description A library to allow applications to export a menu into the Unity Menu bar. Based on KSNI it also works in KDE and will fallback to generic Systray support if none of those are available. %package devel Summary: Development files for %{name} Requires: %{name} = %{version}-%{release} Requires: dbus-glib-devel Requires: libdbusmenu-devel %description devel This package contains the development files for the appindicator library. %package gtk3 Summary: Application indicators library - GTK 3 %description gtk3 A library to allow applications to export a menu into the Unity Menu bar. Based on KSNI it also works in KDE and will fallback to generic Systray support if none of those are available. This package contains the GTK 3 version of this library. %package gtk3-devel Summary: Development files for %{name}-gtk3 Requires: %{name}-gtk3 = %{version}-%{release} Requires: dbus-glib-devel Requires: libdbusmenu-devel %description gtk3-devel This package contains the development files for the appindicator-gtk3 library. %package docs Summary: Documentation for %{name} and %{name}-gtk3 BuildArch: noarch %description docs This package contains the documentation for the appindicator and appindicator-gtk3 libraries. %ifarch %{mono_arches} %package sharp Summary: Application indicators library - C# Requires: mono-complete %description sharp A library to allow applications to export a menu into the Unity Menu bar. Based on KSNI it also works in KDE and will fallback to generic Systray support if none of those are available. This package contains the Mono C# bindings for this library. %package sharp-devel Summary: Development files for %{name}-sharp Requires: %{name}-sharp = %{version}-%{release} %description sharp-devel This package contains the development files for the appindicator-sharp library. %endif %prep %setup -q %patch0 -p1 -b .monodir %patch1 -p1 -b .incompatible_pointer_build_fix %patch2 -p1 -b .nopython sed -i "s#gmcs#mcs#g" configure.ac # fix for gtk-doc 1.26 sed -i 's/--nogtkinit//' docs/reference/Makefile.am gtkdocize --copy cp -f gtk-doc.make gtk-doc.local.make autoreconf -vif %build %global _configure ../configure mkdir build-gtk2 build-gtk3 pushd build-gtk2 export CFLAGS="%{optflags} $CFLAGS -Wno-deprecated-declarations -Wno-error" %configure --with-gtk=2 --enable-gtk-doc --disable-static # Parallel make, crash the build make -j1 V=1 popd pushd build-gtk3 export CFLAGS="%{optflags} $CFLAGS -Wno-deprecated-declarations" %configure --with-gtk=3 --enable-gtk-doc --disable-static # Parallel make, crash the build make -j1 V=1 popd %install pushd build-gtk2 make install DESTDIR=%{buildroot} popd pushd build-gtk3 make install DESTDIR=%{buildroot} popd find %{buildroot} -type f -name '*.la' -delete %ldconfig_scriptlets %ldconfig_scriptlets gtk3 %files %doc AUTHORS README COPYING COPYING.LGPL.2.1 %{_libdir}/libappindicator.so.* %{_libdir}/girepository-1.0/AppIndicator-0.1.typelib %files devel %dir %{_includedir}/libappindicator-0.1/ %dir %{_includedir}/libappindicator-0.1/libappindicator/ %{_includedir}/libappindicator-0.1/libappindicator/*.h %{_libdir}/libappindicator.so %{_libdir}/pkgconfig/appindicator-0.1.pc %{_datadir}/gir-1.0/AppIndicator-0.1.gir %{_datadir}/vala/vapi/appindicator-0.1.vapi %{_datadir}/vala/vapi/appindicator-0.1.deps %files gtk3 %doc AUTHORS README COPYING COPYING.LGPL.2.1 %{_libdir}/libappindicator3.so.* %{_libdir}/girepository-1.0/AppIndicator3-0.1.typelib %files gtk3-devel %dir %{_includedir}/libappindicator3-0.1/ %dir %{_includedir}/libappindicator3-0.1/libappindicator/ %{_includedir}/libappindicator3-0.1/libappindicator/*.h %{_libdir}/libappindicator3.so %{_libdir}/pkgconfig/appindicator3-0.1.pc %{_datadir}/gir-1.0/AppIndicator3-0.1.gir %{_datadir}/vala/vapi/appindicator3-0.1.vapi %{_datadir}/vala/vapi/appindicator3-0.1.deps %files docs %doc %{_datadir}/gtk-doc/html/libappindicator/ %ifarch %{mono_arches} %files sharp %doc AUTHORS README COPYING COPYING.LGPL.2.1 %dir %{_libdir}/appindicator-sharp-0.1/ %{_libdir}/appindicator-sharp-0.1/appindicator-sharp.dll %{_libdir}/appindicator-sharp-0.1/appindicator-sharp.dll.config %{_libdir}/appindicator-sharp-0.1/policy.0.0.appindicator-sharp.config %{_libdir}/appindicator-sharp-0.1/policy.0.0.appindicator-sharp.dll %{_libdir}/appindicator-sharp-0.1/policy.0.1.appindicator-sharp.config %{_libdir}/appindicator-sharp-0.1/policy.0.1.appindicator-sharp.dll %dir %{_prefix}/lib/mono/appindicator-sharp/ %{_prefix}/lib/mono/appindicator-sharp/appindicator-sharp.dll %{_prefix}/lib/mono/appindicator-sharp/policy.0.0.appindicator-sharp.dll %dir %{_prefix}/lib/mono/gac/appindicator-sharp/ %dir %{_prefix}/lib/mono/gac/appindicator-sharp/*/ %{_prefix}/lib/mono/gac/appindicator-sharp/*/appindicator-sharp.dll %{_prefix}/lib/mono/gac/appindicator-sharp/*/appindicator-sharp.dll.config %dir %{_prefix}/lib/mono/gac/policy.0.0.appindicator-sharp/ %dir %{_prefix}/lib/mono/gac/policy.0.0.appindicator-sharp/*/ %{_prefix}/lib/mono/gac/policy.0.0.appindicator-sharp/*/policy.0.0.appindicator-sharp.dll %{_prefix}/lib/mono/gac/policy.0.0.appindicator-sharp/*/policy.0.0.appindicator-sharp.config %files sharp-devel %{_libdir}/pkgconfig/appindicator-sharp-0.1.pc %endif
View Attachment As Raw
Actions:
View
Attachments on
bug 29203
: 12837 |
12841