File ksimus.spec of Package ksimus
#
# spec file for package ksimus (Version 0.3.6.2)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: ksimus
BuildRequires: kdelibs3-devel
License: GPL v2 or later
Group: Productivity/Scientific/Electronics
Summary: Simulation, Automation, and Visualization of Electrical Circuits
Version: 0.3.6.2
Release: 139
%define rversion 0.3.6
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://ksimus.berlios.de
Source0: %{name}-%{version}.tar.bz2
Source1: %{name}-datarecorder-%{rversion}.tar.bz2
Source2: %{name}-boolean-%{rversion}.tar.bz2
Source3: %{name}-floatingpoint-%{rversion}.tar.bz2
Patch0: boolean-automake.dif
Patch1: datarecorder-automake.dif
Patch2: ksimus-automake.dif
Patch3: ksimus-gcc4.diff
Patch4: ksimusfloatingpoint-automake.dif
Patch5: ksimus.diff
Patch6: ksimus-datarecorder.diff
Patch7: ksimus-boolean.diff
Patch8: ksimus-floatingpoint.diff
Patch9: ksimus-0.3.6-gcc43.diff
Patch10: ksimus-boolean-0.3.6-gcc43.diff
%description
KSimus is a tool for the simulation, automation, and visualization of
technical processes (currently limited to idealized logic circuits). It
is also useful for education and experiments in the scope of logical
and automatic control circuits.
Authors:
--------
Rasmus Diekenbrock <ksimus@gmx.de>
%package devel
Summary: Simulation, Automation, and Visualization of Electrical Circuits
Requires: %name = %version
Group: Productivity/Scientific/Electronics
%description devel
KSimus is a tool for the simulation, automation, and visualization of
technical processes (currently limited to idealized logic circuits). It
is also useful for education and experiments in the scope of logical
and automatic control circuits.
Authors:
--------
Rasmus Diekenbrock <ksimus@gmx.de>
%prep
%setup -q -b 1 -b 2 -b 3 -n ksimus-%{rversion}
%patch5
%patch3
%patch9
. /etc/opt/kde3/common_options
update_admin --no-unsermake
cd ../ksimus-datarecorder-%{rversion}
%patch6
grep -v ^CHECK_KSIMUS configure.in.in > configure.in.in.new
mv configure.in.in.new configure.in.in
update_admin
cd ../ksimus-boolean-%{rversion}
%patch7
%patch10
grep -v ^CHECK_KSIMUS configure.in.in > configure.in.in.new
mv configure.in.in.new configure.in.in
update_admin
cd ../ksimus-floatingpoint-%{rversion}
%patch8
grep -v ^CHECK_KSIMUS configure.in.in > configure.in.in.new
mv configure.in.in.new configure.in.in
update_admin --no-unsermake
%build
rm -rf $RPM_BUILD_ROOT
. /etc/opt/kde3/common_options
for i in . ksimus-datarecorder-%{rversion} ksimus-boolean-%{rversion} ksimus-floatingpoint-%{rversion}; do
cd $i
./configure $configkde \
--with-extra-includes=${RPM_BUILD_ROOT}/opt/kde3/include/ \
--with-extra-libs=${RPM_BUILD_ROOT}/opt/kde3/%_lib/ \
--disable-final
make %{?jobs:-j%jobs}
make DESTDIR=$RPM_BUILD_ROOT install
cd ..
# export CXXFLAGS="$_CXXFLAGS -I${RPM_BUILD_ROOT}/opt/kde3/include/ -L${RPM_BUILD_ROOT}/opt/kde3/lib/ "
done
%install
perl -spi -e "s@$RPM_BUILD_ROOT@@g" ${RPM_BUILD_ROOT}/opt/kde3/%_lib/ksimus/*.la
%if %suse_version > 1000
%find_lang %name --all-name
%else
%find_lang %name
%endif
%if %suse_version < 1010
%suse_update_desktop_file %name Engineering
%else
%suse_update_desktop_file -G "Network Simulator" %name Engineering
%endif
%clean
rm -rf ${RPM_BUILD_ROOT}
%files -f %name.lang
%defattr(-,root,root)
%doc README AUTHORS ChangeLog COPYING
/opt/kde3/bin/*
/opt/kde3/%_lib/ksimus
/opt/kde3/share/icons/??color
/opt/kde3/share/appl*/*/*.desktop
/opt/kde3/share/apps/ksimus
/opt/kde3/share/mimelnk/*/*.desktop
%files devel
%defattr(-,root,root)
/opt/kde3/include/ksimus
%changelog
* Wed Oct 24 2007 - wstephenson@suse.de
- Fix errors exposed by GCC 4.3
* Wed May 23 2007 - dmueller@suse.de
- split off -devel package
* Wed May 24 2006 - adrian@suse.de
- fix build for < 10.1
* Wed Apr 19 2006 - stbinner@suse.de
- fix build for supplementary/10.1
* Wed Feb 15 2006 - stbinner@suse.de
- add GenericName to .desktop file
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Dec 20 2005 - dmueller@suse.de
- fix file list
* Mon Dec 19 2005 - stbinner@suse.de
- update to version 0.3.6-2
* Thu Apr 07 2005 - coolo@suse.de
- fix build with gcc4
* Thu Feb 17 2005 - adrian@suse.de
- menu entry moved to xdg dir
* Tue Jan 11 2005 - adrian@suse.de
- fix build with further disabling unsermake
* Tue Apr 27 2004 - coolo@suse.de
- fix build
* Thu Apr 15 2004 - coolo@suse.de
- build without unsermake
* Wed Nov 05 2003 - ro@suse.de
- fix build
- don't build as root
* Wed Sep 03 2003 - adrian@suse.de
- add Categories
* Wed Jul 23 2003 - coolo@suse.de
- don't leave $RPM_BUILD_ROOT traces
* Thu Jun 12 2003 - coolo@suse.de
- use %%find_lang
* Sat May 31 2003 - adrian@suse.de
- update to ksimus 0.3.6
* Fri Nov 08 2002 - coolo@suse.de
- fix build
* Tue Oct 15 2002 - coolo@suse.de
- update to ksimus 0.3.5
* Sun Jun 09 2002 - adrian@suse.de
- use update_admin
* Fri May 17 2002 - coolo@suse.de
- split fixes from admin update
- update admin again
* Sat Apr 13 2002 - adrian@suse.de
- fixes for build with gcc 3
* Wed Apr 10 2002 - adrian@suse.de
- update to version 0.3.4
- build for KDE 3
- add floatingpoint module
* Mon Feb 04 2002 - adrian@suse.de
- update to version 0.3.3.1
* Sat Dec 29 2001 - adrian@suse.de
- update to version 0.3.1
* Sat Dec 29 2001 - adrian@suse.de
- initial packaging