Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:18
gen_smtp
gen_smtp.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gen_smtp.spec of Package gen_smtp
%def_disable check %define bname gen_smtp Name: %bname Version: 1.2.0 Release: 6 Summary: Generic Erlang SMTP server framework License: BSD-2-Clause Group: Development/Tools/Other URL: https://github.com/Vagabond/%bname Source: %bname-%version.tar.xz #Patch0: %bname-%version-git.patch Patch1: %bname-1.2.0-logger.patch BuildArch: noarch Provides: erlang-%bname = %version-%release BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: rebar >= 2.6.1-7 BuildRequires: erlang-syntax_tools-devel BuildRequires: erlang-otpbp-devel >= 0.37.0 BuildRequires: erlang-ranch-devel # check %if_enabled check BuildRequires: erlang-public_key erlang-ssl BuildRequires: erlang-eiconv >= 1.1-4 BuildRequires: erlang-ranch >= 1.8.0 %endif %description gen_snmp provide a generic Erlang SMTP server framework that can be extended via callback modules in the OTP style. A pure Erlang SMTP client is also included. The goal is to make it easy to send and receive email in Erlang without the hassle of POP/IMAP. This is not a complete mailserver - although it includes most of the parts you'd need to build one. The SMTP server/client supports PLAIN, LOGIN, CRAM-MD5 authentication as well as STARTTLS and SSL (port 465). Also included is a MIME encoder/decoder, sorta according to RFC204{5,6,7}. IPv6 is also supported (at least serverside). %package doc Summary: Documentation of %bname Group: Documentation/HTML Provides: erlang-%bname-doc = %version-%release %description doc Documentation of %bname. %prep %setup -q -n %bname-%version #patch -p1 -P0 %patch -p1 -P1 %if_enabled check install -d -m 0755 .eunit ln -sf ../test .eunit/test %endif %build erl -noshell -eval ' {ok, L} = file:consult("rebar.config"), file:write_file("%bname.rebar.config", [[io_lib:print(E), ".\n"] || E <- lists:keydelete(deps, 1, L)], [raw]), file:write_file("%bname.rebar.config", lists:map(fun(E) -> [io_lib:print(E), ".\n"] end, lists:foldl(fun(K, A) -> lists:keydelete(K, 1, A) end, L, [require_min_otp_vsn, deps])), [raw]), init:stop().' %if %_otp_release < 21 ERL_COMPILER_OPTIONS="[inline,verbose,{parse_transform,otpbp_pt}]" \ %else ERL_COMPILER_OPTIONS="[inline,verbose]" \ %endif rebar %{?_smp_mflags} -C %bname.rebar.config compile -v rebar %{?_smp_mflags} -C %bname.rebar.config doc -v %install install -d -m 0755 %buildroot%_otplibdir/%bname-%version/ebin install -p -m 0644 ebin/* %buildroot%_otplibdir/%bname-%version/ebin/ install -d -m 0755 %buildroot%_otplibdir/%bname-%version/doc install -p -m 0644 doc/*.{css,html,png} %buildroot%_otplibdir/%bname-%version/doc/ install -d -m 0755 %buildroot%_docdir/%name ln -sf %_otplibdir/%bname-%version/doc %buildroot%_docdir/%name/html install -p -m 0644 README* %buildroot%_docdir/%name/ %if_enabled check %check %if %_otp_release < 21 ERL_COMPILER_OPTIONS="[inline,verbose,{parse_transform,otpbp_pt}]" \ %else ERL_COMPILER_OPTIONS="[inline,verbose]" \ %endif rebar -C %bname.rebar.config eunit -v %endif %files %defattr(-,root,root) %_otplibdir/* %exclude %_otplibdir/%bname-*/doc %files doc %defattr(-,root,root) %doc %_docdir/%name %doc %dir %_otplibdir/%bname-* %doc %_otplibdir/%bname-*/doc %changelog * Sat Apr 27 2024 Led <ledest@gmail.com> 1.2.0-6 - update patches: + gen_smtp-1.2.0-logger.patch * Sat Apr 27 2024 Led <ledest@gmail.com> 1.2.0-5 - update BuildRequires * Sat Apr 27 2024 Led <ledest@gmail.com> 1.2.0-4 - update BuildRequires - add patches: + gen_smtp-1.2.0-logger.patch * Sat Apr 27 2024 Led <ledest@gmail.com> 1.2.0-3 - fix compile options * Sat Apr 27 2024 Led <ledest@gmail.com> 1.2.0-2 - fix build on Erlang/OTP < 21 * Fri Apr 12 2024 Led <ledest@gmail.com> 1.2.0-1 - 1.2.0 - remove patches: + 0001-Remove-SP-after-MAIL-FROM-and-RCPT-TO-181.patch + 0002-Fix-SSL-socket-upgrade.patch + gen_smtp-0.15.0-binary.patch + gen_smtp-0.15.0-doc.patch - disable check * Wed Jul 27 2022 Led <ledest@gmail.com> 0.15.0-5 - fix build on Erlang/OTP > 23 * Tue Mar 16 2021 Led <ledest@gmail.com> 0.15.0-4 - add patches: + 0002-Fix-SSL-socket-upgrade.patch + gen_smtp-0.15.0-binary.patch * Sun Oct 27 2019 Led <ledest@gmail.com> 0.15.0-3 - update BuildRequires * Sun Oct 27 2019 Led <ledest@gmail.com> 0.15.0-2 - update BuildRequires * Fri Oct 25 2019 Led <ledest@gmail.com> 0.15.0-1 - 0.15.0 - add patches: + 0001-Remove-SP-after-MAIL-FROM-and-RCPT-TO-181.patch + gen_smtp-0.15.0-doc.patch - add %%check * Fri Sep 28 2018 Led <ledest@gmail.com> 0.13.0-1 - 0.13.0 - git 64f4924 - remove patches: + gen_smtp-0.11.0-doc.patch * Mon Feb 26 2018 Led <ledest@gmail.com> 0.12.0-2 - clean up spec * Wed Jun 14 2017 Led <ledest@gmail.com> 0.12.0-1 - 0.12.0 * Sun May 21 2017 Led <ledest@gmail.com> 0.11.0-1 - initial build
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor