- updated URL
[packages/3DKit.git] / 3DKit.spec
1 Summary:        GNU 3DKit - set of libraries based on OpenGL and GNUstep
2 Summary(pl):    GNU 3DKit - zestaw bibliotek opartych na OpenGL-u i GNUstepie
3 Name:           3DKit
4 Version:        0.3.0
5 Release:        5
6 License:        LGPL v2
7 Group:          Libraries
8 Source0:        ftp://ftp.gnustep.org/pub/gnustep/libs/%{name}-%{version}.tar.gz
9 # Source0-md5:  3606ad885ab12893c596e4c8951d019c
10 Patch0:         %{name}-make.patch
11 URL:            http://www.gnu.org/software/gnu3dkit/gnu3dkit.html
12 BuildRequires:  OpenGL-devel
13 BuildRequires:  SDL-devel >= 1.1.4
14 BuildRequires:  glut-devel
15 BuildRequires:  gnustep-gui-devel
16 BuildRequires:  perl-base
17 Requires:       OpenGL
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         _prefix         /usr/%{_lib}/GNUstep
21 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
22
23 %define         libcombo        gnu-gnu-gnu
24 %define         gsos            linux-gnu
25 %ifarch %{ix86}
26 %define         gscpu           ix86
27 %else
28 # also s/alpha.*/alpha/, but we use only "alpha" arch for now
29 %define         gscpu           %(echo %{_target_cpu} | sed -e 's/amd64/x86_64/;s/ppc/powerpc/')
30 %endif
31
32 %description
33 This is the GNU 3DKit, which is a set of general-purpose Objective-C
34 libraries that help writing 3D software, based on OpenGL/Mesa and
35 GNUstep. The libraries consist of everything from vector geometry
36 classes, such as matrices and vectors, to a complete scenegraph API.
37
38 %description -l pl
39 To jest GNU 3DKit - zestaw bibliotek Objective-C ogólnego
40 przeznaczenia maj±cych pomóc przy pisaniu oprogramowania 3D. Jest
41 oparty na OpenGL-u/Mesie oraz GNUstepie. Biblioteki zawieraj±
42 wszystko od klas geometrii wektorowej, takich jak macierze i wektory,
43 do pe³nego API opisu sceny.
44
45 %package devel
46 Summary:        Header files for 3DKit libraries
47 Summary(pl):    Pliki nag³ówkowe bibliotek 3DKit
48 Group:          Development/Libraries
49 Requires:       %{name} = %{version}-%{release}
50 Requires:       OpenGL-devel
51 Requires:       gnustep-gui-devel
52
53 %description devel
54 Header files for 3DKit libraries.
55
56 %description devel -l pl
57 Pliki nag³ówkowe bibliotek 3DKit.
58
59 %prep
60 %setup -q -n GNU%{name}
61 %patch0 -p1
62
63 sed -i -e 's@X11R6/lib@X11R6/%{_lib}@' Examples/glut/GNUmakefile
64
65 %build
66 . %{_prefix}/System/Library/Makefiles/GNUstep.sh
67 %{__make} -C 3DKit \
68         OPTFLAG="%{rpmcflags}" \
69         messages=yes
70
71 %{__make} -C GlutKit \
72         OPTFLAG="%{rpmcflags}" \
73         messages=yes
74
75 %{__make} -C SDLKit \
76         OPTFLAG="%{rpmcflags}" \
77         messages=yes
78
79 %{__make} -C Examples/glut \
80         OPTFLAG="%{rpmcflags}" \
81         messages=yes
82
83 %{__make} -C Examples/SDL \
84         OPTFLAG="%{rpmcflags}" \
85         messages=yes
86
87 %install
88 rm -rf $RPM_BUILD_ROOT
89 . %{_prefix}/System/Library/Makefiles/GNUstep.sh
90
91 %{__make} -j1 install -C 3DKit \
92         GNUSTEP_INSTALLATION_DIR=$RPM_BUILD_ROOT%{_prefix}/System
93
94 %{__make} install -C GlutKit \
95         GNUSTEP_INSTALLATION_DIR=$RPM_BUILD_ROOT%{_prefix}/System
96
97 %{__make} install -C SDLKit \
98         GNUSTEP_INSTALLATION_DIR=$RPM_BUILD_ROOT%{_prefix}/System
99
100 %{__make} install -C Examples/glut \
101         GNUSTEP_INSTALLATION_DIR=$RPM_BUILD_ROOT%{_prefix}/System
102
103 %{__make} install -C Examples/SDL \
104         GNUSTEP_INSTALLATION_DIR=$RPM_BUILD_ROOT%{_prefix}/System
105
106 %clean
107 rm -rf $RPM_BUILD_ROOT
108
109 %post   -p /sbin/ldconfig
110 %postun -p /sbin/ldconfig
111
112 %files
113 %defattr(644,root,root,755)
114 %doc 3DKit/{README,TODO}
115 %{_prefix}/System/Library/Libraries/%{gscpu}/%{gsos}/%{libcombo}/libGeometryKit.so.*
116 %{_prefix}/System/Library/Libraries/%{gscpu}/%{gsos}/%{libcombo}/libRenderKit.so.*
117 %{_prefix}/System/Library/Libraries/%{gscpu}/%{gsos}/%{libcombo}/libGlutKit.so.*
118 %{_prefix}/System/Library/Libraries/%{gscpu}/%{gsos}/%{libcombo}/libSDLKit.so.*
119
120 %files devel
121 %defattr(644,root,root,755)
122 %{_prefix}/System/Library/Headers/%{libcombo}/GeometryKit
123 %{_prefix}/System/Library/Headers/%{libcombo}/RenderKit
124 %{_prefix}/System/Library/Headers/%{libcombo}/GlutKit
125 %{_prefix}/System/Library/Headers/%{libcombo}/SDLKit
126 %{_prefix}/System/Library/Libraries/%{gscpu}/%{gsos}/%{libcombo}/libGeometryKit.so
127 %{_prefix}/System/Library/Libraries/%{gscpu}/%{gsos}/%{libcombo}/libRenderKit.so
128 %{_prefix}/System/Library/Libraries/%{gscpu}/%{gsos}/%{libcombo}/libGlutKit.so
129 %{_prefix}/System/Library/Libraries/%{gscpu}/%{gsos}/%{libcombo}/libSDLKit.so
This page took 0.076181 seconds and 3 git commands to generate.