]> git.pld-linux.org Git - packages/cute.git/blob - cute.spec
be1f64421c8d43b3b8e2bc3cb719f05654bb654c
[packages/cute.git] / cute.spec
1 Summary:        CUTE User-friendly Text Editor
2 Summary(pl):    CUTE - przyjazny dla u¿ytkownika edytor tekstu
3 Name:           cute
4 Version:        0.2.9
5 Release:        3
6 License:        GPL
7 Group:          X11/Development/Tools
8 Source0:        http://dl.sourceforge.net/cute/%{name}-%{version}.tar.gz
9 # Source0-md5:  08da2882c51f2199ac0812a3500ddec6
10 URL:            http://cute.sourceforge.net/
11 BuildRequires:  autoconf >= 2.53
12 BuildRequires:  automake >= 1.6.1
13 BuildRequires:  python-devel
14 BuildRequires:  qscintilla-devel
15 BuildRequires:  sed >= 4.0
16 BuildRequires:  qmake
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 CUTE is a Qt and Scintilla based text editor which can be easily
21 extended using Python. Its main purpose is to be an user-friendly
22 source code editor with a common graphical user interface. The editor
23 supports syntax highlighting for many languages, tags files and
24 projects.
25
26 %description -l pl
27 CUTE to oparty na Qt i Scintilli edytor tekstu, który mo¿na ³atwo
28 rozszerzaæ przy u¿yciu Pythona. G³ównym jego celem jest bycie
29 przyjaznym dla u¿ytkownika edytorem kodu ¼ród³owego ze wspólnym
30 graficznym interfejsem u¿ytkownika. Edytor obs³uguje pod¶wietlanie
31 sk³adni dla wielu jêzyków, pliki znaczników oraz projekty.
32
33 %prep
34 %setup -q
35
36 %build
37 export QTDIR=%{_prefix}
38 export QMAKESPEC="%{_datadir}/qt/mkspecs/linux-g++/"
39 rm -rf qscintilla
40 cd cute
41 sed -i -e 's#^PYTHON_INCLUDE_DIR.*=.*#PYTHON_INCLUDE_DIR = %{py_incdir}#g' cute.pro
42 sed -i -e 's#^PYTHON_LIB_DIR.*=.*#PYTHON_LIB_DIR = %{py_libdir}#g' cute.pro
43 sed -i -e 's#^QEXTSCINTILLADIR.*=.*#QEXTSCINTILLADIR = %{_includedir}#g' cute.pro
44 sed -i -e 's#-lpython2.2#-lpython#g' cute.pro
45 %configure
46 %{__make}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT{%{_bindir},%{_pixmapsdir},%{_datadir}/%{name}/{langs,lib/scripts}}
51
52 cd cute
53 install ../bin/cute $RPM_BUILD_ROOT%{_bindir}
54 install langs/*.* $RPM_BUILD_ROOT%{_datadir}/%{name}/langs
55 install scripts/*.* $RPM_BUILD_ROOT%{_datadir}/%{name}/lib/scripts
56 install icons/cute.xpm $RPM_BUILD_ROOT%{_pixmapsdir}
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %files
62 %defattr(644,root,root,755)
63 %doc cute/doc/doc cute/cute-api
64 %attr(755,root,root) %{_bindir}/*
65 %{_datadir}/%{name}
66 %{_pixmapsdir}/*.*
This page took 0.02887 seconds and 2 git commands to generate.