]> git.pld-linux.org Git - packages/qscintilla.git/blame - qscintilla.spec
Revert "- BC on itself"
[packages/qscintilla.git] / qscintilla.spec
CommitLineData
811359e1 1%define scintilla_ver 1.71
c62ec040 2Summary: QScintilla - a port of Neil Hodgson's Scintilla C++ editor class to Qt
de7a7589 3Summary(pl.UTF-8): QScintilla - port do Qt klas C++ edytora Scintilla autorstwa Neila Hodgsona
40378249 4Name: qscintilla
c968b858 5Version: 1.7.1
059ff021 6Release: 3
3e4e67ca 7Epoch: 1
56e6285a 8License: GPL v2
c490698a 9Group: X11/Libraries
c968b858
MK
10Source0: http://www.riverbankcomputing.com/Downloads/QScintilla1/QScintilla-%{scintilla_ver}-gpl-%{version}.tar.gz
11# Source0-md5: dfa047b45d4f09ae8d4a8a431ba88a5a
c490698a 12URL: http://www.riverbankcomputing.co.uk/qscintilla/index.php
bd576e14 13BuildRequires: qmake
7fdcf31c 14BuildRequires: qt-devel >= 3.0
e276d22e 15BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
c490698a
AM
16
17%description
7fdcf31c
JB
18QScintilla is a port to Qt of Neil Hodgson's Scintilla C++ editor
19class.
c490698a 20
826c1c0e 21%description -l pl.UTF-8
9e68f31f
JB
22QScintilla jest portem do Qt klas C++ edytora Scintilla autorstwa
23Neila Hodgsona.
c490698a
AM
24
25%package devel
26Summary: Development files for the QScintilla
de7a7589 27Summary(pl.UTF-8): Pliki nagłówkowe dla QScintilla
8754af58 28Group: X11/Development/Libraries
a071803b 29Requires: %{name} = %{epoch}:%{version}-%{release}
7fdcf31c 30Requires: qt-devel >= 3.0
c490698a
AM
31
32%description devel
9e68f31f
JB
33This package contains the header files necessary to develop
34applications using QScintilla - header files.
c490698a 35
826c1c0e
JR
36%description devel -l pl.UTF-8
37Pakiet tem zawiera pliki nagłówkowe potrzebne do tworzenia i
38kompilacji aplikacji korzystających z biblioteki QScintilla.
c490698a
AM
39
40%prep
c968b858 41%setup -q -n QScintilla-%{scintilla_ver}-gpl-%{version}
c490698a
AM
42
43%build
44QTDIR=%{_prefix}
45export QTDIR
46cd qt
7fdcf31c
JB
47# change DESTDIR - original .pro tries to build directly to QTDIR
48qmake -o Makefile -after DESTDIR=out qscintilla.pro \
49 QMAKE_CXX="%{__cxx}" \
50 QMAKE_CXXFLAGS_RELEASE="%{rpmcxxflags}" \
51 QMAKE_LFLAGS_RELEASE="%{rpmldflags}"
c490698a
AM
52%{__make}
53
c490698a
AM
54%install
55rm -rf $RPM_BUILD_ROOT
56install -d $RPM_BUILD_ROOT%{_includedir}/qt \
7fdcf31c 57 $RPM_BUILD_ROOT%{_libdir}
14fc76d2 58
7fdcf31c 59cp -df qt/out/libqscintilla{.so,.so.?,.so.*.*.*} $RPM_BUILD_ROOT%{_libdir}
9e68f31f 60install qt/qextscintilla*.h $RPM_BUILD_ROOT%{_includedir}/qt
c62ec040
JB
61
62# where should it be placed to be used?
63# README says $QTDIR/translations, but it doesn't exist
7fdcf31c
JB
64install -Dp qt/qscintilla_de.qm $RPM_BUILD_ROOT%{_datadir}/locale/de/LC_MESSAGES/qscintilla.qm
65install -Dp qt/qscintilla_fr.qm $RPM_BUILD_ROOT%{_datadir}/locale/fr/LC_MESSAGES/qscintilla.qm
66install -Dp qt/qscintilla_pt_br.qm $RPM_BUILD_ROOT%{_datadir}/locale/pt_BR/LC_MESSAGES/qscintilla.qm
67install -Dp qt/qscintilla_ru.qm $RPM_BUILD_ROOT%{_datadir}/locale/ru/LC_MESSAGES/qscintilla.qm
c490698a
AM
68
69%clean
70rm -rf $RPM_BUILD_ROOT
71
9e68f31f
JB
72%post -p /sbin/ldconfig
73%postun -p /sbin/ldconfig
74
c490698a
AM
75%files
76%defattr(644,root,root,755)
c62ec040
JB
77%doc ChangeLog NEWS README
78%attr(755,root,root) %{_libdir}/libqscintilla.so.*.*.*
7fdcf31c 79%attr(755,root,root) %ghost %{_libdir}/libqscintilla.so.7
3dcbfe88 80%lang(de) %{_datadir}/locale/de/LC_MESSAGES/qscintilla.qm
56e6285a 81%lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/qscintilla.qm
7fdcf31c 82%lang(pt_BR) %{_datadir}/locale/pt_BR/LC_MESSAGES/qscintilla.qm
56e6285a 83%lang(ru) %{_datadir}/locale/ru/LC_MESSAGES/qscintilla.qm
c490698a
AM
84
85%files devel
86%defattr(644,root,root,755)
7fdcf31c 87%doc doc/{Scintilla,html}
c62ec040 88%attr(755,root,root) %{_libdir}/libqscintilla.so
7fdcf31c 89%{_includedir}/qt/qextscintilla*.h
This page took 0.053156 seconds and 4 git commands to generate.