Init package

This commit is contained in:
misaka00251 2022-07-20 16:58:06 +08:00
parent c997fd2255
commit a0a353a06a
No known key found for this signature in database
GPG Key ID: 4AA100DC964EDE26
2 changed files with 76 additions and 0 deletions

BIN
AsioHeaders_1.16.1-1.tar.gz Normal file

Binary file not shown.

76
R-AsioHeaders.spec Normal file
View File

@ -0,0 +1,76 @@
%global packname AsioHeaders
%global packver 1.16.1-1
%global rlibdir %{_datadir}/R/library
Name: R-%{packname}
Version: 1.16.1.1
Release: 1
Summary: Asio C++ Header Files
License: Boost
URL: https://CRAN.R-project.org/package=%{packname}
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{packver}.tar.gz
BuildArch: noarch
BuildRequires: R-devel
BuildRequires: tex(latex)
%description
'Asio' is a cross-platform C++ library for network and low-level I/O
programming that provides developers with a consistent asynchronous model using
a modern C++ approach. It is also included in Boost but requires linking when
used with Boost. Standalone it can be used header-only (provided a recent
compiler). 'Asio' is written and maintained by Christopher M. Kohlhoff, and
released under the 'Boost Software License', Version 1.0.
%package devel
Summary: Asio C++ Header Files
Provides: bundled(asio) = 1.16.1
Requires: openssl-devel
Recommends: boost-devel
%description devel
'Asio' is a cross-platform C++ library for network and low-level I/O
programming that provides developers with a consistent asynchronous model using
a modern C++ approach. It is also included in Boost but requires linking when
used with Boost. Standalone it can be used header-only (provided a recent
compiler). 'Asio' is written and maintained by Christopher M. Kohlhoff, and
released under the 'Boost Software License', Version 1.0.
%prep
%setup -q -c -n %{packname}
%build
%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css
%check
%{_bindir}/R CMD check %{packname}
%files devel
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS.Rd
%license %{rlibdir}/%{packname}/COPYRIGHTS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/include
%changelog
* Thu Jun 16 2022 misaka00251 <misaka00251@misakanet.cn> - 1.16.1.1-1
- Init package (Thanks to fedora team)