]> git.pld-linux.org Git - packages/aqsis.git/blob - aqsis.spec
d98ce646ef4efb429f5c4480fa947dbeffa7f0df
[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.2
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 # @LIBDIR@, @SHAREDIR@ and @CONFDIR@ comes from the aqsis-scons-paths patch
70 sed -e 's:@LIBDIR@:%{_libdir}:g' -i SConstruct
71 sed -e 's:@SHAREDIR@:%{_datadir}/%{name}:g' \
72     -e 's:@CONFDIR@:/etc/%{name}:g' \
73     -i platform/default/SConscript
74
75 export CXX='%{__cxx}'
76 export CXXFLAGS='%{rpmcflags}'
77 export CC='%{__cc}'
78 export CFLAGS='%{rpmcflags}'
79 %scons \
80         install_prefix=$RPM_BUILD_ROOT%{_prefix} \
81         sysconfdir=$RPM_BUILD_ROOT/etc/%{name} \
82         install
83 sed -e "s:$RPM_BUILD_ROOT::g" -i $RPM_BUILD_ROOT/etc/%{name}/aqsisrc
84
85 %clean
86 rm -rf $RPM_BUILD_ROOT
87
88 %post   -p /sbin/ldconfig
89 %postun -p /sbin/ldconfig
90
91 %files
92 %defattr(644,root,root,755)
93 %doc AUTHORS ReleaseNotes README
94 %dir /etc/%{name}
95 %config(noreplace) %verify(not md5 mtime size) /etc/%{name}/*
96 %attr(755,root,root) %{_bindir}/*
97 %attr(755,root,root) %{_libdir}/lib*.so*
98 %dir %{_libdir}/%{name}
99 %attr(755,root,root) %{_libdir}/%{name}/*.so
100 %dir %{_libdir}/%{name}/plugins
101 %attr(755,root,root) %{_libdir}/%{name}/plugins/*.so
102 %attr(755,root,root) %{_libdir}/%{name}/lib*.so*
103 %{_datadir}/%{name}
104
105 %files devel
106 %defattr(644,root,root,755)
107 %{_includedir}/%{name}
This page took 0.044768 seconds and 2 git commands to generate.