]> git.pld-linux.org Git - packages/cppcheck.git/commitdiff
- package cppcheck(1) manual
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 17 Jun 2011 15:43:08 +0000 (15:43 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- really use system tinyxml

Changed files:
    cppcheck.spec -> 1.2

cppcheck.spec

index f990ebe2243c2724e8dc726d908d75bd9865c949..115600b1cff45de882d542eb4bf72737b092d050 100644 (file)
@@ -20,6 +20,7 @@ BuildRequires:        libstdc++-devel
 BuildRequires: libxslt-progs
 BuildRequires: pcre-devel
 BuildRequires: rpmbuild(macros) >= 1.603
+BuildRequires: sed >= 4.0
 BuildRequires: tinyxml-devel
 %if %{with gui}
 BuildRequires: QtGui-devel >= 4
@@ -57,6 +58,8 @@ Oparty na Qt4 graficzny interfejs użytkownika do cppcheck.
 %setup -q
 %patch0 -p1
 
+%{__sed} -i -e 's,-I[^ ]*/externals,,g' lib/lib.pri
+
 %build
 %{__make} all man \
        CXX="%{__cxx}" \
@@ -84,7 +87,10 @@ lrelease-qt4 cppcheck_*.ts
 rm -rf $RPM_BUILD_ROOT
 
 %{__make} install \
-       DESTDIR=$RPM_BUILD_ROOT
+       DESTDIR=$RPM_BUILD_ROOT \
+       TINYXML="%{_libdir}/libtinyxml.so" 
+
+install -Dp cppcheck.1 $RPM_BUILD_ROOT%{_mandir}/man1/cppcheck.1
 
 %if %{with gui}
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/cppcheck-gui}
@@ -101,6 +107,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc AUTHORS Changelog readme.txt
 %attr(755,root,root) %{_bindir}/cppcheck
+%{_mandir}/man1/cppcheck.1*
 
 %if %{with gui}
 %files gui
This page took 0.093418 seconds and 4 git commands to generate.