1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 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
|