changeset 39:2715584a9a01

* Update spec file
author Chris Cannam
date Tue, 29 Jun 2010 16:32:30 +0000
parents 75f1f1af9277
children 60f6f108dd93
files sonic-annotator.spec
diffstat 1 files changed, 12 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/sonic-annotator.spec	Tue Jun 29 12:38:32 2010 +0000
+++ b/sonic-annotator.spec	Tue Jun 29 16:32:30 2010 +0000
@@ -1,7 +1,7 @@
 %define _topdir /home/cannam/rpm/sonic-annotator
 %define name sonic-annotator
 %define version 0.6
-%define release svn
+%define release svn20100629
 
 BuildRoot: %{_tmppath}/%{name}-buildroot
 Summary: Sonic Annotator
@@ -18,19 +18,25 @@
 CSV and RDF/Turtle.
 
 %prep
-svn co http://sv1.svn.sourceforge.net/svnroot/sv1/sonic-annotator/trunk %{name}-%{version}-%{release}
+svn co http://sv1.svn.sourceforge.net/svnroot/sv1/sonic-annotator/trunk .
+#%{name}-%{version}-%{release}
 
 %build
-cd %{name}-%{version}-%{release}
-/home/cannam/qt-4.6.3-static-release-nogui/bin/qmake -r
+export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig
+#cd %{name}-%{version}-%{release}
+/home/cannam/qt-4.6.2-static/bin/qmake -r "LIBS += -Wl,-Bstatic" "DEFINES += BUILD_STATIC"
 make
 
 %install
-cd %{name}-%{version}-%{release}
+#cd %{name}-%{version}-%{release}
 mkdir -p $RPM_BUILD_ROOT/usr/bin
 install runner/sonic-annotator $RPM_BUILD_ROOT/usr/bin
 
-%files
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files 
 %defattr(-,root,root)
 %{_bindir}/sonic-annotator
+%doc README COPYING CHANGELOG