]> git.pld-linux.org Git - packages/lib3ds.git/blob - lib3ds.spec
a89de21e375d73886c15d2da8e1efd7eabb8e51f
[packages/lib3ds.git] / lib3ds.spec
1 Summary:        The 3D Studio File Format Library
2 Summary(pl):    Biblioteka obs³uguj±ca format plików 3D Studio
3 Name:           lib3ds
4 Version:        1.2.0
5 Release:        1
6 License:        LGPL
7 Group:          Libraries
8 Source0:        http://dl.sourceforge.net/lib3ds/%{name}-%{version}.tar.gz
9 # Source0-md5:  3a7f891d18af0151876b98bc05d3b373
10 Patch0:         %{name}-shared.patch
11 URL:            http://lib3ds.sourceforge.net/
12 BuildRequires:  autoconf
13 BuildRequires:  automake
14 BuildRequires:  libtool
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 lib3ds is a free alternative to Autodesk's 3DS File Toolkit for
19 handling 3DS files. It's main goal is to simplify the creation of 3DS
20 import and export filters.
21
22 This project is not related in any form to Autodesk. The library is
23 based on unofficial information about the 3DS format found on the web.
24
25 %description -l pl
26 lib3ds to wolnodostêpna alternatywa dla 3DS File Toolkit Autodeska do
27 obs³ugi plików 3DS. G³ównym celem biblioteki jest uproszczenie
28 tworzenia filtrów importuj±cych i eksportuj±cych 3DS.
29
30 Projekt nie jest w ¿aden sposób zwi±zany z Autodeskiem. Biblioteka
31 jest oparta na nieoficjalnych informacjach o formacie 3DS znalezionych
32 w sieci.
33
34 %package devel
35 Summary:        lib3ds header files
36 Summary(pl):    Pliki nag³ówkowe lib3ds
37 Group:          Development/Libraries
38 Requires:       %{name} = %{version}
39
40 %description devel
41 lib3ds header files.
42
43 %description devel -l pl
44 Pliki nag³ówkowe lib3ds.
45
46 %package static
47 Summary:        Static lib3ds library
48 Summary(pl):    Statyczna biblioteka lib3ds
49 Group:          Development/Libraries
50 Requires:       %{name}-devel = %{version}
51
52 %description static
53 Static lib3ds library.
54
55 %description static -l pl
56 Statyczna biblioteka lib3ds.
57
58 %prep
59 %setup -q
60 %patch -p1
61
62 %build
63 # extract CONFIGURE_GLUT macro
64 tail -116 aclocal.m4 | head -102 > acinclude.m4
65 %{__libtoolize}
66 %{__aclocal}
67 %{__autoconf}
68 %{__autoheader}
69 %{__automake}
70 #CPPFLAGS="-I/usr/X11R6/include" - but GL/glut is used only for noinst_PROGRAMS
71 %configure
72
73 %{__make}
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77
78 %{__make} install \
79         DESTDIR=$RPM_BUILD_ROOT
80
81 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
82 install examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
83 sed -e 's/@GLUT_HEADER_DIR@/GL/' examples/glstub.h.in \
84         $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
85
86 %clean
87 rm -rf $RPM_BUILD_ROOT
88
89 %post   -p /sbin/ldconfig
90 %postun -p /sbin/ldconfig
91
92 %files
93 %defattr(644,root,root,755)
94 %doc AUTHORS ChangeLog README
95 %attr(755,root,root) %{_bindir}/3ds*
96 %attr(755,root,root) %{_libdir}/lib3ds.so.*.*
97 %{_mandir}/man1/3ds*.1*
98
99 %files devel
100 %defattr(644,root,root,755)
101 %attr(755,root,root) %{_bindir}/lib3ds-config
102 %attr(755,root,root) %{_libdir}/lib3ds.so
103 %{_libdir}/lib3ds.la
104 %{_includedir}/lib3ds
105 %{_aclocaldir}/*.m4
106 %{_mandir}/man1/lib3ds-config.1*
107 %{_examplesdir}/%{name}-%{version}
108
109 %files static
110 %defattr(644,root,root,755)
111 %{_libdir}/lib3ds.a
This page took 0.023863 seconds and 2 git commands to generate.