2012-10-26 14:40:37 +00:00
|
|
|
#
|
|
|
|
# spec file for package erlang-serial
|
|
|
|
#
|
2016-05-09 14:18:16 +00:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-10-26 14:40:37 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2016-05-09 14:18:16 +00:00
|
|
|
|
2012-10-26 14:40:37 +00:00
|
|
|
Name: erlang-serial
|
2016-08-16 17:50:12 +00:00
|
|
|
Version: 0.0.0+git20160614.a1b5ee9
|
2012-10-26 14:40:37 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Port program with erlang driver for serial communication
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
Url: http://tonyg.github.com/erlang-serial/
|
2016-05-09 14:18:16 +00:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2012-10-26 14:40:37 +00:00
|
|
|
Requires: erlang
|
2016-05-09 14:18:16 +00:00
|
|
|
BuildRequires: erlang
|
2012-10-26 14:40:37 +00:00
|
|
|
BuildRequires: erlang-src
|
2016-05-09 14:18:16 +00:00
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: make
|
2012-10-26 14:40:37 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
This is a port program with erlang driver for serial communication, originally written by Johan Bevemyr in 1996 and sporadically maintained by Tony Garnock-Jones from 2007 onwards.
|
|
|
|
|
|
|
|
%package src
|
|
|
|
Summary: erlang-serial sources
|
|
|
|
Group: Development/Libraries/Other
|
2013-02-17 10:57:59 +00:00
|
|
|
Requires: erlang-serial
|
2012-10-26 14:40:37 +00:00
|
|
|
|
|
|
|
%description src
|
|
|
|
Sources for Erlang serial port.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup
|
|
|
|
|
|
|
|
%build
|
|
|
|
make CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
MODULE_VER=$(make echo-version)
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT/%{_libdir}
|
2013-02-17 10:57:59 +00:00
|
|
|
strip $RPM_BUILD_ROOT/%{erlang_libdir}/serial-$MODULE_VER/priv/bin/serial
|
2012-10-26 14:40:37 +00:00
|
|
|
|
2013-02-17 10:57:59 +00:00
|
|
|
echo %dir %{erlang_libdir}/serial-$MODULE_VER >> fileslist
|
|
|
|
echo %{erlang_libdir}/serial-$MODULE_VER/ebin >> fileslist
|
|
|
|
echo %{erlang_libdir}/serial-$MODULE_VER/priv >> fileslist
|
|
|
|
echo %{erlang_libdir}/serial-$MODULE_VER/src >> fileslist.src
|
2012-10-26 14:40:37 +00:00
|
|
|
|
|
|
|
%files -f fileslist
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc README.md LICENSE
|
|
|
|
|
|
|
|
%files src -f fileslist.src
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
2016-05-09 14:18:16 +00:00
|
|
|
%changelog
|