]> git.pld-linux.org Git - packages/crossmingw32-lib3ds.git/blame - crossmingw32-lib3ds.spec
- converted to UTF-8
[packages/crossmingw32-lib3ds.git] / crossmingw32-lib3ds.spec
CommitLineData
18e0d3f1 1%define realname lib3ds
2Summary: The 3D Studio File Format Library - Mingw32 cross version
ba4bc137 3Summary(pl.UTF-8): Biblioteka obsługująca format plików 3D Studio - wersja skrośna dla Mingw32
18e0d3f1 4Name: crossmingw32-%{realname}
5Version: 1.2.0
6580e556 6Release: 4
18e0d3f1 7License: LGPL
8Group: Libraries
9Source0: http://dl.sourceforge.net/lib3ds/%{realname}-%{version}.tar.gz
10# Source0-md5: 3a7f891d18af0151876b98bc05d3b373
18e0d3f1 11URL: http://lib3ds.sourceforge.net/
6580e556 12Requires: crossmingw32-runtime
18e0d3f1 13BuildRequires: autoconf
14BuildRequires: automake
15BuildRequires: crossmingw32-gcc
16BuildRequires: crossmingw32-w32api
17BuildRequires: libtool
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%define no_install_post_strip 1
21
22%define target i386-mingw32
23%define target_platform i386-pc-mingw32
24%define arch %{_prefix}/%{target}
25%define gccarch %{_prefix}/lib/gcc-lib/%{target}
26%define gcclib %{_prefix}/lib/gcc-lib/%{target}/%{version}
27
28%define __cc %{target}-gcc
29%define __cxx %{target}-g++
30
0fdb6e94 31%ifarch alpha sparc sparc64 sparcv9
32%define optflags -O2
33%endif
34
18e0d3f1 35%description
36lib3ds is a free alternative to Autodesk's 3DS File Toolkit for
37handling 3DS files. It's main goal is to simplify the creation of 3DS
38import and export filters.
39
ba4bc137
JR
40%description -l pl.UTF-8
41lib3ds to wolnodostępna alternatywa dla 3DS File Toolkit Autodeska do
42obsługi plików 3DS. Głównym celem biblioteki jest uproszczenie
43tworzenia filtrów importujących i eksportujących 3DS.
18e0d3f1 44
45%package dll
46Summary: %{realname} - DLL library for Windows
ba4bc137 47Summary(pl.UTF-8): %{realname} - biblioteka DLL dla Windows
18e0d3f1 48Group: Applications/Emulators
49
50%description dll
51%{realname} - DLL library for Windows.
52
ba4bc137 53%description dll -l pl.UTF-8
18e0d3f1 54%{realname} - biblioteka DLL dla Windows.
55
56%prep
57%setup -q -n %{realname}-%{version}
18e0d3f1 58
59%build
60CC=%{target}-gcc ; export CC
61CXX=%{target}-g++ ; export CXX
62LD=%{target}-ld ; export LD
63AR=%{target}-ar ; export AR
64AS=%{target}-as ; export AS
65CROSS_COMPILE=1 ; export CROSS_COMPILE
66CPPFLAGS="-I%{arch}/include" ; export CPPFLAGS
67RANLIB=%{target}-ranlib ; export RANLIB
68LDSHARED="%{target}-gcc -shared" ; export LDSHARED
69TARGET="%{target}" ; export TARGET
70
ab01f857 71tail -n 116 aclocal.m4 | head -n 102 > acinclude.m4
18e0d3f1 72%{__libtoolize}
73%{__aclocal}
74%{__autoconf}
75%{__autoheader}
76%{__automake}
722c4d20 77%configure \
78 --host=%{_host} \
79 --target=%{target}
18e0d3f1 80
9cb4eccf 81# glut is broken
82echo "int main(){}" > examples/player.c
83
18e0d3f1 84%{__make}
85
86cd lib3ds
87%{__cc} --shared *.o -Wl,--enable-auto-image-base -o 3ds.dll -Wl,--out-implib,lib3ds.dll.a
88
89%if 0%{!?debug:1}
90%{target}-strip *.dll
91%{target}-strip -g -R.comment -R.note *.a
92%endif
93
94%install
95rm -rf $RPM_BUILD_ROOT
96install -d $RPM_BUILD_ROOT%{arch}/{include/lib3ds,lib}
97install -d $RPM_BUILD_ROOT%{_datadir}/wine/windows/system
98
99cd lib3ds
100
101install *.h $RPM_BUILD_ROOT%{arch}/include/lib3ds
102rm $RPM_BUILD_ROOT%{arch}/include/lib3ds/chunktable.h
103install lib3ds{,.dll}.a $RPM_BUILD_ROOT%{arch}/lib
104install 3ds.dll $RPM_BUILD_ROOT%{_datadir}/wine/windows/system
105
106%clean
107rm -rf $RPM_BUILD_ROOT
108
109%files
110%defattr(644,root,root,755)
111%{arch}/include/*
112%{arch}/lib/*
113
114%files dll
115%defattr(644,root,root,755)
116%{_datadir}/wine/windows/system/*
This page took 0.035646 seconds and 4 git commands to generate.