]>
Commit | Line | Data |
---|---|---|
76acba2c | 1 | # TODO: |
76acba2c | 2 | # - Check that everything works as expected. |
3 | # - Remove duplications in %files section. | |
e9ae76ce | 4 | Summary: Aqsis Rendering System |
76acba2c | 5 | Summary(pl.UTF-8): System Renderujący Aqsis |
e9ae76ce | 6 | Name: aqsis |
76acba2c | 7 | Version: 1.2.0 |
f13d1683 | 8 | Release: 0.3 |
99645680 | 9 | License: GPL v2 / LGPL v2.1 |
7b5b6081 | 10 | Group: Applications/Graphics |
c80c572a | 11 | Source0: http://dl.sourceforge.net/aqsis/%{name}-%{version}.tar.gz |
76acba2c | 12 | # Source0-md5: ae9bb1c4b22e396fd7ce84ee3e13cb86 |
331600b1 | 13 | Patch0: %{name}-scons-paths.patch |
e9ae76ce | 14 | URL: http://aqsis.sourceforge.net/ |
76acba2c | 15 | BuildRequires: OpenEXR-devel |
16 | BuildRequires: bison >= 1.35 | |
17 | BuildRequires: boost-devel >= 1.32.0 | |
18 | BuildRequires: flex >= 2.5.4 | |
19 | BuildRequires: fltk-devel >= 1.1.0 | |
20 | BuildRequires: libjpeg-devel >= 6b | |
7b5b6081 | 21 | BuildRequires: libstdc++-devel |
76acba2c | 22 | BuildRequires: libtiff-devel >= 3.7.1 |
7b5b6081 | 23 | BuildRequires: libtool >= 2:1.5 |
76acba2c | 24 | BuildRequires: libxslt-progs |
331600b1 | 25 | BuildRequires: rpmbuild(macros) >= 1.337 |
f5be0e3b | 26 | BuildRequires: scons |
76acba2c | 27 | BuildRequires: zlib-devel >= 1.1.4 |
e9ae76ce | 28 | Provides: renderman-engine |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | %description | |
7b5b6081 JB |
32 | The Aqsis Rendering System consists of a set of libraries and |
33 | applications for creating high-quality computer imagery using the | |
34 | Pixar RenderMan Interface. | |
e9ae76ce | 35 | |
f51d328d | 36 | %description -l pl.UTF-8 |
6d4fef80 | 37 | System Renderujący Aqsis składa się z zestawu bibliotek i programów |
38 | do tworzenia wysokiej jakości obrazów komputerowych z użyciem | |
39 | interfejsu RenderMan firmy Pixar. | |
7b5b6081 JB |
40 | |
41 | %package devel | |
42 | Summary: Header files for Aqsis Rendering System | |
76acba2c | 43 | Summary(pl.UTF-8): Pliki nagłówkowe Systemu Renderującego Aqsis |
7b5b6081 JB |
44 | Group: Development/Libraries |
45 | Requires: %{name} = %{version}-%{release} | |
46 | Requires: libstdc++-devel | |
47 | Requires: libtiff-devel | |
48 | Requires: log4cpp-devel | |
49 | Requires: zlib-devel | |
50 | ||
51 | %description devel | |
52 | Header files for Aqsis Rendering System. | |
53 | ||
f51d328d | 54 | %description devel -l pl.UTF-8 |
6d4fef80 | 55 | Pliki nagłówkowe Systemu Renderującego Aqsis. |
e9ae76ce | 56 | |
57 | %prep | |
58 | %setup -q | |
76acba2c | 59 | %patch0 -p1 |
e9ae76ce | 60 | |
61 | %build | |
6d4fef80 | 62 | # We cannot build the targets here, because 'scons install' fires the entire |
63 | # compilation from the start. | |
64 | ||
65 | %install | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | install -d $RPM_BUILD_ROOT{/etc/%{name},%{name},%{_bindir},%{_libdir},%{_datadir}/%{name}} | |
68 | ||
76acba2c | 69 | export CXX='%{__cxx}' |
70 | export CXXFLAGS='%{rpmcflags}' | |
71 | export CC='%{__cc}' | |
72 | export CFLAGS='%{rpmcflags}' | |
631c6eb1 ER |
73 | %scons \ |
74 | install_prefix=$RPM_BUILD_ROOT%{_prefix} \ | |
6d4fef80 | 75 | sysconfdir=$RPM_BUILD_ROOT/etc/%{name} \ |
f13d1683 | 76 | pld_pluginsdir=%{_libdir}/%{name}/plugins \ |
77 | pld_shadersdir=%{_datadir}/%{name}/shaders \ | |
78 | pld_configdir=/etc/%{name} \ | |
631c6eb1 | 79 | install |
94b604ab | 80 | sed -e "s:$RPM_BUILD_ROOT::g" -i $RPM_BUILD_ROOT/etc/%{name}/aqsisrc |
7b5b6081 | 81 | |
e9ae76ce | 82 | %clean |
7b5b6081 JB |
83 | rm -rf $RPM_BUILD_ROOT |
84 | ||
85 | %post -p /sbin/ldconfig | |
86 | %postun -p /sbin/ldconfig | |
e9ae76ce | 87 | |
88 | %files | |
89 | %defattr(644,root,root,755) | |
76acba2c | 90 | %doc AUTHORS ReleaseNotes README |
94b604ab | 91 | %dir /etc/%{name} |
92 | %config(noreplace) %verify(not md5 mtime size) /etc/%{name}/* | |
e9ae76ce | 93 | %attr(755,root,root) %{_bindir}/* |
76acba2c | 94 | %attr(755,root,root) %{_libdir}/lib*.so* |
331600b1 | 95 | %dir %{_libdir}/%{name} |
76acba2c | 96 | %attr(755,root,root) %{_libdir}/%{name}/*.so |
331600b1 | 97 | %dir %{_libdir}/%{name}/plugins |
76acba2c | 98 | %attr(755,root,root) %{_libdir}/%{name}/plugins/*.so |
331600b1 | 99 | %attr(755,root,root) %{_libdir}/%{name}/lib*.so* |
e9ae76ce | 100 | %{_datadir}/%{name} |
7b5b6081 JB |
101 | |
102 | %files devel | |
103 | %defattr(644,root,root,755) | |
e9ae76ce | 104 | %{_includedir}/%{name} |