Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
ade5d9152f !8 Modify license information
From: @wang--ge
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2021-01-20 16:17:12 +08:00
wang--ge
9c970b41ec modify license information 2021-01-20 15:58:12 +08:00
openeuler-ci-bot
c200fe5782 !7 remove python2 subpackage
From: @caodongxia
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2020-10-30 16:22:21 +08:00
caodongxia
6cf5e004fb Remove subpackage python2-antlr 2020-10-30 14:39:21 +08:00
openeuler-ci-bot
1b18ee119c !5 modify spec and rename patch
Merge pull request !5 from 严志华/master
2020-02-07 09:59:21 +08:00
daidai_is_here
89eede378e modify spec and rename patch 2020-02-07 09:54:04 +08:00
openeuler-ci-bot
bb1346033f !4 fix selfbuild error
Merge pull request !4 from t.feng/master
2020-01-16 00:18:29 +08:00
t_feng
562afff41b fix selfbuild error 2020-01-15 23:56:50 +08:00
openeuler-ci-bot
8cc03072f0 !3 optimization the spec
Merge pull request !3 from orange-snn/test_ci
2020-01-15 21:56:59 +08:00
yaqwer
43acb5eb23 optimization the patch 2020-01-15 21:48:21 +08:00
3 changed files with 101 additions and 23 deletions

View File

@ -1,33 +1,26 @@
Name: libappindicator
Version: 12.10.0
Release: 22
Release: 27
Summary: The library of application indicators
License: LGPLv2 and LGPLv3
License: LGPL-3.0 and LGPL-2.1+ and GPL-3.0+
URL: https://launchpad.net/libappindicator
Source0: https://launchpad.net/libappindicator/12.10/12.10.0/+download/libappindicator-12.10.0.tar.gz
Patch0001: 0001_Fix_mono_dir.patch
Patch0002: incompatible_pointer_build_fix.patch
Patch0003: no-Werror-deprecated.patch
Patch0003: libappindicator-add-patch-to-modify-build-err.patch
Patch0004: nopython.patch
BuildRequires: autoconf automake gtk-doc vala-tools dbus-glib-devel libdbusmenu-devel
BuildRequires: libdbusmenu-gtk2-devel libdbusmenu-gtk3-devel gobject-introspection-devel
BuildRequires: gtk2-devel gtk3-devel libindicator-devel libindicator-gtk3-devel
BuildRequires: python2-devel pygtk2-devel
%description
The libappindicator allows applications to export a menu into the Unity Menu bar.
It bases on KSNI and works in KDE and will fallback to generic Systray support if
none of those are available.
%package -n python2-appindicator
%{?python_provide:%python_provide python2-appindicator}
Summary: Python 2 bindings for libappindicator
Requires: libappindicator = 12.10.0-21
%description -n python2-appindicator
This package contains the Python 2 bindings for the appindicator library.
%package devel
Summary: Development package for libappindicator
Requires: libappindicator = 12.10.0-21
Requires: %{name} = %{version}-%{release}
Requires: dbus-glib-devel libdbusmenu-devel
%description devel
This package contains the development files for the appindicator library.
@ -39,7 +32,7 @@ This package contains the GTK 3 version of libappindicator.
%package gtk3-devel
Summary: Development package for libappindicator-gtk3
Requires: libappindicator-gtk3 = 12.10.0-21
Requires: %{name}-gtk3 = %{version}-%{release}
Requires: dbus-glib-devel libdbusmenu-devel
%description gtk3-devel
This package contains the development files for the appindicator-gtk3 library.
@ -81,21 +74,23 @@ pushd build-gtk3
make install DESTDIR=%{buildroot}
popd
find %{buildroot} -type f -name '*.la' -delete
%ldconfig_scriptlets
%ldconfig_scriptlets gtk3
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%post gtk3
/sbin/ldconfig
%postun gtk3
/sbin/ldconfig
%files
%doc AUTHORS README COPYING COPYING.LGPL.2.1
%{_libdir}/libappindicator.so.*
%{_libdir}/girepository-1.0/AppIndicator-0.1.typelib
%files -n python2-appindicator
%dir %{python_sitearch}/appindicator/
%{python_sitearch}/appindicator/__init__.py*
%{python_sitearch}/appindicator/_appindicator.so
%dir %{_datadir}/pygtk/
%dir %{_datadir}/pygtk/2.0/
%dir %{_datadir}/pygtk/2.0/defs/
%{_datadir}/pygtk/2.0/defs/appindicator.defs
%files devel
%dir %{_includedir}/libappindicator-0.1/
%dir %{_includedir}/libappindicator-0.1/libappindicator/
@ -122,6 +117,30 @@ find %{buildroot} -type f -name '*.la' -delete
%doc %{_datadir}/gtk-doc/html/libappindicator/
%changelog
* Wed Jan 20 2021 Ge Wang <wangge20@huawei.com> - 12.10.0-27
- Modify license information.
* Wed Oct 21 2020 chengzihan <chengzihan2@huawei.com> - 12.10.0-26
- Remove Subpackage python2-appindicator
* Fri Feb 07 2020 yanzhihua <yanzhihua4@huawei.com> - 12.10.0-25
- Type:enhancement
- Id:NA
- SUG:NA
- DESC:ldconfig_scriptlets does not exist so modify the use of ldconfig, and rename the patch
* Wed Jan 15 2020 openEuler Buildteam <buildteam@openeuler.org> - 12.10.0-24
- Type:enhancement
- Id:NA
- SUG:NA
- DESC:optimization the spec
* Wed Jan 15 2020 openEuler Buildteam <buildteam@openeuler.org> - 12.10.0-23
- Type:enhancement
- Id:NA
- SUG:NA
- DESC:optimization the spec
* Wed Jan 15 2020 openEuler Buildteam <buildteam@openeuler.org> - 12.10.0-22
- Type:enhancement
- Id:NA

59
nopython.patch Normal file
View File

@ -0,0 +1,59 @@
diff --git a/bindings/Makefile.am b/bindings/Makefile.am
index d1f6d73..dccca6c 100644
--- a/bindings/Makefile.am
+++ b/bindings/Makefile.am
@@ -3,7 +3,6 @@ SUBDIRS = \
vala
else
SUBDIRS = \
- python \
vala
endif
diff --git a/configure.ac b/configure.ac
index ee03390..4713b22 100644
--- a/configure.ac
+++ b/configure.ac
@@ -181,33 +181,6 @@ AM_CONDITIONAL(BUILD_MONO_TEST, test x${have_nunit} = xyes)
with_localinstall="no"
AC_ARG_ENABLE(localinstall, AS_HELP_STRING([--enable-localinstall], [install all of the files localy instead of system directories (for distcheck)]), with_localinstall=$enableval, with_localinstall=no)
-###########################
-# Python
-###########################
-
-PYGTK_REQUIRED=2.14.0
-PYGOBJECT_REQUIRED=0.22
-
-AM_PATH_PYTHON(2.3.5)
-AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])
-
-PKG_CHECK_MODULES(APPINDICATOR_PYTHON,
- [
- pygtk-2.0 >= $PYGTK_REQUIRED
- gtk+-2.0 >= $GTK_REQUIRED_VERSION
- pygobject-2.0 >= $PYGOBJECT_REQUIRED
- ])
-
-AC_MSG_CHECKING(for pygtk defs)
-PYGTK_DEFSDIR=`$PKG_CONFIG --variable=defsdir pygtk-2.0`
-AC_SUBST(PYGTK_DEFSDIR)
-AC_MSG_RESULT($PYGTK_DEFSDIR)
-
-AC_MSG_CHECKING(for pygtk codegen)
-PYGTK_CODEGEN="$PYTHON `$PKG_CONFIG --variable=codegendir pygtk-2.0`/codegen.py"
-AC_SUBST(PYGTK_CODEGEN)
-AC_MSG_RESULT($PYGTK_CODEGEN)
-
#########################
# Check if build tests
#########################
@@ -239,8 +212,6 @@ src/Makefile
src/appindicator-0.1.pc
src/appindicator3-0.1.pc
bindings/Makefile
-bindings/python/Makefile
-bindings/python/appindicator.override
bindings/vala/Makefile
bindings/vala/examples/Makefile
tests/Makefile