Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:ErlangPro
erlsom
erlsom.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File erlsom.spec of Package erlsom
%def_disable debug %define Name Erlsom %define bname erlsom Name: %bname Version: 1.2.1 %define Release 0.1 Release: 0.1 Summary: Erlang XSD parser License: LGPLv3+ Group: Development/Libraries/Other URL: https://github.com/willemdj/%bname/ Source: %name.tar.xz BuildArch: noarch Requires: erlang-otp Buildroot: %buildroot BuildRequires: xz tar >= 1.23 %define __find_provides %erlang_provides %define __find_requires %erlang_requires BuildRequires: rpm-build-erlang BuildRequires: erlang-otp-devel rebar erlang-devel symlinks fdupes %description %Name is a set of functions to parse (and generate) XML documents. %Name can be used in a couple of very different modes: - As a SAX parser. This is a more or less standardized model for parsing XML. - As a simple sort of DOM parser. %Name can translate your XML to the simple form that is used by Xmerl. - As a data binder. %Name can translate the XML document to an Erlang data structure that corresponds to an XML Schema. %package devel Summary: Headers for %name Group: Development/Languages/Other %description devel %Name is a set of functions to parse (and generate) XML documents. This package contains headers for %name. %package doc Summary: Documentation for %name Group: Documentation/HTML Provides: %name-examples = %version-%release %description doc %Name is a set of functions to parse (and generate) XML documents. This package contains HTML documentation for %name and examples. %prep %setup -q -n %name %build cat > rebar.config <<__EOF__ {erl_opts, [ %if_enabled debug debug_info, %else no_debug_info,slim,compressed, %endif inline]}. __EOF__ rebar %{?_smp_mflags} -v compile doc %install for d in ebin include; do install -d -m 0755 %buildroot%_otplibdir/%bname-%version/$d install -m 0644 $d/* %buildroot%_otplibdir/%bname-%version/$d/ done install -d -m 0755 %buildroot{%_otplibdir/%bname-%version/doc,%_docdir/%name-%version} install -m 0644 doc/*.{css,html,gif,png} %buildroot%_otplibdir/%bname-%version/doc/ cp -a examples %buildroot%_otplibdir/%bname-%version/ ln -s %buildroot%_otplibdir/%bname-%version/doc %buildroot%_docdir/%name-%version/html symlinks -csd %buildroot%_docdir/%name-%version %fdupes %buildroot%_otpdir %files %defattr(-,root,root) %dir %_otplibdir/* %_otplibdir/*/ebin %files devel %defattr(-,root,root) %_otplibdir/*/include %files doc %defattr(-,root,root) %doc %dir %_otplibdir/* %doc %_otplibdir/*/doc %doc %_docdir/%name-%version %_otplibdir/*/examples %changelog * Tue Apr 03 2012 Led <led@massivesolutions.co.uk> 1.2.1-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