76bc82279c5be25c0acbdc1a6fee4ea2f84d067a
[packages/aqsis.git] / aqsis.spec
1 # TODO:
2 # - Check that everything works as expected.
3 # - Remove duplications in %files section.
4 Summary:        Aqsis Rendering System
5 Summary(pl.UTF-8):      System Renderujący Aqsis
6 Name:           aqsis
7 Version:        1.2.0
8 Release:        0.3
9 License:        GPL v2 / LGPL v2.1
10 Group:          Applications/Graphics
11 Source0:        http://dl.sourceforge.net/aqsis/%{name}-%{version}.tar.gz
12 # Source0-md5:  ae9bb1c4b22e396fd7ce84ee3e13cb86
13 Patch0:         %{name}-scons-paths.patch
14 URL:            http://aqsis.sourceforge.net/
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
21 BuildRequires:  libstdc++-devel
22 BuildRequires:  libtiff-devel >= 3.7.1
23 BuildRequires:  libtool >= 2:1.5
24 BuildRequires:  libxslt-progs
25 BuildRequires:  rpmbuild(macros) >= 1.337
26 BuildRequires:  scons
27 BuildRequires:  zlib-devel >= 1.1.4
28 Provides:       renderman-engine
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
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.
35
36 %description -l pl.UTF-8
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.
40
41 %package devel
42 Summary:        Header files for Aqsis Rendering System
43 Summary(pl.UTF-8):      Pliki nagłówkowe Systemu Renderującego Aqsis
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
54 %description devel -l pl.UTF-8
55 Pliki nagłówkowe Systemu Renderującego Aqsis.
56
57 %prep
58 %setup -q
59 %patch0 -p1
60
61 %build
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
69 export CXX='%{__cxx}'
70 export CXXFLAGS='%{rpmcflags}'
71 export CC='%{__cc}'
72 export CFLAGS='%{rpmcflags}'
73 %scons \
74         install_prefix=$RPM_BUILD_ROOT%{_prefix} \
75         sysconfdir=$RPM_BUILD_ROOT/etc/%{name} \
76         pld_pluginsdir=%{_libdir}/%{name}/plugins \
77         pld_shadersdir=%{_datadir}/%{name}/shaders \
78         pld_configdir=/etc/%{name} \
79         install
80 sed -e "s:$RPM_BUILD_ROOT::g" -i $RPM_BUILD_ROOT/etc/%{name}/aqsisrc
81
82 %clean
83 rm -rf $RPM_BUILD_ROOT
84
85 %post   -p /sbin/ldconfig
86 %postun -p /sbin/ldconfig
87
88 %files
89 %defattr(644,root,root,755)
90 %doc AUTHORS ReleaseNotes README
91 %dir /etc/%{name}
92 %config(noreplace) %verify(not md5 mtime size) /etc/%{name}/*
93 %attr(755,root,root) %{_bindir}/*
94 %attr(755,root,root) %{_libdir}/lib*.so*
95 %dir %{_libdir}/%{name}
96 %attr(755,root,root) %{_libdir}/%{name}/*.so
97 %dir %{_libdir}/%{name}/plugins
98 %attr(755,root,root) %{_libdir}/%{name}/plugins/*.so
99 %attr(755,root,root) %{_libdir}/%{name}/lib*.so*
100 %{_datadir}/%{name}
101
102 %files devel
103 %defattr(644,root,root,755)
104 %{_includedir}/%{name}
This page took 0.048262 seconds and 2 git commands to generate.