2019-09-30 11:17:12 -04:00
|
|
|
%bcond_with oniguruma
|
|
|
|
|
|
|
|
|
|
Name: slang
|
|
|
|
|
Version: 2.3.2
|
2021-08-02 10:13:14 +08:00
|
|
|
Release: 9
|
2019-09-30 11:17:12 -04:00
|
|
|
Summary: An interpreted language and programing library
|
|
|
|
|
License: GPLv2+
|
|
|
|
|
URL: https://www.jedsoft.org/slang/
|
|
|
|
|
Source0: https://www.jedsoft.org/releases/slang/%{name}-%{version}.tar.bz2
|
|
|
|
|
|
2019-12-26 09:42:25 +08:00
|
|
|
Provides: %{name}-slsh = %{version}-%{release}
|
|
|
|
|
Obsoletes: %{name}-slsh < %{version}-%{release}
|
|
|
|
|
|
2019-09-30 11:17:12 -04:00
|
|
|
Patch6000: slang-getkey-memmove.patch
|
|
|
|
|
Patch6001: slang-sighuptest.patch
|
|
|
|
|
|
2021-08-02 10:13:14 +08:00
|
|
|
BuildRequires: gcc libpng-devel pcre-devel zlib-devel
|
2019-09-30 11:17:12 -04:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
S-Lang is a multi-platform programmer's library designed to allow
|
|
|
|
|
a developer to create robust multi-platform software. It provides
|
|
|
|
|
facilities required by interactive applications such as display/
|
|
|
|
|
screen management, keyboard input, keymaps, and so on.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Files for %{name} development
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
Files for %{name} development
|
|
|
|
|
|
|
|
|
|
%package help
|
|
|
|
|
Summary: Help files for %{name}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description help
|
|
|
|
|
Help files for %{name}
|
|
|
|
|
|
|
|
|
|
%prep
|
2021-08-02 10:13:14 +08:00
|
|
|
%autosetup -n %{name}-%{version} -p1
|
2019-09-30 11:17:12 -04:00
|
|
|
|
|
|
|
|
sed -i '/^INSTALL_MODULE=/s/_DATA//' configure
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%configure --with-{pcre,png,z}lib=%{_libdir} --with-{pcre,png,z}inc=%{_includedir}
|
|
|
|
|
|
|
|
|
|
make RPATH="" install_doc_dir=%{_pkgdocdir} all
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make install-all RPATH="" INSTALL="install -p" DESTDIR=%{buildroot}
|
|
|
|
|
|
|
|
|
|
mkdir %{buildroot}%{_includedir}/slang
|
|
|
|
|
for h in slang.h slcurses.h; do
|
|
|
|
|
ln -s ../$h %{buildroot}%{_includedir}/slang/$h
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make check
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%exclude %{_docdir}/{slang,slsh}
|
|
|
|
|
%exclude %{_libdir}/libslang.a
|
|
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/slsh.rc
|
|
|
|
|
%license COPYING
|
|
|
|
|
%doc NEWS slsh/doc/html/*.html
|
|
|
|
|
%{_libdir}/libslang.so.2*
|
|
|
|
|
%{_libdir}/%{name}
|
|
|
|
|
%{_bindir}/slsh
|
|
|
|
|
%{_datadir}/slsh
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%doc doc/text/*.txt doc/README doc/*.txt
|
|
|
|
|
%{_libdir}/libslang.so
|
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
|
%{_includedir}/slang.h
|
|
|
|
|
%{_includedir}/slcurses.h
|
|
|
|
|
%{_includedir}/%{name}
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_mandir}/man1/slsh.1*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2021-08-02 10:13:14 +08:00
|
|
|
* Mon Aug 02 2021 chenyanpanHW <chenyanpan@huawei.com> - 2.3.2-9
|
|
|
|
|
- DESC: delete -Sgit from %autosetup, and delete BuildRequires git
|
|
|
|
|
|
2019-12-26 09:42:25 +08:00
|
|
|
* Wed Dec 25 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.3.2-8
|
|
|
|
|
- Add provides of slang-slsh
|
|
|
|
|
|
2019-12-13 16:09:11 +08:00
|
|
|
* Thu Nov 21 2019 fangyufa <fangyufa1@huawei.com> - 2.3.2-7
|
|
|
|
|
- add buildrequires of git for x86_64 build
|
|
|
|
|
|
2022-06-17 17:16:16 +08:00
|
|
|
* Tue Sep 24 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.3.2-6
|
2019-09-30 11:17:12 -04:00
|
|
|
- Remove unnecessary info in spec
|
|
|
|
|
|
2022-06-17 17:16:16 +08:00
|
|
|
* Mon Sep 16 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.3.2-5
|
2019-09-30 11:17:12 -04:00
|
|
|
- Package init
|