SPECS: sqliteman.spec - more Qt4 BRs - standardize cmake usage - verbose bi...

shadzik shadzik at pld-linux.org
Mon Jan 12 01:16:34 CET 2009


Author: shadzik                      Date: Mon Jan 12 00:16:34 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- more Qt4 BRs
- standardize cmake usage
- verbose binaries

---- Files affected:
SPECS:
   sqliteman.spec (1.5 -> 1.6) 

---- Diffs:

================================================================
Index: SPECS/sqliteman.spec
diff -u SPECS/sqliteman.spec:1.5 SPECS/sqliteman.spec:1.6
--- SPECS/sqliteman.spec:1.5	Mon Jan 12 01:06:39 2009
+++ SPECS/sqliteman.spec	Mon Jan 12 01:16:28 2009
@@ -1,4 +1,7 @@
 # $Revision$, $Date$
+
+%define		qtver	4.4.3
+
 Summary:	Manager for sqlite - Sqlite Databases Made Easy
 Summary(pl.UTF-8):	Zarządca baz sqlite
 Name:		sqliteman
@@ -10,12 +13,15 @@
 Source0:	http://dl.sourceforge.net/sqliteman/%{name}-%{version}.tar.bz2
 # Source0-md5:	903aee0f7eae0d4af6c960ea755b12ac
 URL:		http://www.sqliteman.com/
-BuildRequires:	QtSql-devel
-BuildRequires:	QtXml-devel
-BuildRequires:	cmake
+BuildRequires:	QtCore-devel >= %{qtver}
+BuildRequires:	QtGui-devel >= %{qtver}
+BuildRequires:	QtNetwork-devel >= %{qtver}
+BuildRequires:	QtSql-devel >= %{qtver}
+BuildRequires:	QtXml-devel >= %{qtver}
+BuildRequires:	cmake >= 2.6.2
 BuildRequires:	qscintilla2-devel
-BuildRequires:	qt4-build
-BuildRequires:	qt4-qmake
+BuildRequires:	qt4-build >= %{qtver}
+BuildRequires:	qt4-qmake >= %{qtver}
 BuildRequires:	rpmbuild(macros) >= 1.293
 Requires:	QtSql-sqlite3
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -34,15 +40,18 @@
 %setup -q
 
 %build
-%cmake . \
-	-DCMAKE_INSTALL_PREFIX=%{_prefix}
+install -d build
+cd build
+%cmake  \
+	-DCMAKE_INSTALL_PREFIX=%{_prefix} \
+	../
 
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install \
+%{__make} -C build install \
 	DESTDIR=$RPM_BUILD_ROOT
 
 %clean
@@ -50,7 +59,7 @@
 
 %files
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_bindir}/sqliteman
 %{_iconsdir}/*.png
 %{_desktopdir}/*.desktop
 %{_datadir}/%{name}
@@ -61,6 +70,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.6  2009/01/12 00:16:28  shadzik
+- more Qt4 BRs
+- standardize cmake usage
+- verbose binaries
+
 Revision 1.5  2009/01/12 00:06:39  charles
 - BR: cmake, qt4-build, qt4-qmake
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/sqliteman.spec?r1=1.5&r2=1.6&f=u



More information about the pld-cvs-commit mailing list