1 Star 0 Fork 10

桐小哥/gpm

forked from src-openEuler/gpm 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
gpm.spec 3.55 KB
一键复制 编辑 原始数据 按行查看 历史
orange-snn 提交于 2020-03-19 21:03 . add gdb in buildrequires
Name: gpm
Version: 1.20.7
Release: 21
Summary: The gpm package contains a mouse server for the console and xterm
License: GPLv2 and GPLv2+ with exceptions and GPLv3+ and Verbatim and Copyright only
URL: https://www.nico.schottelius.org/software/gpm/
Source: https://www.nico.schottelius.org/software/gpm/archives/%{name}-%{version}.tar.gz
Source1: gpm.service
Patch1: gpm-1.20.1-weak-wgetch.patch
Patch2: gpm-1.20.6-missing-header-dir-in-make-depend.patch
Patch3: gpm-format-security.patch
Patch4: gpm-1.20.7-sysmacros.patch
Patch5: gpm-1.20.7-sigemptyset.patch
Patch6000: fix-highly-illegal-return-of-int-as-char-and-less-wo.patch
Patch6001: fix-signedness-issue.patch
Requires(post): systemd systemd-sysv info
Requires(preun): systemd info
Requires(postun): systemd
Requires: linuxconsoletools
BuildRequires: autoconf automake bison gawk libtool libcap-ng-devel ncurses-devel sed systemd texinfo gdb
Requires: %{name}-libs = %{version}-%{release}
%description
GPM(General Purpose Mouse) is a mouse serer for the console and xterm, with
sample clients included like emacs.
%package libs
Summary: Library for the gpm
%description libs
This package contains the library which contains
the gpm system calls and library functions.
%package devel
Requires: %{name} = %{version}-%{release}
Requires: %{name}-libs = %{version}-%{release}
Summary: Development files for the gpm library
Provides: gpm-static
Obsoletes: gpm-static
%description devel
The gpm-devel package includes header files and libraries necessary
for the gpm library.
%package_help
%prep
%setup -q
./autogen.sh
%patch1 -p1 -b .weak-wgetch
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6000 -p1
%patch6001 -p1
%build
%configure
%make_build
%install
%make_install
chmod 0755 %{buildroot}/%{_libdir}/libgpm.so.2.1.0
ln -sf libgpm.so.2.1.0 %{buildroot}/%{_libdir}/libgpm.so
cp conf/gpm-* %{buildroot}%{_sysconfdir}
chmod 644 %{buildroot}%{_sysconfdir}/gpm-*
mkdir -p %{buildroot}%{_unitdir}
cp %{SOURCE1} %{buildroot}%{_unitdir}
chmod 644 %{buildroot}%{_unitdir}/gpm.service
%post
%systemd_post gpm.service
if [ -e %{_infodir}/gpm.info.gz ]; then
/sbin/install-info %{_infodir}/gpm.info.gz %{_infodir}/dir || :
fi
%preun
%systemd_preun gpm.service
if [ $1 = 0 -a -e %{_infodir}/gpm.info.gz ]; then
/sbin/install-info %{_infodir}/gpm.info.gz --delete %{_infodir}/dir || :
fi
%postun
%systemd_postun_with_restart gpm.servic
%ldconfig_post
%ldconfig_postun
%files
%doc COPYING
%{_infodir}/*
%config(noreplace) %{_sysconfdir}/gpm-*
%exclude %{_datadir}/emacs/site-lisp/*
%{_unitdir}/gpm.service
%{_sbindir}/*
%{_bindir}/*
%files libs
%{_libdir}/libgpm.so.*
%files devel
%{_includedir}/*
%{_libdir}/libgpm.so
%{_libdir}/libgpm.a
%files help
%doc README TODO doc/README* doc/FAQ doc/Announce doc/changelog
%{_mandir}/man?/*
%changelog
* Thu Mar 19 2020 songnannan <songnannan2@huawei.com> - 1.20.7-21
- add gdb in buildrequires
* Wed Jan 8 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.20.7-20
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: optimization the spec
* Tue Dec 31 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.20.7-19
- Type:NA
- Id:NA
- SUG:NA
- DESC:update tarball
* Thu Oct 24 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.20.7-18
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:add original patch
* Fri Sep 20 2019 Yiru Wang <wangyiru1@huawei.com> - 1.20.7-17
- Pakcage init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tong_1001/gpm.git
git@gitee.com:tong_1001/gpm.git
tong_1001
gpm
gpm
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385