[521] | 1 | %{!?python_sitearch:%global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} |
---|
[5383] | 2 | %global pyqt4_version 4.9 |
---|
[521] | 3 | |
---|
[5383] | 4 | %define ver 2.29 |
---|
[521] | 5 | |
---|
[5383] | 6 | %define _qt4_version 4.8.0 |
---|
| 7 | %define _qt4_prefix %(pkg-config --variable prefix --silence-errors Qt 2>/dev/null || echo %{_libdir}/qt4) |
---|
| 8 | %define _qt4_libdir %(pkg-config --variable libdir --silence-errors Qt 2>/dev/null || echo %{_libdir}) |
---|
| 9 | %define _qt4_headerdir %(pkg-config --variable headerdir --silence-errors Qt 2>/dev/null || echo %{_includedir}) |
---|
[1444] | 10 | %define _qt4_translationdir %(pkg-config --variable translationdir --silence-errors Qt 2>/dev/null || echo %{_datadir}/qt4/translations) |
---|
| 11 | |
---|
[521] | 12 | Summary: A Scintilla port to Qt |
---|
| 13 | Name: qscintilla |
---|
[5383] | 14 | Version: 2.6 |
---|
| 15 | Release: 1%{?_dist_release} |
---|
[2725] | 16 | |
---|
[521] | 17 | # matches up (pretty much) with qt4 |
---|
| 18 | License: GPLv3 or GPLv2 with exceptions |
---|
| 19 | Group: Development/Tools |
---|
| 20 | URL: http://www.riverbankcomputing.co.uk/qscintilla |
---|
[2725] | 21 | |
---|
[521] | 22 | Source: QScintilla-gpl-%{version}.tar.gz |
---|
| 23 | # TODO: upstream this |
---|
| 24 | Patch1: QScintilla-2-gpl-Qt4-incpath.patch |
---|
| 25 | |
---|
| 26 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[3001] | 27 | BuildRequires: qt4-devel |
---|
[521] | 28 | BuildRequires: PyQt4-devel >= %{pyqt4_version} |
---|
[5383] | 29 | Requires: qt4 >= %{_qt4_version} |
---|
[521] | 30 | |
---|
| 31 | %description |
---|
| 32 | QScintilla is a port of Scintilla to the Qt GUI toolkit. |
---|
| 33 | |
---|
| 34 | This version of QScintilla is based on Scintilla v%{ver}. |
---|
| 35 | |
---|
| 36 | %package designer |
---|
| 37 | Summary: QScintilla designer plugin |
---|
| 38 | Group: Development/Tools |
---|
| 39 | Requires: %{name} = %{version}-%{release} |
---|
| 40 | Requires: qt4-designer |
---|
| 41 | |
---|
| 42 | %description designer |
---|
| 43 | %{summary}. |
---|
| 44 | |
---|
| 45 | %package devel |
---|
| 46 | Summary: QScintilla Development Files |
---|
| 47 | Group: Development/Libraries |
---|
[5383] | 48 | Requires: %{name} = %{version}-%{release} |
---|
| 49 | Requires: qt4-devel >= %{_qt4_version} |
---|
[521] | 50 | |
---|
| 51 | %description devel |
---|
| 52 | This packages contains the libraries, include and other files |
---|
| 53 | you can use to develop applications with QScintilla. |
---|
| 54 | |
---|
| 55 | %package python |
---|
| 56 | Summary: QScintilla PyQt4 bindings |
---|
| 57 | Group: Development/Libraries |
---|
| 58 | Requires: %{name} = %{version}-%{release} |
---|
| 59 | Requires: PyQt4 >= %{pyqt4_version} |
---|
| 60 | |
---|
| 61 | %description python |
---|
| 62 | %{summary}. |
---|
| 63 | |
---|
| 64 | %package python-devel |
---|
| 65 | Summary: Development files for QScintilla PyQt4 bindings |
---|
| 66 | Group: Development/Libraries |
---|
| 67 | Requires: %{name}-python = %{version}-%{release} |
---|
[5383] | 68 | Requires: PyQt4-devel >= %{pyqt4_version} |
---|
[521] | 69 | |
---|
| 70 | %description python-devel |
---|
| 71 | %{summary}. |
---|
| 72 | |
---|
| 73 | %prep |
---|
| 74 | %setup -q -n QScintilla-gpl-%{version} |
---|
| 75 | %patch1 -p1 -b .designer-incpath-qt4 |
---|
| 76 | |
---|
| 77 | # fix permissions on doc files |
---|
| 78 | find doc example-Qt4 -type f -exec chmod 0644 {} ';' |
---|
| 79 | find src include -type f -exec chmod 0644 {} ';' |
---|
| 80 | |
---|
| 81 | # fix line endings in license file(s) |
---|
| 82 | sed -i 's/\r//' LICENSE.GPL2 GPL_EXCEPTION_ADDENDUM.TXT |
---|
| 83 | |
---|
| 84 | %build |
---|
[1444] | 85 | export QTDIR=%{_qt4_prefix} |
---|
[521] | 86 | %ifarch x86_64 |
---|
| 87 | export QMAKESPEC=$QTDIR/mkspecs/linux-g++-64/ |
---|
| 88 | %else |
---|
| 89 | export QMAKESPEC=$QTDIR/mkspecs/linux-g++/ |
---|
| 90 | %endif |
---|
| 91 | |
---|
| 92 | pushd Qt4 |
---|
| 93 | $QTDIR/bin/qmake -o Makefile qscintilla.pro |
---|
| 94 | make %{?_smp_mflags} |
---|
| 95 | popd |
---|
| 96 | |
---|
| 97 | pushd designer-Qt4 |
---|
| 98 | $QTDIR/bin/qmake -o Makefile designer.pro |
---|
| 99 | make %{?_smp_mflags} |
---|
| 100 | popd |
---|
| 101 | |
---|
| 102 | pushd Python |
---|
| 103 | %{__python} configure.py \ |
---|
| 104 | -c -j 3 \ |
---|
| 105 | -n ../Qt4 \ |
---|
| 106 | -o ../Qt4 |
---|
| 107 | make %{?_smp_mflags} |
---|
| 108 | popd |
---|
| 109 | |
---|
| 110 | %install |
---|
| 111 | rm -rf $RPM_BUILD_ROOT |
---|
| 112 | |
---|
| 113 | make install INSTALL_ROOT=$RPM_BUILD_ROOT -C Qt4 |
---|
| 114 | make install INSTALL_ROOT=$RPM_BUILD_ROOT -C designer-Qt4 |
---|
| 115 | make install DESTDIR=$RPM_BUILD_ROOT -C Python |
---|
| 116 | |
---|
| 117 | |
---|
| 118 | %clean |
---|
| 119 | rm -rf $RPM_BUILD_ROOT |
---|
| 120 | |
---|
| 121 | %post -p /sbin/ldconfig |
---|
| 122 | |
---|
| 123 | %postun -p /sbin/ldconfig |
---|
| 124 | |
---|
| 125 | %files |
---|
| 126 | %defattr(-, root, root, 755) |
---|
[1444] | 127 | %doc NEWS README |
---|
| 128 | %doc LICENSE.GPL3 LICENSE.GPL2 GPL_EXCEPTION.TXT GPL_EXCEPTION_ADDENDUM.TXT |
---|
| 129 | %{_qt4_libdir}/libqscintilla2.so.* |
---|
| 130 | %{_qt4_prefix}/qsci/* |
---|
| 131 | %{_qt4_translationdir}/* |
---|
[521] | 132 | |
---|
| 133 | %files designer |
---|
| 134 | %defattr(-,root,root,-) |
---|
[1444] | 135 | %{_qt4_prefix}/plugins/designer/libqscintillaplugin.so |
---|
[521] | 136 | |
---|
| 137 | %files devel |
---|
[1444] | 138 | %defattr(-, root, root, -) |
---|
[5383] | 139 | %{_qt4_headerdir}/* |
---|
[1444] | 140 | %{_qt4_libdir}/libqscintilla2.so |
---|
[521] | 141 | |
---|
| 142 | %files python |
---|
| 143 | %defattr(-,root,root,-) |
---|
| 144 | %{python_sitearch}/PyQt4/Qsci.so |
---|
| 145 | |
---|
| 146 | %files python-devel |
---|
| 147 | %defattr(-,root,root,-) |
---|
| 148 | %{_datadir}/sip/PyQt4/Qsci |
---|
| 149 | |
---|
| 150 | %changelog |
---|
[5383] | 151 | * Sat Jan 7 2012 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.6-1 |
---|
| 152 | - new upstream release |
---|
| 153 | - built with qt-4.8.0, PyQt4-4.9 |
---|
| 154 | |
---|
[3001] | 155 | * Sun Mar 13 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.4.6-2 |
---|
| 156 | - rebuilt with qt-4.7.2 |
---|
| 157 | |
---|
[2725] | 158 | * Sun Feb 20 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.4.6-1 |
---|
| 159 | - new upstream release |
---|
| 160 | - fix qt4_ver from 4.6.3 to 4.7.1 |
---|
| 161 | |
---|
[1670] | 162 | * Wed Aug 25 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.4-2 |
---|
| 163 | - rebuild with qt4-4.6.3 |
---|
| 164 | - fix qt4_ver from 4.6.1 to 4.6.3 |
---|
| 165 | - fix BuildRequires: qt4-devel = %{qt4_ver} (add version) |
---|
| 166 | |
---|
[1444] | 167 | * Sun Jul 25 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.4.4-1 |
---|
| 168 | - new upstream release |
---|
| 169 | - updated qt4 macros |
---|
| 170 | |
---|
[521] | 171 | * Sat Feb 06 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.4.2-1 |
---|
| 172 | - new upstream release |
---|
| 173 | |
---|
| 174 | * Fri Feb 05 2010 Shu KONNO <owa@bg.wakwak.com> 2.4-3 |
---|
| 175 | - rebuilt with qt4-4.6.1, python-2.6 |
---|
| 176 | - installed translation to %%{_datadir}/qt4/translations now |
---|
| 177 | |
---|
| 178 | * Thu Oct 22 2009 Shu KONNO <owa@bg.wakwak.com> 2.4-2 |
---|
| 179 | - updated macro pyqt4_version to 4.6 |
---|
| 180 | - fixed changelog year below (2008 -> 2009) |
---|
| 181 | |
---|
| 182 | * Sat Aug 29 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.4-1 |
---|
| 183 | - new upstream release |
---|
| 184 | - added designer, python and python-devel sub-packages |
---|
| 185 | |
---|
| 186 | * Sun Aug 17 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.7.1-1 |
---|
| 187 | - appiled new versioning policy |
---|
| 188 | |
---|
| 189 | * Fri Nov 30 2007 Shu KONNO <owa@bg.wakwak.com> 1.7.1-0vl2 |
---|
| 190 | - updated macro QMAKESPEC to linux-g++-64 (if x86_64) |
---|
| 191 | |
---|
| 192 | * Thu Sep 13 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.7.1-0vl1 |
---|
| 193 | - new upstream release (1.71) |
---|
| 194 | |
---|
| 195 | * Mon Jun 4 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6-0vl1 |
---|
| 196 | - new upstream release (1.65) |
---|
| 197 | - changed Group to System Environment/Libraries |
---|
| 198 | |
---|
| 199 | * Sat Jan 15 2005 Satoshi MACHINO <machino@vinelinux.org> 1.4-0vl1 |
---|
| 200 | - initial built for VineLinux |
---|
| 201 | |
---|