# Generated from easy-swig-1.1.gem by gem2rpm -*- rpm-spec -*- %global gem_name easy-swig Name: rubygem-%{gem_name} Version: 1.1 Release: 1%{?dist} Summary: Library and CLI-Tool for automatic generation wrappers for C/C++ code using SWIG License: MIT URL: http://github.com/davfuenmayor/easy-swig Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby BuildArch: noarch %description Library and CLI-Tool for automatic generation wrappers for C/C++ code using SWIG. This is both a Ruby Gem and a CLI Tool. Feed it with a directory containing the library's header files (the ones you want to wrap) and a CSV File with basic configuration (see usage). EasySwig will generate the corresponding SWIG interface files (.i) in an output directory. EasySwig also offers a facade allowing you to directly call SWIG in order to generate wrappers in the target language. EasySwig relies on the Doxyparser gem (https://github.com/davfuenmayor/ruby-doxygen-parser) which on his part depends on Nokogiri (http://nokogiri.org) and Doxygen (www.doxygen.org). Refer to Doxyparser for more information. For using EasySwig you may also want to install SWIG (http://www.swig.org/). SWIG versions 2.x and 3.x are supported. EasySwig supports currently only C#. There is ongoing work on other languages support. . %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} %build # Create the gem as gem install only works on a gem file gem build ../%{gem_name}-%{version}.gemspec # %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir # by default, so that we can move it into the buildroot in %%install %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check pushd .%{gem_instdir} # Run the test suite. popd %files %dir %{gem_instdir} %license %{gem_instdir}/MIT_LICENSE %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/README.md %{gem_instdir}/spec %changelog * Mon Apr 18 2022 mockbuilder - 1.1-1 - Initial package