Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:18
yaws
yaws.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File yaws.spec of Package yaws
Name: yaws Version: 2.0.7 Release: 2 Summary: A high performance HTTP 1.1 webserver Group: Productivity/Networking/Web/Servers License: BSD-3-Clause URL: http://%name.hyber.org Source: %url/download/%name-%version.tar.xz Source1: %name.service #Patch0: %name-%version-git.patch Patch1: %name-2.0.6-stacktrace.patch BuildRequires: autoconf automake libtool BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: pam-devel BuildRequires: erlang >= R16B01 BuildRequires: erlang-inets erlang-sasl erlang-crypto erlang-public_key erlang-ssl erlang-mnesia BuildRequires: erlang-xmerl-devel erlang-erts-devel erlang-eunit-devel BuildRequires: erlang_lib(erlsom) erlang_lib(xmlrpc) BuildRequires: fdupes BuildRequires: erlang-otpbp-devel >= 4.17.0 #check BuildRequires: ct_run erlang-common_test epmd BuildRequires: erlang-otpbp >= 4.17.0 %description Yaws is a HTTP high perfomance 1.1 webserver particularly well suited for dynamic-content webapplications. Two separate modes of operations are supported. - Standalone mode where Yaws runs as a regular webserver daemon. This is the default mode. - Embedded mode where Yaws runs as an embedded webserver in another erlang application. %prep %setup -q #patch0 -p1 %patch1 -p1 [ -e scripts/systemd/%name.service ] || install -pD -m 0744 %{S:1} scripts/systemd/%name.service sed -i '/^SUBDIRS/,/^$/s/ doc / /' Makefile.am %build %if %_otp_release >= 24 ERLC_FLAGS="+inline +debug_info +nowarn_deprecated_function +nowarn_export_all +'{parse_transform,otpbp_pt}'" %else ERLC_FLAGS="+inline +debug_info +nowarn_deprecated_function +nowarn_export_all" %endif autoreconf -fisv %configure \ ERLANG_INSTALL_LIB_DIR=%_otplibdir \ yawsdir=%_otplibdir/%name-%version \ logdir=%_localstatedir/log/%name/ \ ERLCFLAGS="$ERLC_FLAGS" \ --localstatedir=/srv \ --enable-pam \ --with-defaultcharset=UTF-8 make %{?_smp_mflags} V=1 DEBUG_ERLC_FLAGS="$ERLC_FLAGS" for i in applications/*; do make -C $i %{?_smp_mflags} V=1 DEBUG_ERLC_FLAGS="$ERLC_FLAGS" done %install %make_install install -d -m 0755 %buildroot%_sbindir ln -sf service %buildroot%_sbindir/rc%name install -d -m 0755 %buildroot%_unitdir for i in scripts/systemd/*.service; do sed 's|%%etcdir%%|%_sysconfdir|g;s|%%bindir%%|%_bindir|g' $i > %buildroot%_unitdir/$(basename $i) done rm -rf %buildroot%_sysconfdir/systemd %buildroot%_prefix/lib/%name install -d -m 0755 %buildroot%_localstatedir/log/%name %fdupes %buildroot/srv/%name/www/icons %check make test %pre %{?service_add_pre:%service_add_pre %name.service} %{?systemd_pre:%systemd_pre %name.service} %post %{?fillup_only:%fillup_only %name} %{?service_add_post:%service_add_post %name.service} %{?systemd_post:%systemd_post %name.service} %preun %{?service_del_preun:%service_del_preun %name.service} %{?systemd_preun:%systemd_preun %name.service} %{?stop_on_removal:%stop_on_removal %name} %postun %{?service_del_postun:%service_del_postun %name.service} %{?systemd_postun:%systemd_postun %name.service} %{?restart_on_update:%restart_on_update %name} %files %defattr(-,root,root) %doc README.md %_bindir/* %dir %_sysconfdir/%name %config(noreplace) %_sysconfdir/%name/*.pem %config(noreplace) %_sysconfdir/%name/*.conf %_sysconfdir/%name/*.template %_unitdir/* %_mandir/man1/* %_mandir/man5/* %_sbindir/* /srv/%name %_otplibdir/* %dir %_localstatedir/log/%name %exclude %_pkgconfigdir %changelog
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