gpm/gpm.spec

159 lines
4.2 KiB
RPMSpec
Raw Normal View History

2019-09-30 10:51:38 -04:00
Name: gpm
Version: 1.20.7
Release: 27
2019-09-30 10:51:38 -04:00
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
2019-12-31 18:23:58 +08:00
URL: https://www.nico.schottelius.org/software/gpm/
Source: https://www.nico.schottelius.org/software/gpm/archives/%{name}-%{version}.tar.gz
2019-09-30 10:51:38 -04:00
Source1: gpm.service
2020-01-08 15:58:51 +08:00
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
2019-09-30 10:51:38 -04:00
Patch6000: fix-highly-illegal-return-of-int-as-char-and-less-wo.patch
Patch6001: fix-signedness-issue.patch
2021-07-30 11:21:43 +08:00
Patch6002: fix-build-fail-on-gcc-10.patch
2019-09-30 10:51:38 -04:00
Requires(post): systemd systemd-sysv info
Requires(preun): systemd info
Requires(postun): systemd
%if 0%{?build_cross} == 0
2019-09-30 10:51:38 -04:00
Requires: linuxconsoletools
%endif
2021-07-21 10:05:24 +08:00
BuildRequires: autoconf automake bison gawk libtool libcap-ng-devel ncurses-devel sed systemd texinfo
2019-09-30 10:51:38 -04:00
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.
2019-11-06 19:32:15 +08:00
%package_help
2019-09-30 10:51:38 -04:00
%prep
2019-11-06 19:32:15 +08:00
%setup -q
2020-01-08 15:58:51 +08:00
%patch1 -p1 -b .weak-wgetch
%patch2 -p1
%patch3 -p1
%patch4 -p1
2019-11-06 19:32:15 +08:00
%patch5 -p1
%patch6000 -p1
%patch6001 -p1
2021-07-30 11:21:43 +08:00
%patch6002 -p1
2019-09-30 10:51:38 -04:00
%build
2020-12-11 10:12:02 +08:00
./autogen.sh
2019-09-30 10:51:38 -04:00
%configure
%make_build
%install
2019-11-06 19:32:15 +08:00
%make_install
2019-09-30 10:51:38 -04:00
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
if [ -e %{_infodir}/gpm.info.gz ]; then
/sbin/install-info %{_infodir}/gpm.info.gz %{_infodir}/dir || :
fi
%preun
if [ $1 = 0 -a -e %{_infodir}/gpm.info.gz ]; then
/sbin/install-info %{_infodir}/gpm.info.gz --delete %{_infodir}/dir || :
fi
%postun
%ldconfig_post
%ldconfig_postun
%files
%doc COPYING
%{_infodir}/*
%config(noreplace) %{_sysconfdir}/gpm-*
2020-03-19 21:03:00 +08:00
%exclude %{_datadir}/emacs/site-lisp/*
2019-09-30 10:51:38 -04:00
%{_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
* Mon Mar 27 2023 zhangpan <zhangpan103@h-partners.com.com> - 1.20.7-27
- add build_cross to avoid install linuxconsoletools in self-build
* Tue Sep 06 2022 wangkerong <wangkerong@h-partners.com.com> - 1.20.7-26
- Add ExecStartPost option to gpm.service for solve error message when gpm service start
2021-12-22 18:34:29 +08:00
* Wed Dec 22 2021 xingxing <xingxing9@huawei.com> - 1.20.7-25
- fix update error
2021-07-30 11:21:43 +08:00
* Fri Jul 30 2021 wangkerong <wangkerong@huawei.com> - 1.20.7-24
- fix build fail on gcc-10
2021-07-21 10:05:24 +08:00
* Wed Jul 21 2021 yushaogui <yushaogui@huawei.com> - 1.20.7-23
- delete a buildrequires for gdb
2020-12-11 10:12:02 +08:00
* Fri Dec 11 2020 zhujunhao <zhujunhao8@huawei.com> - 1.20.7-22
- modify for patch invalid
2020-03-19 21:03:00 +08:00
* Thu Mar 19 2020 songnannan <songnannan2@huawei.com> - 1.20.7-21
- add gdb in buildrequires
2020-01-08 16:00:56 +08:00
* Wed Jan 8 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.20.7-20
2020-01-08 15:58:51 +08:00
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: optimization the spec
2019-12-31 18:23:58 +08:00
* Tue Dec 31 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.20.7-19
- Type:NA
- Id:NA
- SUG:NA
- DESC:update tarball
2019-11-06 19:32:15 +08:00
* Thu Oct 24 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.20.7-18
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:add original patch
2019-09-30 10:51:38 -04:00
* Fri Sep 20 2019 Yiru Wang <wangyiru1@huawei.com> - 1.20.7-17
- Pakcage init