File adms.spec of Package adms

#
# spec file for package adms
#
# Copyright (c) 2016 SUSE LINUX Products 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:           adms
Version:        2.3.5
Release:        0
Summary:        An automatic device model synthesizer
License:        GPL-3.0
Group:          Productivity/Scientific/Electronics
Url:            http://sourceforge.net/projects/mot-adms/
Source0:        http://downloads.sourceforge.net/mot-adms/%{name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE adms-no-build-time.patch -- remove build time from binary
Patch1:         adms-no-build-time.patch
BuildRequires:  bison
BuildRequires:  flex
BuildRequires:  gcc-c++
BuildRequires:  libtool
BuildRequires:  perl-XML-LibXML
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
ADMS is a code generator that converts electrical compact device models
specified in high-level description language into ready-to-compile C code
for the API of spice simulators. Based on transformations specified in XML
language, ADMS transforms Verilog-AMS code into other target languages.

%prep
%setup -q
%patch1 -p1

%build
%configure --disable-static
make %{?_smp_mflags}

%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING
%{_bindir}/admsCheck
%{_bindir}/admsXml
# Do not split out libraries for the moment; nothing else but adms (can) use them
%{_libdir}/lib%{name}*.*
%{_mandir}/man1/admsCheck.1.gz
%{_mandir}/man1/admsXml.1.gz

%changelog
openSUSE Build Service is sponsored by