SPECS: aqsis.spec - Fixed build - Fixed paths setting - TODO updat...

beorn beorn at pld-linux.org
Sat Mar 17 11:56:58 CET 2007


Author: beorn                        Date: Sat Mar 17 10:56:58 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- Fixed build
- Fixed paths setting
- TODO update
- Cosmetics
- Still NFY

---- Files affected:
SPECS:
   aqsis.spec (1.15 -> 1.16) 

---- Diffs:

================================================================
Index: SPECS/aqsis.spec
diff -u SPECS/aqsis.spec:1.15 SPECS/aqsis.spec:1.16
--- SPECS/aqsis.spec:1.15	Mon Mar 12 09:31:38 2007
+++ SPECS/aqsis.spec	Sat Mar 17 11:56:53 2007
@@ -1,20 +1,14 @@
 # $Revision$, $Date$
 # TODO:
-# - Check to see if splitting plugins into several packages makes any sense
-#   (probably not).
 # - Check that everything works as expected.
 # - Remove duplications in %files section.
-# - Fix aqsis-scons-paths.patch so modyfing it after sysconfdir change will
-#   not be needed.
-# - Check why the second stage of compilation ignores CXX and CXXFLAGS and
-#   fix it of course :)
 # - Proper configuration files handling by SPEC.
 # - Fix paths in configuration file.
 Summary:	Aqsis Rendering System
 Summary(pl.UTF-8):	System Renderujący Aqsis
 Name:		aqsis
 Version:	1.2.0
-Release:	0.1
+Release:	0.2
 License:	GPL v2 / LGPL v2.1
 Group:		Applications/Graphics
 Source0:	http://dl.sourceforge.net/aqsis/%{name}-%{version}.tar.gz
@@ -43,9 +37,9 @@
 Pixar RenderMan Interface.
 
 %description -l pl.UTF-8
-System renderujący Aqsis składa się z zestawu bibliotek i programów do
-tworzenia wysokiej jakości obrazów komputerowych z użyciem interfejsu
-RenderMan firmy Pixar.
+System Renderujący Aqsis składa się z zestawu bibliotek i programów
+do tworzenia wysokiej jakości obrazów komputerowych z użyciem
+interfejsu RenderMan firmy Pixar.
 
 %package devel
 Summary:	Header files for Aqsis Rendering System
@@ -61,31 +55,35 @@
 Header files for Aqsis Rendering System.
 
 %description devel -l pl.UTF-8
-Pliki nagłówkowe systemu renderującego Aqsis.
+Pliki nagłówkowe Systemu Renderującego Aqsis.
 
 %prep
 %setup -q
 %patch0 -p1
 
 %build
+# We cannot build the targets here, because 'scons install' fires the entire
+# compilation from the start.
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{/etc/%{name},%{name},%{_bindir},%{_libdir},%{_datadir}/%{name}}
+
+# @LIBDIR@, @SHAREDIR@ and @CONFDIR@ comes from the aqsis-scons-paths patch
+sed -e 's:@LIBDIR@:%{_libdir}:g' -i SConstruct
+sed -e 's:@SHAREDIR@:%{_datadir}/%{name}:g' \
+    -e 's:@CONFDIR@:/etc/%{name}:g' \
+    -i platform/default/SConscript
+
 export CXX='%{__cxx}'
 export CXXFLAGS='%{rpmcflags}'
 export CC='%{__cc}'
 export CFLAGS='%{rpmcflags}'
-# WARNING! If you'll change the sysconfdir argument below, remember to
-# make apriopriate change in aqsis-scons-paths.patch!
 %scons \
 	install_prefix=$RPM_BUILD_ROOT%{_prefix} \
-	sysconfdir=$RPM_BUILD_ROOT/etc/%{name}
-
-%install
-rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{/etc/%{name},%{name},%{_bindir},%{_libdir},%{_datadir}/%{name}}
-
-%scons install_prefix=$RPM_BUILD_ROOT%{_prefix} \
+	sysconfdir=$RPM_BUILD_ROOT/etc/%{name} \
 	install
 #rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib*.la
-#mv $RPM_BUILD_ROOT%{_usr}/etc $RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -118,6 +116,13 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.16  2007/03/17 10:56:53  beorn
+- Fixed build
+- Fixed paths setting
+- TODO update
+- Cosmetics
+- Still NFY
+
 Revision 1.15  2007/03/12 08:31:38  darekr
 - BR: scons
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/aqsis.spec?r1=1.15&r2=1.16&f=u



More information about the pld-cvs-commit mailing list