kumir2.spec 2.52 KB
Newer Older
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
# norootforbuild

%if 0%{?opensuse_bs}
%define is_fedora %{defined fedora}
%else
%define is_fedora %(if [ -f /etc/redhat-release ] ; then echo -n 1 ; else echo -n 0 ; fi)
%endif
Name:		kumir2
Summary:	Kumir education system
License:	GPL2+
Group:		Productivity/Scientific/Other
Version:	2.0.0
Release:	0
BuildRoot:	%_tmppath/%name-%version
%if %{is_fedora}
BuildRequires:	qt-devel >= 4.7.0
%else
BuildRequires:	libqt4-devel >= 4.7.0
%endif
BuildRequires:	python
BuildRequires:	gcc-c++ >= 4.5
BuildRequires:	pkgconfig(QtCore)
BuildRequires:	pkgconfig(QtGui)
BuildRequires:	cmake >= 2.8
Vendor:		NIISI RAS
Packager:	Victor Yacovlev <victor@lpm.org.ru>
Source:		%name-%version.tar.gz
URL:		http://www.niisi.ru/kumir/
%if 0%{?opensuse_bs}
BuildRequires:	-post-build-checks -rpmlint-Factory
%endif

%description
Second generation of well-known Kumir system

%prep
%setup

%build
mkdir build
cd build
cmake ../ -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%buildroot/usr
make -j 8

%install
cd build
make install

%clean
rm -rf %buildroot


%package bc
Summary:	Kumir compiler tool
Requires:	qt >= 4.7.0
Requires:	libQtCore.so.4
Requires:	libQtGui.so.4

%description bc
A console tool to compile Kumir program sources into 
executable byte code

%files bc
%defattr(-,root,root)
%dir %_libdir/kumir2/*
%dir %_bindir
%dir %_datadir/kumir2/*
%_libdir/kumir2/*
%_datadir/kumir2/*
%_bindir/kumir2-bc

%post bc -p /sbin/ldconfig

%postun bc -p /sbin/ldconfig

%package run
Summary:	Lightweight console Kumir bytecode interpreter

%description run
A stack-based executable engine with build-in standard modules
for evaluating Kumir programs


%files run
%defattr(-,root,root)
%dir %_bindir
%_bindir/kumir2-run


%changelog
* Thu Jan 24 2013 - Victor Yacovlev <kumir@lpm.org.ru>
- Initial public release of console-only tools

* Wed Sep 7 2011 - Kumir Team <kumir@lpm.org.ru>
- CLang backend for native code generation
- Shared memory mechanism for IPC replaced by process streams

* Tue Sep 6 2011 - Kumir Team <kumir@lpm.org.ru>
- Various UI fixes

* Tue Aug 30 2011 - Kumir Team <kumir@lpm.org.ru>
- Implemented help viewer
- Implemented code autocompleter
- Fixed some bugs

* Wed Aug 24 2011 - Kumir Team <kumir@lpm.org.ru>
- Implemented teacher mode
- Implemented variables view while running

* Mon Aug 15 2011 - Kumir Team <kumir@lpm.org.ru>
- Implemented integer/double overflow checking while running
- Added kumir2-run tool

* Thu Aug 11 2011 - Kumir Team <kumir@lpm.org.ru>
- Ready for preliminary testing

* Wed Jul 20 2011 - Kumir Team <kumir@lpm.org.ru>
- Usable functionality