%global realname getopt %global upstream jcomellas # Technically, we're noarch; but erlang whose directories we install into is not. %global debug_package %{nil} Name: erlang-%{realname} Version: 1.0.1 Release: %mkrel 1 Summary: Erlang module to parse command line arguments using the GNU getopt syntax Group: Development/Erlang License: BSD URL: http://github.com/%{upstream}/%{realname} VCS: scm:git:https://github.com/%{upstream}/%{realname}.git Source0: https://github.com/%{upstream}/%{realname}/archive/v%{version}/%{realname}-%{version}.tar.gz Patch1: 0001-Add-utf8_binary-type.patch Patch2: 0002-Add-tests-for-utf8_binary-type.patch Patch3: 0003-Add-description-of-utf8_binary-type-to-README.patch Patch4: 0004-Fix-typo-in-README.patch Patch5: 0005-Fix-build-for-Erlang-20.patch Patch6: 0006-extend-format_error-2-to-handle-missing_option_arg.patch BuildRequires: erlang-rebar BuildRequires: erlang-getopt %description Command-line parsing module that uses a syntax similar to that of GNU getopt. %prep %autosetup -p 1 -n %{realname}-%{version} chmod 0644 examples/*.escript %build %{erlang_compile} %install %{erlang_install} %check # BEWARE rebar needs bootstrapped getopt in case of an API change %{erlang_test} %files %license LICENSE.txt %doc README.md examples/ %{erlang_appdir}/ %changelog * Sat Sep 22 2018 wally <wally> 1.0.1-1.mga7 (not released yet) + Revision: 1296395 - build with tests * Sat Sep 22 2018 wally <wally> 1.0.1-0.mga7 + Revision: 1295972 - new version 1.0.1 - add fixes from upstream - bootstrap without tests * Tue Jun 28 2016 pterjan <pterjan> 0.8.2-6.mga6 + Revision: 1038024 - Rebuild to fix non-bootstrap rebar * Thu Jun 16 2016 tv <tv> 0.8.2-5.mga6 + Revision: 1021684 - use %%license - use erlan macros * Fri May 06 2016 neoclust <neoclust> 0.8.2-4.mga6 + Revision: 1009755 - Rebuild post boostrap - imported package erlang-getopt