Am Donnerstag, 6. Februar 2003 09:55 schrieb Andy Neitzke:
> On Tue, 2003-02-04 at 17:44, Ralf Ahlbrink wrote:
> > If there is some interest for eric (and qscintilla) packages, I could
> > provide spec files.
>
> Actually, that would be quite helpful for me -- looks like I can't build
> the PyQt snapshot without qscintilla!  Thanks again for the specs you
> already sent,
>
> -Andy
%define version 3.0.1
%define py_ver %(%{__python} -c 'import sys; print sys.version[:3]')
%define libdir eric3

Summary:        Python IDE
Name:           eric
Version:        %{version}
Release:        1ra
License:        GPL
Group:          Development/Other
URL:            http://www.die-offenbachs.de/detlev/eric3.html
Source0:        %{name}-%{version}.tar.bz2
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires:  python >= %{py_ver}
Requires:       PyQt, qscintilla

%description
eric3 is a full featured Python IDE that is written in PyQt 
using the QScintilla editor widget.

%prep
%setup -q

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p  %{buildroot}%{_bindir}
%{__python} install.py \
        -b %{_bindir} \
        -d %{_libdir}/python%{py_ver}/site-packages \
        -i %{buildroot}

# sitecustomize.py into eric dir (in fact not needed)
mv %{buildroot}%{_libdir}/python%{py_ver}/site-packages/sitecustomize.py \
   %{buildroot}%{_libdir}/python%{py_ver}/site-packages/%{libdir}

# menu
(cd $RPM_BUILD_ROOT
mkdir -p ./usr/lib/menu
cat > ./usr/lib/menu/%{name} <<EOF
?package(%{name}): \
command="/usr/bin/eric3" \
title="Eric" \
longtitle="A Python IDE" \
icon="development_environment_section.png" \
needs="x11" \
section="Applications/Development/Development environments"
EOF
)
  
%post
%update_menus
 
%postun
%clean_menus

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc README
%{_libdir}/python%{py_ver}/site-packages/%{libdir}
%{_bindir}/*
%{_libdir}/menu/%{name}

%changelog
* Sun Jan 12 2003 RA <[EMAIL PROTECTED]> 3.0.1-1ra
- Initial build
%define name qscintilla
%define version 1.49
%define rel 20021225
%define release snapshot%rel

# ToDo
%define libvers 0.0.0

%define qtdir   /usr/lib/qt3

Summary:        QScintilla is a port to Qt of Scintilla C++ editor class. 
Name:           %{name}
Version:        %{version}
Release:        %{release}
License:        GPL
Group:          System/Libraries
Source:         %{name}-%{version}-x11-gpl-snapshot-%{rel}.tar.bz2
URL:            http://www.riverbankcomputing.co.uk/qscintilla/
BuildRoot:      %{_tmppath}/%{name}-buildroot
Prefix:         %{_prefix}

%description
QScintilla is a port to Qt of Neil Hodgson's Scintilla C++ editor class. 

As well as features found in standard text editing components, 
QScintilla includes features especially useful when editing and debugging 
source code. These include support for syntax styling, error indicators, 
code completion and call tips. The selection margin can contain markers 
like those used in debuggers to indicate breakpoints and the current line. 
Styling choices are more open than with many editors, allowing the use of 
proportional fonts, bold and italics, multiple foreground and background 
colours and multiple fonts.

%prep
rm -rf $RPM_BUILD_ROOT
mkdir $RPM_BUILD_ROOT

%setup -q -n %{name}-%{version}-x11-gpl-snapshot-%{rel}

%build
export QTDIR=%{qtdir}
cd qt
%{qtdir}/bin/qmake -o Makefile qscintilla.pro
%make

%install
cd qt
mkdir -p %{buildroot}/%{qtdir}/{lib,include,translations}
cp -a libqscintilla.so* %{buildroot}/%{qtdir}/lib
cp qextscintilla*.h %{buildroot}/%{qtdir}/include
cp qscintilla*.qm %{buildroot}/%{qtdir}/translations

%clean
rm -rf %{buildroot}

%files
%defattr(-, root, root, 755)
%doc LICENSE doc/html doc/Scintilla
%{qtdir}/lib/*
%{qtdir}/include/*
%{qtdir}/translations/*

%changelog
* Sat Jan 11 2003  <[EMAIL PROTECTED]> 1.49-snapshot
- snapshot 20021225
- ToDo: libification

Reply via email to