]> git.pld-linux.org Git - packages/blender.git/blob - blender.spec
811693577fcc27f34ca93509ac8b852f5cc73d79
[packages/blender.git] / blender.spec
1
2 # chyba nie mo¿emy tego udostêpniaæ na naszym FTP
3 # przynajmniej ja tak rozumiem fragment copyright.txt:
4 #
5 # "Distributing the Software 'bundled' in with ANY product is
6 #  considered to be a 'commercial purpose'."
7
8
9 %ifarch %{ix86}
10 %define         arch_name blender%{version}-linux-glibc2.1.2-i386
11 %endif
12 %ifarch %{alpha}
13 %define         arch_name blender%{version}-linux-glibc2.1.3-alpha
14 %endif
15
16 Summary:        3D modeling, rendering, animation and game creation package
17 Summary(pl):    Pakiet do tworzenia animacji 3D oraz robienia gier
18 Name:           blender
19 Version:        2.20
20 Release:        1
21 License:        Free for use
22 Group:          Applications/Graphics
23 Group(de):      Applikationen/Grafik
24 Group(pl):      Aplikacje/Grafika
25 Vendor:         NaN Technologies B.V.
26 Source0:        ftp://ftp.blender.nl/pub/%{arch_name}.tar.gz
27 Source1:        %{name}.defaults
28 Source2:        %{name}.sh
29 Patch0:         %{name}-bmake.patch
30 URL:            http://www.blender.nl
31 Requires:       OpenGL
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
35 %define         _prefix         /usr/X11R6
36
37 %description
38 Blender is a free and fully functional 3D modeling, rendering,
39 animation and game creation package for Unix, Windows and BeOS
40 systems. Blender is distributed without sources, it is exclusively
41 developed and maintained by the Dutch company NaN Technologies B.V.
42
43 %description -l pl
44 Blender to darmowy i w pe³ni funkcjonalny pakiet do tworzenia animacji
45 3D oraz robienia gier, dostêpny dla systemów Unix, Windows i BeOS.
46 Blender jest rozpowszechniany bez ¼róde³. Jest rozwijany przez
47 holendersk± firmê NaN Technologies B.V.
48
49 %prep
50 %setup -qn %{arch_name}
51 %patch0 -p1
52
53 %build
54 cd plugins
55 %{__make} clean
56 %{__make} OPTFLAGS="%{rpmcflags}"
57
58 %install
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/blender/plugins/{sequence,texture}}
61 install -d $RPM_BUILD_ROOT{%{_datadir}/blender/{textures,sounds},%{_includedir}/blender}
62 install -d $RPM_BUILD_ROOT%{_examplesdir}/blender/plugins/{sequence,texture}
63
64 install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/blender
65
66 install blender $RPM_BUILD_ROOT%{_libdir}/blender
67 install plugins/sequence/*.so $RPM_BUILD_ROOT%{_libdir}/blender/plugins/sequence
68 install plugins/texture/*.so $RPM_BUILD_ROOT%{_libdir}/blender/plugins/texture
69
70 install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/blender/defaults
71
72 install plugins/include/* $RPM_BUILD_ROOT%{_includedir}/blender
73
74 install plugins/{Makefile,bmake} $RPM_BUILD_ROOT%{_examplesdir}/blender/plugins
75 install plugins/sequence/{Makefile,*.c} $RPM_BUILD_ROOT%{_examplesdir}/blender/plugins/sequence
76 install plugins/texture/{Makefile,*.c} $RPM_BUILD_ROOT%{_examplesdir}/blender/plugins/texture
77
78 gzip -9nf README copyright.txt 
79
80 %clean
81 rm -rf $RPM_BUILD_ROOT
82
83 %files
84 %defattr(644,root,root,755)
85 %doc *.gz
86 %attr(755,root,root) %{_bindir}/blender
87 %dir %{_libdir}/blender
88 %attr(755,root,root) %{_libdir}/blender/blender
89 %{_libdir}/blender/plugins
90 %{_datadir}/blender
91 %{_includedir}/blender
92 %dir %{_examplesdir}/blender
93 %dir %{_examplesdir}/blender/plugins
94 %attr(755,root,root) %{_examplesdir}/blender/plugins/bmake
95 %attr(755,root,root) %{_examplesdir}/blender/plugins/Makefile
96 %{_examplesdir}/blender/plugins/texture
97 %{_examplesdir}/blender/plugins/sequence
This page took 0.03167 seconds and 3 git commands to generate.