-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathkuzya.spec
executable file
·84 lines (70 loc) · 2.56 KB
/
kuzya.spec
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
# spec file for package kuzya (Version 2.0.0)
#
# Copyright (c) 2009 Fedora Linux, Lviv, Ukrain.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
Name: kuzya
Summary: Integrated Development Environment for students
Version: 2.1.11
Source0: %{name}-%{version}.tar.gz
Group: Development/Tools
Release: fc13
License: GPL
Packager: Volodymyr Shevchyk <[email protected]>
Vendor: PLLUG
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
Kuzya is simple crossplatform IDE for people who study
programming. Main idea of it is to concentrate attention
of the users only on learning the programming language
but not on usage of IDE.
#
Idea:
--------
Grygoriy Zlobin <[email protected]>
Team leader:
--------
Andriy Shevchyk <[email protected]>>
Developers:
--------
Volodymyr Shevchyk <[email protected]>
Viktor Sklyar <[email protected]>>
Alex Chmykhalo <[email protected]>
BuildRequires: qt4-devel, qscintilla
%prep
%setup -q
%build
qmake-qt4
make
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/share/%{name}/doc/
mkdir -p $RPM_BUILD_ROOT/usr/include
mkdir -p $RPM_BUILD_ROOT/usr/share/%{name}/
mkdir -p $RPM_BUILD_ROOT/usr/share/%{name}/resources/translations
mkdir -p $RPM_BUILD_ROOT/usr/lib64/fpc/2.2.4/units/x86_64-linux/graph/
mkdir -p $RPM_BUILD_ROOT/usr/bin
cp -fr ./doc/Kuzya_Help/* $RPM_BUILD_ROOT/usr/share/%{name}/doc/
cp -f ./graphics/c/graphics.h $RPM_BUILD_ROOT/usr/include
cp -fr ./profiles $RPM_BUILD_ROOT/usr/share/%{name}/
cp -fr ./resources $RPM_BUILD_ROOT/usr/share/%{name}/
cp -fr ./resources/icon/kuzya.png $RPM_BUILD_ROOT/usr/share/icons/
cp -fr ./resources/linux/kuzya.desktop $RPM_BUILD_ROOT/usr/share/applications/
cp -fr ./src/images $RPM_BUILD_ROOT/usr/share/%{name}/src/
cp -fr ./resources/qss $RPM_BUILD_ROOT/usr/share/%{name}/resources/
cp -fr ./src/images/kuzya.png $RPM_BUILD_ROOT/usr/share/%{name}/
cp -f ./graphics/fpc/unit/graph.o $RPM_BUILD_ROOT/usr/bin
cp -f ./graphics/fpc/unit/graph.ppu $RPM_BUILD_ROOT/usr/bin
install -Dpm 755 ./bin/%{name}graph $RPM_BUILD_ROOT/usr/bin/%{name}graph
install -Dpm 755 ./bin/%{name} $RPM_BUILD_ROOT/usr/bin/%{name}
install -Dpm 755 ./resources/translations/*.qm $RPM_BUILD_ROOT/usr/share/%{name}/resources/translations
%files
%defattr(-,root,root,0755)
/usr/bin/
/usr/share/%{name}/doc/
/usr/include/
/usr/share/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
rm -fr /root/rpmbuild/BUILD/%{name}