%define scintilla_ver 1.71 Summary: QScintilla - a port of Neil Hodgson's Scintilla C++ editor class to Qt Summary(pl.UTF-8): QScintilla - port do Qt klas C++ edytora Scintilla autorstwa Neila Hodgsona Name: qscintilla Version: 1.7.1 Release: 4 Epoch: 1 License: GPL v2 Group: X11/Libraries Source0: http://www.riverbankcomputing.com/Downloads/QScintilla1/QScintilla-%{scintilla_ver}-gpl-%{version}.tar.gz # Source0-md5: dfa047b45d4f09ae8d4a8a431ba88a5a URL: http://www.riverbankcomputing.co.uk/qscintilla/index.php BuildRequires: qmake BuildRequires: qt-devel >= 3.0 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description QScintilla is a port to Qt of Neil Hodgson's Scintilla C++ editor class. %description -l pl.UTF-8 QScintilla jest portem do Qt klas C++ edytora Scintilla autorstwa Neila Hodgsona. %package devel Summary: Development files for the QScintilla Summary(pl.UTF-8): Pliki nagłówkowe dla QScintilla Group: X11/Development/Libraries Requires: %{name} = %{epoch}:%{version}-%{release} Requires: qt-devel >= 3.0 %description devel This package contains the header files necessary to develop applications using QScintilla - header files. %description devel -l pl.UTF-8 Pakiet tem zawiera pliki nagłówkowe potrzebne do tworzenia i kompilacji aplikacji korzystających z biblioteki QScintilla. %prep %setup -q -n QScintilla-%{scintilla_ver}-gpl-%{version} %build QTDIR=%{_prefix} export QTDIR cd qt # change DESTDIR - original .pro tries to build directly to QTDIR qmake -o Makefile -after DESTDIR=out qscintilla.pro \ QMAKE_CXX="%{__cxx}" \ QMAKE_CXXFLAGS_RELEASE="%{rpmcxxflags}" \ QMAKE_LFLAGS_RELEASE="%{rpmldflags}" %{__make} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_includedir}/qt \ $RPM_BUILD_ROOT%{_libdir} cp -df qt/out/libqscintilla{.so,.so.?,.so.*.*.*} $RPM_BUILD_ROOT%{_libdir} install qt/qextscintilla*.h $RPM_BUILD_ROOT%{_includedir}/qt # where should it be placed to be used? # README says $QTDIR/translations, but it doesn't exist install -Dp qt/qscintilla_de.qm $RPM_BUILD_ROOT%{_datadir}/locale/de/LC_MESSAGES/qscintilla.qm install -Dp qt/qscintilla_fr.qm $RPM_BUILD_ROOT%{_datadir}/locale/fr/LC_MESSAGES/qscintilla.qm install -Dp qt/qscintilla_pt_br.qm $RPM_BUILD_ROOT%{_datadir}/locale/pt_BR/LC_MESSAGES/qscintilla.qm install -Dp qt/qscintilla_ru.qm $RPM_BUILD_ROOT%{_datadir}/locale/ru/LC_MESSAGES/qscintilla.qm %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(644,root,root,755) %doc ChangeLog NEWS README %attr(755,root,root) %{_libdir}/libqscintilla.so.*.*.* %attr(755,root,root) %ghost %{_libdir}/libqscintilla.so.7 %lang(de) %{_datadir}/locale/de/LC_MESSAGES/qscintilla.qm %lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/qscintilla.qm %lang(pt_BR) %{_datadir}/locale/pt_BR/LC_MESSAGES/qscintilla.qm %lang(ru) %{_datadir}/locale/ru/LC_MESSAGES/qscintilla.qm %files devel %defattr(644,root,root,755) %doc doc/{Scintilla,html} %attr(755,root,root) %{_libdir}/libqscintilla.so %{_includedir}/qt/qextscintilla*.h