/[pkgs]/devel/LuxRender/LuxRender.spec
ViewVC logotype

Contents of /devel/LuxRender/LuxRender.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Jul 24 15:36:20 2009 UTC (4 months ago) by jkeating
Branch: MAIN
CVS Tags: F-12-split, LuxRender-0_5-5_fc12, HEAD
Changes since 1.1: +4 -1 lines
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
1 Name: LuxRender
2 Version: 0.5
3 Release: 5%{?dist}
4 Summary: Lux Renderer, an unbiased rendering system
5
6 Group: Applications/Multimedia
7 License: GPLv3+ and BSD
8 URL: http://www.luxrender.net
9 Source0: http://www.luxrender.net/downloads/v05_release/LuxRender_v05_Source.zip
10 Source1: http://www.luxrender.net/downloads/v05_release/LuxBlend_v05_Blender_Exporter.zip
11 Source2: luxblend-default.cfg
12 Patch0: LuxRender_v05-shared.patch
13 Patch1: lux-0.5-intrinsic.patch
14 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
15
16 BuildRequires: desktop-file-utils
17 BuildRequires: doxygen
18 BuildRequires: cmake
19
20 BuildRequires: bison
21 BuildRequires: boost-devel
22 BuildRequires: flex
23 BuildRequires: fltk-devel
24 BuildRequires: libpng-devel
25 BuildRequires: libjpeg-devel
26 BuildRequires: libtiff-devel
27 BuildRequires: OpenEXR-devel
28 BuildRequires: wxGTK-devel
29
30 BuildRequires: libXdamage-devel
31
32 Requires: %{name}-core = %{version}-%{release}
33
34
35 %description
36 LuxRender is a rendering system for physically correct image synthesis.
37
38 %package lib
39 Summary: Libraries for %{name}
40 Group: System Environment/Libraries
41
42 %description lib
43 The %{name}-lib package contains shared library for %{name}.
44
45 %package core
46 Summary: Core binaries for %{name}
47 Group: Applications/Multimedia
48 Requires: %{name}-lib = %{version}-%{release}
49
50 %description core
51 The %{name}-core package contains core binaries for using %{name}.
52
53 %package blender
54 Summary: Blender export plugin to %{name}
55 Group: Applications/Multimedia
56 Requires: %{name} = %{version}-%{release}
57 Requires: blender >= 2.48a-22
58
59 %description blender
60 The %{name}-blender package contains the plugin for Blender
61 to export into %{name}
62
63 %package devel
64 Summary: Development files for %{name}
65 Group: Development/Libraries
66 Requires: %{name} = %{version}-%{release}
67
68 %description devel
69 The %{name}-devel package contains libraries and header files for
70 developing applications that use %{name}.
71
72 %package devel-docs
73 Summary: Documentation for developing %{name} applications
74 Group: Documentation
75
76 %description devel-docs
77 The %{name}-devel-docs package contains the documentation needed to develop
78 applications with %{name}.
79
80
81 %prep
82 %setup -q -n lux
83 %setup -q -D -T -a 1 -n lux
84 %patch0 -p1 -b .shared
85 %patch1 -p1 -b .intrinsic
86 install -pm 0644 core/SFMT/LICENSE.txt LICENSE-SFMT.txt
87 #Disable tweaking
88 sed -i -e 's/-O3 -msse2 -mfpmath=sse -ftree-vectorize -funroll-loops -Wall//' CMakeLists.txt
89
90
91 for f in AUTHORS.txt COPYING.txt LICENSE-SFMT.txt ; do
92 cp -p ${f} ${f}.ref
93 sed -i 's/\r//' ${f}
94 touch -r ${f}.ref ${f}
95 rm ${f}.ref
96 done
97
98 #Disable wrong-end-of-line-encoding
99 sed -i 's|\r||' LuxBlend_0.1.py
100
101
102 %build
103 mkdir -p build
104 pushd build
105
106 %cmake \
107 -DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE \
108 -DCMAKE_SKIP_RPATH:BOOL=ON \
109 %if %{?_lib} == "lib64"
110 -DLIBDIR=%{_lib} \
111 %endif
112 ..
113
114 make %{?_smp_mflags} VERBOSE=1
115
116 popd
117
118 # generate doc
119 pushd doxygen
120 doxygen doxygen.conf
121 popd
122
123
124 %install
125 rm -rf $RPM_BUILD_ROOT
126 pushd build
127
128 make install DESTDIR=$RPM_BUILD_ROOT
129
130 popd
131
132 desktop-file-install --vendor "" --delete-original \
133 --dir $RPM_BUILD_ROOT%{_datadir}/applications \
134 --remove-category Application \
135 $RPM_BUILD_ROOT%{_datadir}/applications/luxrender.desktop
136
137 install -pm 0755 build/wxluxgui $RPM_BUILD_ROOT%{_bindir}
138
139 mkdir -p $RPM_BUILD_ROOT%{_datadir}/blender/scripts/bpydata/config
140 install -pm 0644 LuxBlend_0.1.py $RPM_BUILD_ROOT%{_datadir}/blender/scripts/
141
142 install -pm 0644 %{SOURCE2} \
143 $RPM_BUILD_ROOT%{_datadir}/blender/scripts/bpydata/config/luxblend.cfg
144
145
146 %clean
147 rm -rf $RPM_BUILD_ROOT
148
149
150 %post lib -p /sbin/ldconfig
151
152 %postun lib -p /sbin/ldconfig
153
154
155 %files
156 %defattr(-,root,root,-)
157 %doc AUTHORS.txt COPYING.txt LICENSE-SFMT.txt
158 %{_bindir}/wxluxgui
159 %{_bindir}/luxrender
160 %{_datadir}/pixmaps/luxrender.svg
161 %{_datadir}/applications/luxrender.desktop
162
163 %files lib
164 %defattr(-,root,root,-)
165 %{_libdir}/*.so.*
166
167 %files core
168 %defattr(-,root,root,-)
169 %{_bindir}/luxconsole
170
171 %files blender
172 %defattr(-,root,root,-)
173 %{_datadir}/blender/scripts/LuxBlend_0.1.py*
174 %{_datadir}/blender/scripts/bpydata/config/luxblend.cfg
175
176 %files devel
177 %defattr(-,root,root,-)
178 %{_includedir}/luxrender/
179 %{_libdir}/*.so
180
181 %files devel-docs
182 %defattr(-,root,root,-)
183 %doc doxygen/html
184
185
186 %changelog
187 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-5
188 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
189
190 * Wed May 13 2009 kwizart < kwizart at gmail.com > - 0.5-4
191 - Move %%doc from -lib to main
192 - Remove Requires main from -devel-docs
193 - Disable wrong-end-of-line-encoding for LuxBlend_0.1.py
194 - Add Requires: blender >= 2.48a-22 so the script will copy
195 the default settings in the end-user directory.
196
197 * Tue Mar 17 2009 kwizart < kwizart at gmail.com > - 0.5-3
198 - Add luxblend-default.cfg
199
200 * Tue Jan 20 2009 kwizart < kwizart at gmail.com > - 0.5-2
201 - Fix compilation with boost 1.34 - (backport)
202 - Subpackage the Blender_Exporter plugin
203 - Subpackage -devel-docs for doxygen docs.
204
205 * Wed Jul 23 2008 kwizart < kwizart at gmail.com > - 0.5-1
206 - Update to 0.5
207
208 * Mon Dec 17 2007 Romang Jean-Francois <jeanfrancois.romang@laposte.net> 0.1-rc4
209 -Initial version
210

admin@fedoraproject.org
ViewVC Help
Powered by ViewVC 1.1.2