SPECS: qwt.spec - rel 2; switch to qt4

arekm arekm at pld-linux.org
Sat Oct 27 23:24:12 CEST 2007


Author: arekm                        Date: Sat Oct 27 21:24:12 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- rel 2; switch to qt4

---- Files affected:
SPECS:
   qwt.spec (1.13 -> 1.14) 

---- Diffs:

================================================================
Index: SPECS/qwt.spec
diff -u SPECS/qwt.spec:1.13 SPECS/qwt.spec:1.14
--- SPECS/qwt.spec:1.13	Sat Sep  8 20:27:28 2007
+++ SPECS/qwt.spec	Sat Oct 27 23:24:07 2007
@@ -3,14 +3,15 @@
 Summary(pl.UTF-8):	Rozszerzenie wykresów 2D dla GUI Qt
 Name:		qwt
 Version:	5.0.2
-Release:	1
+Release:	2
 License:	Qwt v1.0
 Group:		Libraries
 Source0:	http://dl.sourceforge.net/qwt/%{name}-%{version}.tar.bz2
 # Source0-md5:	53adbb313c478dd4aae4f1c864a2037e
 URL:		http://qwt.sourceforge.net/
-BuildRequires:	qmake
-BuildRequires:	qt-devel
+BuildRequires:	qt4-qmake
+BuildRequires:	QtCore-devel
+BuildRequires:	QtGui-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -30,7 +31,7 @@
 Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki qwt
 Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
-Requires:	qt-devel
+Requires:	QtGui-devel
 
 %description devel
 Header files for qwt library.
@@ -38,30 +39,29 @@
 %description devel -l pl.UTF-8
 Pliki nagłówkowe biblioteki qwt.
 
-%package -n qt-plugin-qwt
+%package -n qt4-plugin-qwt
 Summary:	qwt plugin for Qt Designer
 Summary(pl.UTF-8):	Wtyczka qwt dla Qt Designera
 Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
-Requires:	qt-designer
+Requires:	QtDesigner
 
-%description -n qt-plugin-qwt
+%description -n qt4-plugin-qwt
 qwt plugin for Qt Designer.
 
-%description -n qt-plugin-qwt -l pl.UTF-8
+%description -n qt4-plugin-qwt -l pl.UTF-8
 Wtyczka qwt dla Qt Designera.
 
 %prep
 %setup -q
 
 %build
-export QTDIR=%{_prefix}
-qmake qwt.pro
+qt4-qmake qwt.pro
 
 %{__make} -j1
 
 cd examples
-	qmake examples.pro
+	qt4-qmake examples.pro
 	%{__make}
 	%{__make} distclean
 	rm -fr .*.cache */.*.cache */*/.*.cache Makefile */moc */obj */*/moc */*/obj
@@ -69,7 +69,7 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_includedir}/%{name},%{_libdir}/qt/plugins-mt/designer,%{_mandir}/man3}
+install -d $RPM_BUILD_ROOT{%{_includedir}/%{name},%{_libdir}/qt4/plugins-mt/designer,%{_mandir}/man3}
 
 for n in src/*.h ; do
     install $n $RPM_BUILD_ROOT%{_includedir}/%{name}
@@ -79,17 +79,10 @@
     cp -d $n $RPM_BUILD_ROOT%{_libdir}
 done
 
- cd designer
- %{__make} install \
- 	INSTALL_ROOT=$RPM_BUILD_ROOT%{_libdir}/qt/plugins-mt/
-
-# If you find better idea to put this file into proper directory, change this fix
-#
-mv $RPM_BUILD_ROOT%{_libdir}/qt/plugins-mt/plugins/designer/libqwtplugin.so \
-	$RPM_BUILD_ROOT%{_libdir}/qt/plugins-mt/designer/libqwtplugin.so
+%{__make} -C designer install \
+	INSTALL_ROOT=$RPM_BUILD_ROOT
 
- cd ..
- echo "%{_libdir}/qt/plugins-mt/designer/libqwtplugin.so" > plugin.list
+echo "%{_libdir}/qt4/plugins/designer/libqwtplugin.so" > plugin.list
 
 for n in doc/man/man3/*.3 ; do
     install $n $RPM_BUILD_ROOT%{_mandir}/man3
@@ -114,9 +107,9 @@
 %{_includedir}/%{name}
 %{_mandir}/man3/*
 
-%files -n qt-plugin-qwt
+%files -n qt4-plugin-qwt
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/qt/plugins-mt/designer/libqwtplugin.so
+%attr(755,root,root) %{_libdir}/qt4/plugins/designer/libqwt_designer_plugin.so
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -124,6 +117,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.14  2007/10/27 21:24:07  arekm
+- rel 2; switch to qt4
+
 Revision 1.13  2007/09/08 18:27:28  rotom
 - up to 5.0.2
 - License is Qwt version 1.0
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/qwt.spec?r1=1.13&r2=1.14&f=u



More information about the pld-cvs-commit mailing list