Files
erlang-serial/erlang-serial.spec

69 lines
2.2 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package erlang-serial
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#
Name: erlang-serial
Version: 0.0.0+git20160614.a1b5ee9
Release: 0
Summary: Port program with erlang driver for serial communication
License: MIT
Group: Development/Libraries/Other
Url: http://tonyg.github.com/erlang-serial/
Source: %{name}-%{version}.tar.bz2
Requires: erlang
BuildRequires: erlang
BuildRequires: erlang-src
BuildRequires: gcc
BuildRequires: make
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
Requires: erlang-serial
%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}
strip $RPM_BUILD_ROOT/%{erlang_libdir}/serial-$MODULE_VER/priv/bin/serial
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
%files -f fileslist
%defattr(-,root,root)
%doc README.md LICENSE
%files src -f fileslist.src
%defattr(-,root,root)
%changelog