From 35f11c2be8066c320e64e5f739d72ccfb1886b027dd8ea9df0af3390e75fe3ed Mon Sep 17 00:00:00 2001 From: Dmitry Roshchin Date: Fri, 27 Jun 2014 19:43:43 +0000 Subject: [PATCH] osc copypac from project:home:Dmitry_R:WIP package:adms revision:2 OBS-URL: https://build.opensuse.org/package/show/electronics/adms?expand=0&rev=1 --- .gitattributes | 23 ++++++ .gitignore | 1 + adms-2.3.2.tar.gz | 3 + adms-no-build-time.patch | 66 ++++++++++++++++++ adms.changes | 6 ++ adms.spec | 147 +++++++++++++++++++++++++++++++++++++++ 6 files changed, 246 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 adms-2.3.2.tar.gz create mode 100644 adms-no-build-time.patch create mode 100644 adms.changes create mode 100644 adms.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/adms-2.3.2.tar.gz b/adms-2.3.2.tar.gz new file mode 100644 index 0000000..59b3d5b --- /dev/null +++ b/adms-2.3.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:120631ced4662790b0ce1f6b29823c945c0cbba9b9ab63a75d863a469989b73f +size 775414 diff --git a/adms-no-build-time.patch b/adms-no-build-time.patch new file mode 100644 index 0000000..afdfa8c --- /dev/null +++ b/adms-no-build-time.patch @@ -0,0 +1,66 @@ +Index: adms-2.3.2/admsXml/admsXml.c +=================================================================== +--- adms-2.3.2.orig/admsXml/admsXml.c ++++ adms-2.3.2/admsXml/admsXml.c +@@ -558,7 +558,7 @@ static void parseva (const int argc,cons + root()->_filename=basename(myverilogamsfile); + root()->_fullfilename=adms_kclone(myverilogamsfile); + root()->_curfilename=adms_kclone(myverilogamsfile); +- adms_message_info(("%sXml-%s (%s) %s %s\n",PACKAGE_NAME,PACKAGE_VERSION,GIT,__DATE__,__TIME__)) ++ adms_message_info(("%sXml-%s\n",PACKAGE_NAME,PACKAGE_VERSION)) + /* preprocess input file */ + { + p_preprocessor mypreprocessor=(p_preprocessor)malloc(sizeof(t_preprocessor)); +@@ -2621,11 +2621,6 @@ int main (const int argc,const char**arg + adms_k2strconcat(&sdeveloper,"Xml"); + adms_k2strconcat(&sdeveloper,"-"); + adms_k2strconcat(&sdeveloper,PACKAGE_VERSION); +- adms_k2strconcat(&sdeveloper," ("); +- adms_k2strconcat(&sdeveloper,__DATE__); +- adms_k2strconcat(&sdeveloper,"-"); +- adms_k2strconcat(&sdeveloper,__TIME__); +- adms_k2strconcat(&sdeveloper,")"); + root()->_simulator->_developer=sdeveloper; + } + /*[nepasimprimer]*/ +@@ -2656,8 +2651,8 @@ int main (const int argc,const char**arg + ((argc==3)&&!strcmp(argv[1],"--")&&!strcmp(argv[2],"help")) + ) + { +- adms_message_usage(("%sXml-%s (%s) ",PACKAGE_NAME,PACKAGE_VERSION,GIT)) +- adms_message_usage_continue(("%s %s (os=%s compiler=%s)\n",__DATE__,__TIME__,ADMS_OS,ADMS_COMPILER)) ++ adms_message_usage(("%sXml-%s ",PACKAGE_NAME,PACKAGE_VERSION)) ++ adms_message_usage_continue(("(os=%s compiler=%s)\n",ADMS_OS,ADMS_COMPILER)) + adms_message_usage(("%sXml source [options] -e script1 [-e script2 ...]\n",PACKAGE_NAME)) + adms_message_usage(("files:\n")) + adms_message_usage((" source: verilog-ams source code\n")) +@@ -2688,7 +2683,7 @@ int main (const int argc,const char**arg + ((argc==3)&&!strcmp(argv[1],"--")&&!strcmp (argv[2],"version")) + ) + { +- adms_message_usage(("\n",PACKAGE_NAME,PACKAGE_VERSION,__DATE__,__TIME__)) ++ adms_message_usage(("\n",PACKAGE_NAME,PACKAGE_VERSION)) + return 0; + } + else if( +@@ -2704,8 +2699,7 @@ int main (const int argc,const char**arg + adms_message_usage((" bug-report=\"%s\"\n",PACKAGE_BUGREPORT)) + adms_message_usage((" home-page=\"http://mot-adms.sourceforge.net\"\n")) + adms_message_usage((" mailing-list=\"mot-adms-users@lists.sourceforge.net\">\n")) +- adms_message_usage((" \n",GIT,__DATE__,__TIME__)) ++ adms_message_usage((" \n ",PACKAGE_NAME,PACKAGE_VERSION)) + adms_message_usage(("\n")) + return 0; + } +@@ -2761,10 +2755,6 @@ int main (const int argc,const char**arg + adms_k2strconcat(&xheader," Command used:\n"); + adms_k2strconcat(&xheader," # release: "); + adms_k2strconcat(&xheader,PACKAGE_VERSION); +- adms_k2strconcat(&xheader," "); +- adms_k2strconcat(&xheader,__DATE__); +- adms_k2strconcat(&xheader,"-"); +- adms_k2strconcat(&xheader,__TIME__); + adms_k2strconcat(&xheader,"\n"); + adms_k2strconcat(&xheader," "); + adms_k2strconcat(&xheader,PACKAGE_NAME); diff --git a/adms.changes b/adms.changes new file mode 100644 index 0000000..9314f84 --- /dev/null +++ b/adms.changes @@ -0,0 +1,6 @@ +------------------------------------------------------------------- +Fri Jun 27 18:11:58 UTC 2014 - dmitry_r@opensuse.org + +- Initial package, version 2.3.2 +- Remove build time from binary + * adms-no-build-time.patch diff --git a/adms.spec b/adms.spec new file mode 100644 index 0000000..ecd4a13 --- /dev/null +++ b/adms.spec @@ -0,0 +1,147 @@ +# +# spec file for package adms +# +# Copyright (c) 2014 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.2 +Release: 0 +Summary: An automatic device model synthesizer +License: LGPL-2.1 +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: gcc-c++ +BuildRequires: flex +BuildRequires: libtool +BuildRequires: perl-GD +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. + +%package devel +Summary: Development files for ADMS +Group: Development/Libraries/Other +Requires: %{name} = %{version} + +%description devel +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. + +%package -n libadmsVeriloga0 +Summary: ADMS Veriloga library +Group: System/Libraries + +%description -n libadmsVeriloga0 +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. + +%package -n libadmsElement0 +Summary: ADMS Element library +Group: System/Libraries + +%description -n libadmsElement0 +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. + +%package -n libadmsAdmstpath0 +Summary: ADMS Admstpath library +Group: System/Libraries + +%description -n libadmsAdmstpath0 +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. + +%package -n libadmsPreprocessor0 +Summary: ADMS Preprocessor library +Group: System/Libraries + +%description -n libadmsPreprocessor0 +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 +rm -r %{buildroot}%{_libdir}/*.la + +%post -n libadmsVeriloga0 -p /sbin/ldconfig +%postun -n libadmsVeriloga0 -p /sbin/ldconfig + +%post -n libadmsElement0 -p /sbin/ldconfig +%postun -n libadmsElement0 -p /sbin/ldconfig + +%post -n libadmsAdmstpath0 -p /sbin/ldconfig +%postun -n libadmsAdmstpath0 -p /sbin/ldconfig + +%post -n libadmsPreprocessor0 -p /sbin/ldconfig +%postun -n libadmsPreprocessor0 -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%doc AUTHORS ChangeLog COPYING +%{_bindir}/admsXml +%{_mandir}/man1/admsCheck.1.gz +%{_mandir}/man1/admsXml.1.gz + +%files -n libadmsVeriloga0 +%defattr(-,root,root) +%{_libdir}/libadmsVeriloga.so.0* + +%files -n libadmsElement0 +%defattr(-,root,root) +%{_libdir}/libadmsElement.so.0* + +%files -n libadmsAdmstpath0 +%defattr(-,root,root) +%{_libdir}/libadmsAdmstpath.so.0* + +%files -n libadmsPreprocessor0 +%defattr(-,root,root) +%{_libdir}/libadmsPreprocessor.so.0* + +%files devel +%defattr(-,root,root) +%{_libdir}/*.so + +%changelog