1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
Summary: Library for the loading of 3D model files
Summary(pl): Biblioteka do ładowania plików z modelami 3D
Name: meshio
Version: 0.2.0
Release: 1
License: LGPL v2+
Group: Libraries
Source0: http://www.3dwm.org/download/%{name}-%{version}.tar.gz
# Source0-md5: 970709a30d5a2139bcdb8b57076841a6
URL: http://www.3dwm.org/frameset.html
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libstdc++-devel
BuildRequires: libtool >= 2:1.4d
Obsoletes: libmeshio0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
MeshIO is a simple C++ library for the loading of 3D model files.
Currently, MeshIO only supports plain .3DS files as well as its native
.RAW format. MeshIO will undergo a major redesign in the future.
%description -l pl
MeshIO jest prostą biblioteką napisana w C++, służącą do ładowania
plików z modelami 3D. W chwili obecnej, MeshIO wspiera tylko czyste
pliki .3DS oraz swój natywny format .RAW. MeshIO zostanie gruntownie
przeprojektowane w przyszłości.
%package devel
Summary: Development files for MeshIO
Summary(pl): Pliki nagłówkowe dla MeshIO
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Obsoletes: libmeshio0-devel
%description devel
Development files for meshio.
%description devel -l pl
Pliki nagłówkowe dla meshio.
%package static
Summary: Static meshio library
Summary(pl): Statyczna biblioteka meshio
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
%description static
Static meshio library.
%description static -l pl
Statyczna biblioteka meshio.
%prep
%setup -q
cat > acconfig.h <<EOF
#undef MAJOR_VERSION
#undef MINOR_VERSION
#undef PATCH_LEVEL
EOF
%build
rm -f missing
%{__libtoolize}
%{__aclocal}
%{__autoconf}
%{__autoheader}
%{__automake}
%configure
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(644,root,root,755)
%doc AUTHORS NEWS
%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
%files devel
%defattr(644,root,root,755)
%{_libdir}/lib*.la
%{_libdir}/lib*.so
%{_includedir}/MeshIO
%files static
%defattr(644,root,root,755)
%{_libdir}/lib*.a
|