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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
#
Summary: High-level, retained-mode toolkit for effective 3D graphics development
Summary(pl.UTF-8): Zbiór narzędzi wysokiego poziomu do efektywnego rozwijania grafiki 3D
Name: Coin
Version: 3.1.3
Release: 0.1
License: GPL
Group: X11/Libraries
Source0: http://ftp.coin3d.org/coin/src/all/%{name}-%{version}.tar.gz
# Source0-md5: 1538682f8d92cdf03e845c786879fbea
URL: http://www.coin3d.org/
BuildRequires: OpenGL-GLU-devel
BuildRequires: OpenGL-devel
BuildRequires: automake
BuildRequires: libstdc++-devel
BuildRequires: xorg-lib-libX11-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define specflags -DCOIN_INTERNAL -DCOIN_DEBUG=0
%description
High-level, retained-mode toolkit for effective 3D graphics
development.
%package devel
Summary: Header files for ... library
Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ...
Group: X11/Development/Libraries
# if base package contains shared library for which these headers are
Requires: %{name} = %{version}-%{release}
# if -libs package contains shared library for which these headers are
#Requires: %{name}-libs = %{version}-%{release}
%description devel
Header files for ... library.
%description devel -l pl.UTF-8
Pliki nagłówkowe biblioteki ....
%prep
%setup -q
#%setup -q -c -T
#%setup -q -n %{name}
#%setup -q -n %{name}-%{version}.orig -a 1
#%patch0 -p1
# undos the source
#find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 %{__sed} -i -e 's,\r$,,'
# remove CVS control files
#find -name CVS -print0 | xargs -0 rm -rf
# you'll need this if you cp -a complete dir in source
# cleanup backups after patching
find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
%build
# if ac/am/* rebuilding is necessary, do it in this order and add
# appropriate BuildRequires
#%%{__intltoolize}
#%%{__gettextize}
#%%{__libtoolize}
#%%{__aclocal}
#%%{__autoconf}
#%%{__autoheader}
#%%{__automake}
# if not running libtool or automake, but config.sub is too old:
# cp -f /usr/share/automake/config.sub .
%configure \
--enable-system-expat
%{__make} \
LIBS="-ldl -lGL -lX11 -lpthread"
%install
rm -rf $RPM_BUILD_ROOT
# create directories if necessary
#install -d $RPM_BUILD_ROOT
%if %{with initscript}
install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d}
%endif
#install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%if %{with ldconfig}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%endif
%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README THANKS
%attr(755,root,root) %{_bindir}/coin-config
%attr(755,root,root) %{_libdir}/libCoin.so.*.*.*
%{_datadir}/%{name}
%files devel
%defattr(644,root,root,755)
# %doc devel-doc/*
%{_libdir}/libCoin.so
%{_libdir}/libCoin.la
%{_includedir}/Inventor
%{_includedir}/SoDebug.h
%{_includedir}/SoWinEnterScope.h
%{_includedir}/SoWinLeaveScope.h
%{_aclocaldir}/*.m4
%{_pkgconfigdir}/*.pc
|