Package init
This commit is contained in:
parent
2610e5f56b
commit
4936f40b2a
36
README.en.md
36
README.en.md
@ -1,36 +0,0 @@
|
|||||||
# esc
|
|
||||||
|
|
||||||
#### 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/)
|
|
||||||
39
README.md
39
README.md
@ -1,39 +0,0 @@
|
|||||||
# esc
|
|
||||||
|
|
||||||
#### 介绍
|
|
||||||
{**以下是码云平台说明,您可以替换此简介**
|
|
||||||
码云是 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/)
|
|
||||||
36
esc
Normal file
36
esc
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# BEGIN COPYRIGHT BLOCK
|
||||||
|
# This Program is free software; you can redistribute it and/or modify it under
|
||||||
|
# the terms of the GNU General Public License as published by the Free Software
|
||||||
|
# Foundation; version 2 of the License.
|
||||||
|
#
|
||||||
|
# This Program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License along with
|
||||||
|
# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple
|
||||||
|
# Place, Suite 330, Boston, MA 02111-1307 USA.
|
||||||
|
#
|
||||||
|
# Copyright (C) 2005 Red Hat, Inc.
|
||||||
|
# All rights reserved.
|
||||||
|
# END COPYRIGHT BLOCK
|
||||||
|
|
||||||
|
|
||||||
|
ESC_PATH=/usr/lib64/esc-1.1.2
|
||||||
|
ESC_BIN=esc.js
|
||||||
|
ESC_EXEC=gjs
|
||||||
|
|
||||||
|
export OPENSC_CONF=$ESC_PATH/opensc.esc.conf
|
||||||
|
export GI_TYPELIB_PATH=$ESC_PATH/lib/girepository-1.0
|
||||||
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ESC_PATH/lib
|
||||||
|
|
||||||
|
cd $ESC_PATH
|
||||||
|
|
||||||
|
$ESC_EXEC ./$ESC_BIN &
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
BIN
esc-1.1.2.tar.bz2
Normal file
BIN
esc-1.1.2.tar.bz2
Normal file
Binary file not shown.
8
esc.desktop
Normal file
8
esc.desktop
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Type=Application
|
||||||
|
Encoding=UTF-8
|
||||||
|
Name=Smart Card Manager
|
||||||
|
Comment=Enterprise Security Client Smart Card Manager
|
||||||
|
Categories=System;Application;SystemSetup;X-Red-Hat-Base;
|
||||||
|
Exec=esc
|
||||||
|
Icon=esc.png
|
||||||
79
esc.spec
Normal file
79
esc.spec
Normal file
@ -0,0 +1,79 @@
|
|||||||
|
Name: esc
|
||||||
|
Version: 1.1.2
|
||||||
|
Release: 3
|
||||||
|
Summary: esc embeds files into go programs and provides http
|
||||||
|
License: GPL+
|
||||||
|
URL: https://github.com/mjibson/esc
|
||||||
|
Source0: http://pki.fedoraproject.org/pki/sources/%{name}/%{name}-%{version}.tar.bz2
|
||||||
|
Source1: esc
|
||||||
|
Source2: esc.desktop
|
||||||
|
Source3: esc.png
|
||||||
|
|
||||||
|
BuildRequires: glib2-devel atk-devel pkgconfig nspr-devel nss-devel nss-static
|
||||||
|
BuildRequires: pcsc-lite-devel desktop-file-utils dbus-glib-devel glib2-devel gcc-c++
|
||||||
|
BuildRequires: opensc gobject-introspection-devel gtk3-devel gjs-devel GConf2-devel
|
||||||
|
|
||||||
|
Requires: pcsc-lite nss nspr dbus opensc gjs gobject-introspection gtk3 glib2
|
||||||
|
|
||||||
|
AutoReqProv: 0
|
||||||
|
|
||||||
|
%description
|
||||||
|
esc embeds files into go programs and provides http.FileSystem interfaces to them.
|
||||||
|
It adds all named files or files recursively under named directories at the path
|
||||||
|
specified. The output file provides an http.FileSystem interface with zero
|
||||||
|
dependencies on packages outside the standard library.
|
||||||
|
|
||||||
|
%package_help
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n %{name} -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
./autogen.sh
|
||||||
|
|
||||||
|
make
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
install -m 0755 -d %{buildroot}/%{_datadir}/icons/hicolor/48x48/apps
|
||||||
|
install -m 0755 -d %{buildroot}/%{_datadir}/applications
|
||||||
|
install -m 0755 -d %{buildroot}/%{_datadir}/pixmaps
|
||||||
|
install -m 0755 -d %{buildroot}%{_libdir}/%{name}-%{version}
|
||||||
|
|
||||||
|
sed -e 's;\$LIBDIR;'%{_libdir}';g' %{SOURCE1}
|
||||||
|
install -m 0755 -D %{SOURCE1} %{buildroot}%{_bindir}/%{name}
|
||||||
|
install -p -D %{buildroot}%{_prefix}/local/bin/* %{buildroot}%{_libdir}/%{name}-%{version}
|
||||||
|
cp -a %{buildroot}%{_prefix}/local/lib %{buildroot}%{_libdir}/%{name}-%{version}
|
||||||
|
|
||||||
|
%delete_la_and_a
|
||||||
|
rm -rf %{buildroot}/%{_prefix}/local
|
||||||
|
|
||||||
|
install -p -m 0755 %{SOURCE3} %{buildroot}/%{_datadir}/icons/hicolor/48x48/apps
|
||||||
|
|
||||||
|
pushd %{buildroot}
|
||||||
|
ln -s %{_datadir}/icons/hicolor/48x48/apps/esc.png usr/share/pixmaps/esc.png
|
||||||
|
popd
|
||||||
|
|
||||||
|
install -m 0755 %{SOURCE2} %{buildroot}/%{_datadir}/applications
|
||||||
|
cp -a %{_mandir} %{buildroot}%{_mandir}
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc README.md
|
||||||
|
%license LICENSE
|
||||||
|
|
||||||
|
%{_bindir}/%{name}
|
||||||
|
%{_libdir}/%{name}-%{version}/lib
|
||||||
|
%{_libdir}/%{name}-%{version}/esc.js
|
||||||
|
%{_libdir}/%{name}-%{version}/opensc.esc.conf
|
||||||
|
%{_datadir}/pixmaps/esc.png
|
||||||
|
%{_datadir}/applications/esc.desktop
|
||||||
|
%{_datadir}/icons/hicolor/48x48/apps/esc.png
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_mandir}/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Nov 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.1.2-3
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user