libindicator: openEuler init

This commit is contained in:
gnaygnil 2019-12-23 11:33:47 +08:00
parent 616ee92ddc
commit 1530cdd2db
4 changed files with 154 additions and 75 deletions

View File

@ -1,36 +0,0 @@
# libindicator
#### Description
{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
#### Software Architecture
Software architecture description
#### Installation
1. xxxx
2. xxxx
3. xxxx
#### Instructions
1. xxxx
2. xxxx
3. xxxx
#### Contribution
1. Fork the repository
2. Create Feat_xxx branch
3. Commit your code
4. Create Pull Request
#### Gitee Feature
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
4. The most valuable open source project [GVP](https://gitee.com/gvp)
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

View File

@ -1,39 +0,0 @@
# libindicator
#### 介绍
{**以下是码云平台说明,您可以替换此简介**
码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN。专为开发者提供稳定、高效、安全的云端软件开发协作平台
无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
#### 软件架构
软件架构说明
#### 安装教程
1. xxxx
2. xxxx
3. xxxx
#### 使用说明
1. xxxx
2. xxxx
3. xxxx
#### 参与贡献
1. Fork 本仓库
2. 新建 Feat_xxx 分支
3. 提交代码
4. 新建 Pull Request
#### 码云特技
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

BIN
libindicator-12.10.1.tar.gz Normal file

Binary file not shown.

154
libindicator.spec Normal file
View File

@ -0,0 +1,154 @@
Name: libindicator
Version: 12.10.1
Release: 14
Summary: Shared functions for Ayatana indicators
License: GPLv3
URL: https://launchpad.net/libindicator
Source0: https://launchpad.net/libindicator/12.10/12.10.1/+download/%{name}-%{version}.tar.gz
BuildRequires: chrpath gtk-doc libtool pkgconfig dbus-glib-devel gtk2-devel gtk3-devel gnome-common
Requires: pkgconfig
Provides: %{name}-tools = %{version}-%{release}
Obsoletes: %{name}-tools < %{version}-%{release}
%description
A set of symbols and convenience functions that all Ayatana indicators are likely to use.
%package devel
Summary: Development files for libindicator
Requires: %{name} = %{version}-%{release} pkgconfig
%description devel
The libindicator-devel package contains libraries and header files
for developing applications that use libindicator.
%package gtk3
Summary: GTK+3 build of libindicator
Requires: pkgconfig
Provides: %{name}-gtk3-tools = %{version}-%{release}
Obsoletes: %{name}-gtk3-tools < %{version}-%{release}
%description gtk3
A set of symbols and convenience functions that all Ayatana indicators are likely
to use. This is the GTK+ 3 build of libindicator, for use by GTK+ 3 apps.
%package gtk3-devel
Summary: Development files for libindicator-gtk3
Requires: %{name}-gtk3 = %{version}-%{release} pkgconfig
%description gtk3-devel
The libindicator-gtk3-devel package contains libraries and header files for
developing applications that use libindicator-gtk3.
%prep
%autosetup -p1
sed -i.addvar configure.ac -e '\@LIBINDICATOR_LIBS@s|\$LIBM| \$LIBM|'
cat > autogen.sh <<EOF
#!/bin/sh
PKG_NAME="libindicator"
which gnome-autogen.sh || {
echo "You need gnome-common from GNOME SVN"
exit 1
}
USE_GNOME2_MACROS=1 \
. gnome-autogen.sh
EOF
NOCONFIGURE=1 sh autogen.sh
%build
%global _configure ../configure
rm -rf build-gtk{2,3}
mkdir build-gtk{2,3}
for gtk_version in 2 3
do
cd build-gtk${gtk_version}
export CFLAGS="%{optflags} -Wno-error=deprecated-declarations"
%configure --with-gtk=${gtk_version} --disable-static --disable-silent-rules
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%make_build
cd ..
done
%install
for gtk_version in 2 3
do
cd build-gtk${gtk_version}
%make_install
cd ..
(
export PKG_CONFIG_PATH=%{buildroot}%{_libdir}/pkgconfig
for var in iconsdir indicatordir %{nil}
do
if [ ${gtk_version} == "2" ]
then
mkdir -p %{buildroot}$(pkg-config --variable=${var} indicator-0.4)
elif [ ${gtk_version} == "3" ]
then
mkdir -p %{buildroot}$(pkg-config --variable=${var} indicator3-0.4)
fi
done
)
done
%delete_la
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%post gtk3
/sbin/ldconfig
%postun gtk3
/sbin/ldconfig
%files
%exclude %{_libdir}/libdummy-indicator*.so
%doc AUTHORS COPYING NEWS ChangeLog
%{_libdir}/libindicator.so.*
%{_libdir}/indicators/
%dir %{_datadir}/libindicator/
%dir %{_datadir}/libindicator/icons/
%{_libexecdir}/indicator-loader
%{_datadir}/libindicator/80indicator-debugging
%files devel
%dir %{_includedir}/libindicator-0.4/
%dir %{_includedir}/libindicator-0.4/libindicator/
%{_includedir}/libindicator-0.4/libindicator/*.h
%{_libdir}/libindicator.so
%{_libdir}/pkgconfig/indicator-0.4.pc
%files gtk3
%doc AUTHORS COPYING NEWS ChangeLog
%{_libdir}/libindicator3.so.*
%{_libdir}/indicators3/
%dir %{_datadir}/libindicator/
%dir %{_datadir}/libindicator/icons/
%{_libexecdir}/indicator-loader3
%files gtk3-devel
%dir %{_includedir}/libindicator3-0.4/
%dir %{_includedir}/libindicator3-0.4/libindicator/
%{_includedir}/libindicator3-0.4/libindicator/*.h
%{_libdir}/libindicator3.so
%{_libdir}/pkgconfig/indicator3-0.4.pc
%changelog
* Sat Dec 21 2019 zoushuangshuang<zoushuangshuang@huawei.com> - 12.10.1-14
- Package init