From bfa9242792117b155224d24200799bfd9941638e Mon Sep 17 00:00:00 2001 From: Tomas Popela Date: Feb 20 2018 20:09:57 +0000 Subject: Initial import (#1547064) --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c35661c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/libappindicator-12.10.0.tar.gz diff --git a/0001_Fix_mono_dir.patch b/0001_Fix_mono_dir.patch new file mode 100644 index 0000000..b7c82c4 --- /dev/null +++ b/0001_Fix_mono_dir.patch @@ -0,0 +1,24 @@ +diff -Nru libappindicator-0.4.92.orig/bindings/mono/appindicator-sharp-0.1.pc.in libappindicator-0.4.92/bindings/mono/appindicator-sharp-0.1.pc.in +--- libappindicator-0.4.92.orig/bindings/mono/appindicator-sharp-0.1.pc.in 2012-06-27 21:04:30.199741626 -0400 ++++ libappindicator-0.4.92/bindings/mono/appindicator-sharp-0.1.pc.in 2012-06-27 21:05:23.326822552 -0400 +@@ -1,7 +1,7 @@ + prefix=@prefix@ + exec_prefix=@exec_prefix@ + libdir=@libdir@ +-assemblies_dir=${libdir}/cli/appindicator-sharp-0.1 ++assemblies_dir=${libdir}/appindicator-sharp-0.1 + + Name: appindicator-sharp + Description: application indicators for .NET +diff -Nru libappindicator-0.4.92.orig/bindings/mono/Makefile.am libappindicator-0.4.92/bindings/mono/Makefile.am +--- libappindicator-0.4.92.orig/bindings/mono/Makefile.am 2012-06-27 21:04:30.199741626 -0400 ++++ libappindicator-0.4.92/bindings/mono/Makefile.am 2012-06-27 21:04:59.562786431 -0400 +@@ -31,7 +31,7 @@ + $(DLLPOLICY1) \ + $(POLICY1).config + +-assemblydir = $(libdir)/cli/appindicator-sharp-0.1 ++assemblydir = $(libdir)/appindicator-sharp-0.1 + assembly_DATA = $(TARGET) + + CLEANFILES = \ diff --git a/README.md b/README.md deleted file mode 100644 index 63aa5cb..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# libappindicator-sharp - -The libappindicator-sharp package \ No newline at end of file diff --git a/libappindicator-sharp.spec b/libappindicator-sharp.spec new file mode 100644 index 0000000..3e3f768 --- /dev/null +++ b/libappindicator-sharp.spec @@ -0,0 +1,126 @@ +%global debug_package %{nil} + +Name: libappindicator-sharp +Version: 12.10.0 +Release: 12%{?dist} +Summary: Application indicators library - C# + +License: LGPLv2 and LGPLv3 +URL: https://launchpad.net/libappindicator +Source0: https://launchpad.net/libappindicator/12.10/%{version}/+download/libappindicator-%{version}.tar.gz +Patch0: 0001_Fix_mono_dir.patch + +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: gtk-doc +BuildRequires: vala-tools +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 +BuildRequires: python2-devel +BuildRequires: pygtk2-devel +BuildRequires: gtk-sharp2-devel +BuildRequires: gtk-sharp2-gapi +BuildRequires: mono-devel +BuildRequires: mono-nunit-devel + +ExclusiveArch: %{mono_arches} + + +%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. + +This package contains the Mono C# bindings for this library. + +%package devel +Summary: Development files for %{name} + +Requires: %{name} = %{version}-%{release} + +%description devel +This package contains the development files for the appindicator-sharp library. + + +%prep +%autosetup -p1 -n libappindicator-%{version} + +sed -i "s#gmcs#mcs#g" configure.ac +autoreconf -vif + + +%build +%global _configure ../configure +mkdir build-gtk2 build-gtk3 + +pushd build-gtk2 +export CFLAGS="%{optflags} $CFLAGS -Wno-deprecated-declarations" +%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 + +# We are only interested in Mono files - remove everything else.. +find %{buildroot} -type f -name '*.la' -delete +find %{buildroot} \( -type f -or -type l \) -name '*.so*' -print -delete +rm -rf %{buildroot}%{_datadir} +rm -rf %{buildroot}%{_includedir} +rm -rf %{buildroot}%{_libdir}/girepository-1.0 +find %{buildroot} -type f -name '*.pc' -not -name 'appindicator-sharp*.pc' -delete +rm -rf %{buildroot}%{_libdir}/python* + + +%files +%doc AUTHORS README +%license 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 devel +%{_libdir}/pkgconfig/appindicator-sharp-0.1.pc + +%changelog +* Tue Feb 20 2018 Tomas Popela - 12.10.0-12 +- This package was separated from libappindicator when the libappindicator + was moved to RHEL 7. diff --git a/sources b/sources new file mode 100644 index 0000000..2ae3069 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +41910f2005edee9240da1e53fffcdc12 libappindicator-12.10.0.tar.gz