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