diff options
Diffstat (limited to 'CSXCAD/linux')
-rw-r--r-- | CSXCAD/linux/CSXCAD.dsc | 9 | ||||
-rw-r--r-- | CSXCAD/linux/CSXCAD.spec | 131 | ||||
-rw-r--r-- | CSXCAD/linux/CSXGeomPlot.m.patch | 25 | ||||
-rw-r--r-- | CSXCAD/linux/README.patch | 15 | ||||
-rw-r--r-- | CSXCAD/linux/debian.changelog | 27 | ||||
-rw-r--r-- | CSXCAD/linux/debian.control | 18 | ||||
-rw-r--r-- | CSXCAD/linux/debian.csxcad-dev.install | 2 | ||||
-rw-r--r-- | CSXCAD/linux/debian.csxcad.docs | 2 | ||||
-rw-r--r-- | CSXCAD/linux/debian.csxcad.install | 2 | ||||
-rw-r--r-- | CSXCAD/linux/debian.rules | 8 | ||||
-rw-r--r-- | CSXCAD/linux/debian.series | 2 |
11 files changed, 241 insertions, 0 deletions
diff --git a/CSXCAD/linux/CSXCAD.dsc b/CSXCAD/linux/CSXCAD.dsc new file mode 100644 index 0000000..43849b5 --- /dev/null +++ b/CSXCAD/linux/CSXCAD.dsc @@ -0,0 +1,9 @@ +Format: 1.0 +Source: csxcad +Version: 0.3.0-3 +Binary: csxcad, csxcad-dev +Maintainer: Thorsten Liebig <thorsten.liebig@uni-due.de>, Sebastian Held <sebastian.held@gmx.de> +Homepage: http://www.openems.de +Architecture: any +Build-Depends: debhelper (>=7.0.50~), qt4-qmake, libfparser4, libhdf5-serial-dev, libtinyxml-dev, libvtk5-qt4-dev +DEBTRANSFORM-TAR: CSXCAD-0.3.0.tar.bz2 diff --git a/CSXCAD/linux/CSXCAD.spec b/CSXCAD/linux/CSXCAD.spec new file mode 100644 index 0000000..38fd332 --- /dev/null +++ b/CSXCAD/linux/CSXCAD.spec @@ -0,0 +1,131 @@ +# +# spec file for package [spectemplate] +# +# Copyright (c) 2010 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/ +# + +# norootforbuild + +Name: CSXCAD +Version: 0.3.0 +Release: 2 +Summary: Library for Geometric Primitives primarily used by openEMS +Group: Development/Languages/C and C++ +License: LGPLv3 +URL: http://www.openems.de +Source0: %{name}-%{version}.tar.bz2 +Patch0: CSXGeomPlot.m.patch +Patch1: README.patch +# BuildArch: noarch +BuildRoot: %_tmppath/%name-%version-build + +BuildRequires: libqt4-devel gcc-c++ libfparser4-devel hdf5-devel tinyxml-devel vtk-devel +#Requires: + + +# determine qt4 qmake executable +%if 0%{?fedora} + %global qmake qmake-qt4 +%else + %global qmake qmake +%endif + + + +%description +Library for Geometric Primitives primarily used by openEMS. + +%package -n lib%{name}0 +Summary: Shared Library for %{name} +Group: Development/Languages/C and C++ + +%description -n lib%{name}0 +The lib%{name}0 package contains the shared library. + +%package devel +Summary: Development files for %{name} +Group: Development/Languages/C and C++ +Requires: %{name} = %{version}-%{release} +Requires: lib%{name}0 = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + + +%prep +%setup -q +%patch0 -p1 +%patch1 -p1 + +%build +%{qmake} QMAKE_CFLAGS="%optflags" QMAKE_CXXFLAGS="%optflags" LIB_SUFFIX="$(echo %_lib | cut -b4-)" +make %{?_smp_mflags} + + +%install +make INSTALL_ROOT=%{buildroot} install +find %{buildroot} -name '*.la' -exec rm -f {} ';' + + +%clean +rm -rf %{buildroot} + + +%post -n lib%{name}0 -p /sbin/ldconfig + +%postun -n lib%{name}0 -p /sbin/ldconfig + + +%files +%defattr(-,root,root) +%doc COPYING README +/usr/share/%{name} +#/usr/share/%{name}/matlab +#/usr/share/%{name}/matlab/* + + +%files -n lib%{name}0 +%defattr(-,root,root) +%{_libdir}/*.so.* + + +%files devel +%defattr(-,root,root) +%{_includedir}/* +%{_libdir}/*.so + + +%changelog +* Sat Jun 23 2012 Sebastian Held <sebastian.held@gmx.de> - 0.3.0-2 +- fixed missing files and version information +* Sun Jun 17 2012 Sebastian Held <sebastian.held@gmx.de> - 0.3.0-1 +- new upstream version +* Wed Feb 29 2012 Sebastian Held <sebastian.held@gmx.de> - 0.2.4-7 +- new upstream fixes +* Sat Jan 21 2012 Sebastian Held <sebastian.held@gmx.de> - 0.2.4-6 +- new upstream fixes +* Thu Dec 29 2011 Sebastian Held <sebastian.held@gmx.de> - 0.2.4-5 +- added README +* Thu Dec 22 2011 Sebastian Held <sebastian.held@gmx.de> - 0.2.4-4 +- new upstream fix and support for Fedora 16 +* Mon Dec 05 2011 Sebastian Held <sebastian.held@gmx.de> - 0.2.4-3 +- includes now in /usr/include/CSXCAD +- fix for CSXGeomView.m +* Sun Dec 04 2011 Sebastian Held <sebastian.held@gmx.de> - 0.2.4-2 +- missing build dep vtk-devel +* Sun Dec 04 2011 Sebastian Held <sebastian.held@gmx.de> - 0.2.4-1 +- next release +* Tue Sep 29 2011 Sebastian Held <sebastian.held@gmx.de> - 0.0.24-1 +- initial version diff --git a/CSXCAD/linux/CSXGeomPlot.m.patch b/CSXCAD/linux/CSXGeomPlot.m.patch new file mode 100644 index 0000000..09dc664 --- /dev/null +++ b/CSXCAD/linux/CSXGeomPlot.m.patch @@ -0,0 +1,25 @@ +diff --git a/matlab/CSXGeomPlot.m b/matlab/CSXGeomPlot.m +index 21d3ef8..37427a1 100644 +--- a/matlab/CSXGeomPlot.m ++++ b/matlab/CSXGeomPlot.m +@@ -13,18 +13,10 @@ if nargin < 1 + error 'specify the xml file to open' + end + +-filename = mfilename('fullpath'); +-dir = fileparts( filename ); +-AppCSXCAD_Path = [dir filesep '../../AppCSXCAD' filesep]; +- +-if (~exist(AppCSXCAD_Path,'dir')) +- AppCSXCAD_Path = [dir filesep '..' filesep] +-end +- + if isunix +- AppCSXCAD_Path = [AppCSXCAD_Path 'AppCSXCAD.sh']; ++ AppCSXCAD_Path = 'AppCSXCAD.sh'; + else +- AppCSXCAD_Path = [AppCSXCAD_Path 'AppCSXCAD']; ++ AppCSXCAD_Path = 'AppCSXCAD'; + end + + command = [AppCSXCAD_Path ' --disableEdit ' CSX_filename]; diff --git a/CSXCAD/linux/README.patch b/CSXCAD/linux/README.patch new file mode 100644 index 0000000..ea947f6 --- /dev/null +++ b/CSXCAD/linux/README.patch @@ -0,0 +1,15 @@ +diff --git a/README b/README +index 9b5056e..fc3176c 100644 +--- a/README ++++ b/README +@@ -11,8 +11,8 @@ Forum: http://openems.de/forum/ + Tutorials: http://openems.de/index.php/Tutorials + + +-To use CSXCAD from Matlab or Octave, you need to include the <CSXCAD-install-folder>/matlab folder in the respective environment: +-> addpath( '<CSXCAD-install-folder>/matlab' ); ++To use CSXCAD from Matlab or Octave, you need to include the /usr/share/CSXCAD/matlab folder in the respective environment: ++> addpath( '/usr/share/CSXCAD/matlab' ); + + To verify the correct installation follow the instructions at: + http://openems.de/index.php/Tutorial:_First_Steps diff --git a/CSXCAD/linux/debian.changelog b/CSXCAD/linux/debian.changelog new file mode 100644 index 0000000..dfbccbb --- /dev/null +++ b/CSXCAD/linux/debian.changelog @@ -0,0 +1,27 @@ +csxcad (0.3.0-3) stable; urgency=low + * replaced recommended deps by suggested deps + -- Sebastian Held <sebastian.held@gmx.de> Sat, 30 Jun 2012 12:16:00 +0200 +csxcad (0.3.0-2) stable; urgency=low + * fixed missing files and version information + -- Sebastian Held <sebastian.held@gmx.de> Sat, 23 Jun 2012 11:58:00 +0200 +csxcad (0.3.0-1) stable; urgency=low + * New upstream version + -- Sebastian Held <sebastian.held@gmx.de> Sun, 17 Jun 2012 21:54:30 +0200 +csxcad (0.2.4-6) stable; urgency=low + * New upstream fix + -- Sebastian Held <sebastian.held@gmx.de> Wed, 29 Feb 2012 23:20:00 +0100 +csxcad (0.2.4-5) stable; urgency=low + * New upstream fix + -- Sebastian Held <sebastian.held@gmx.de> Sat, 21 Jan 2012 21:22:00 +0100 +csxcad (0.2.4-4) stable; urgency=low + * Added README + -- Sebastian Held <sebastian.held@gmx.de> Thu, 29 Dec 2011 21:06:00 +0100 +csxcad (0.2.4-3) stable; urgency=low + * New upstream fix + -- Sebastian Held <sebastian.held@gmx.de> Thu, 22 Dec 2011 22:45:00 +0100 +csxcad (0.2.4-2) stable; urgency=low + * New upstream release + -- Sebastian Held <sebastian.held@gmx.de> Sun, 4 Dec 2011 15:20:00 +0100 +csxcad (0.0.24-1) stable; urgency=low + * Initial Release + -- Sebastian Held <sebastian.held@gmx.de> Thu, 6 Oct 2011 17:58:38 +0200 diff --git a/CSXCAD/linux/debian.control b/CSXCAD/linux/debian.control new file mode 100644 index 0000000..54ac8ab --- /dev/null +++ b/CSXCAD/linux/debian.control @@ -0,0 +1,18 @@ +Source: csxcad +Section: contrib/libdevel +Priority: optional +Maintainer: Sebastian Held <sebastian.held@gmx.de> +Build-Depends: debhelper (>=7.0.50~), qt4-qmake, libfparser4, libhdf5-serial-dev, libtinyxml-dev, libvtk5-qt4-dev + +Package: csxcad +Architecture: any +Depends: ${shlibs:Depends} +Suggests: appcsxcad +Description: Library for Geometric Primitives primarily used by openEMS + Library for Geometric Primitives primarily used by openEMS. + +Package: csxcad-dev +Architecture: any +Depends: ${shlibs:Depends} csxcad (= ${binary:Version}) +Description: Development files for csxcad + The csxcad-dev package contains libraries and header files for developing applications that use csxcad. diff --git a/CSXCAD/linux/debian.csxcad-dev.install b/CSXCAD/linux/debian.csxcad-dev.install new file mode 100644 index 0000000..1537de1 --- /dev/null +++ b/CSXCAD/linux/debian.csxcad-dev.install @@ -0,0 +1,2 @@ +usr/include/* +usr/lib/*.so diff --git a/CSXCAD/linux/debian.csxcad.docs b/CSXCAD/linux/debian.csxcad.docs new file mode 100644 index 0000000..2e3abae --- /dev/null +++ b/CSXCAD/linux/debian.csxcad.docs @@ -0,0 +1,2 @@ +COPYING +README diff --git a/CSXCAD/linux/debian.csxcad.install b/CSXCAD/linux/debian.csxcad.install new file mode 100644 index 0000000..96f3c01 --- /dev/null +++ b/CSXCAD/linux/debian.csxcad.install @@ -0,0 +1,2 @@ +usr/lib/*.so.* +usr/share/CSXCAD/* diff --git a/CSXCAD/linux/debian.rules b/CSXCAD/linux/debian.rules new file mode 100644 index 0000000..a6ec285 --- /dev/null +++ b/CSXCAD/linux/debian.rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f + +export DH_VERBOSE=1 +export DH_OPTIONS=-v +export DH_COMPAT=7 + +%: + dh $@ diff --git a/CSXCAD/linux/debian.series b/CSXCAD/linux/debian.series new file mode 100644 index 0000000..a16dfed --- /dev/null +++ b/CSXCAD/linux/debian.series @@ -0,0 +1,2 @@ +CSXGeomPlot.m.patch -p1 +README.patch -p1 |