89 lines
2.1 KiB
RPMSpec
89 lines
2.1 KiB
RPMSpec
|
|
%bcond_with oniguruma
|
||
|
|
|
||
|
|
Name: slang
|
||
|
|
Version: 2.3.2
|
||
|
|
Release: 6
|
||
|
|
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
|
||
|
|
|
||
|
|
Patch6000: slang-getkey-memmove.patch
|
||
|
|
Patch6001: slang-sighuptest.patch
|
||
|
|
|
||
|
|
BuildRequires: gcc libpng-devel pcre-devel zlib-devel
|
||
|
|
|
||
|
|
%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
|
||
|
|
%autosetup -n %{name}-%{version} -p1 -Sgit
|
||
|
|
|
||
|
|
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
|
||
|
|
* Mon Sep 24 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.3.2-6
|
||
|
|
- Remove unnecessary info in spec
|
||
|
|
|
||
|
|
* Tue Sep 16 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.3.2-5
|
||
|
|
- Package init
|