]>
Commit | Line | Data |
---|---|---|
d0cc0a7f AM |
1 | # |
2 | Summary: CUTE User-friendly Text Editor | |
3 | Name: cute | |
4 | Version: 0.2.7 | |
5 | Release: 1 | |
6 | License: GPL | |
7 | Group: X11/Development/Tools | |
8 | Source0: http://dl.sourceforge.net/cute/%{name}-%{version}-1.tar.gz | |
9 | # Source0-md5: 4b7d088781ecb42944554e3c051af78c | |
10 | BuildRequires: autoconf >= 2.53 | |
11 | BuildRequires: automake >= 1.6.1 | |
12 | BuildRequires: python-devel | |
13 | BuildRequires: qscintilla-devel | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %description | |
17 | CUTE is a Qt and Scintilla based text editor which can be easily | |
18 | extended using Python It 's main purpose is to be an user-friendly | |
19 | source code editor with a common graphical user interface. The editor | |
20 | supports syntax highlighting for many languages, tags files and | |
21 | projects. | |
22 | ||
23 | %prep | |
24 | %setup -q | |
25 | ||
26 | %build | |
27 | export QTDIR=%{_prefix} | |
28 | export QMAKESPEC="%{_datadir}/qt/mkspecs/linux-g++/" | |
29 | rm -rf qscintilla | |
30 | cd cute | |
31 | sed -i -e 's#^PYTHON_INCLUDE_DIR.*=.*#PYTHON_INCLUDE_DIR = %{py_incdir}#g' cute.pro | |
32 | sed -i -e 's#^PYTHON_LIB_DIR.*=.*#PYTHON_LIB_DIR = %{py_libdir}#g' cute.pro | |
33 | sed -i -e 's#^QEXTSCINTILLADIR.*=.*#QEXTSCINTILLADIR = %{_includedir}#g' cute.pro | |
34 | sed -i -e 's#-lpython2.2#-lpython#g' cute.pro | |
35 | %configure | |
36 | %{__make} | |
37 | ||
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_pixmapsdir},%{_datadir}/%{name}/{langs,lib/scripts}} | |
41 | ||
42 | cd cute | |
43 | install ../bin/cute $RPM_BUILD_ROOT%{_bindir} | |
44 | install langs/*.* $RPM_BUILD_ROOT%{_datadir}/%{name}/langs | |
45 | install scripts/*.* $RPM_BUILD_ROOT%{_datadir}/%{name}/lib/scripts | |
46 | install icons/cute.xpm $RPM_BUILD_ROOT%{_pixmapsdir} | |
47 | ||
48 | %clean | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
53 | %doc cute/doc/doc cute/cute-api | |
54 | %attr(755,root,root) %{_bindir}/* | |
55 | %{_datadir}/%{name} | |
56 | %{_pixmapsdir}/*.* |