- cleaned-up LIBS passing
[packages/Coin.git] / Coin.spec
CommitLineData
fe21aefb 1#
fe21aefb
MK
2Summary: High-level, retained-mode toolkit for effective 3D graphics development
3Summary(pl.UTF-8): Zbiór narzędzi wysokiego poziomu do efektywnego rozwijania grafiki 3D.
4Name: Coin
5Version: 3.1.3
6Release: 0.1
7License: GPL
466db9d4 8Group: X11/Libraries
fe21aefb
MK
9Source0: http://ftp.coin3d.org/coin/src/all/%{name}-%{version}.tar.gz
10# Source0-md5: 1538682f8d92cdf03e845c786879fbea
fe21aefb 11URL: http://www.coin3d.org/
466db9d4 12BuildRequires: OpenGL-GLU-devel
13BuildRequires: OpenGL-devel
14BuildRequires: automake
15BuildRequires: libstdc++-devel
16BuildRequires: xorg-lib-libX11-devel
fe21aefb
MK
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
466db9d4 19%define specflags -DCOIN_INTERNAL -DCOIN_DEBUG=0
fe21aefb 20
466db9d4 21%description
22High-level, retained-mode toolkit for effective 3D graphics
23development
fe21aefb
MK
24
25%package devel
26Summary: Header files for ... library
27Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ...
466db9d4 28Group: X11/Development/Libraries
fe21aefb 29# if base package contains shared library for which these headers are
14b3cc83 30Requires: %{name} = %{version}-%{release}
fe21aefb
MK
31# if -libs package contains shared library for which these headers are
32#Requires: %{name}-libs = %{version}-%{release}
33
34%description devel
35Header files for ... library.
36
37%description devel -l pl.UTF-8
38Pliki nagłówkowe biblioteki ....
39
fe21aefb
MK
40
41%prep
42%setup -q
43#%setup -q -c -T
44#%setup -q -n %{name}
45#%setup -q -n %{name}-%{version}.orig -a 1
46#%patch0 -p1
47
48# undos the source
49#find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 %{__sed} -i -e 's,\r$,,'
50
51# remove CVS control files
52#find -name CVS -print0 | xargs -0 rm -rf
53
54# you'll need this if you cp -a complete dir in source
55# cleanup backups after patching
56find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
57
58%build
59# if ac/am/* rebuilding is necessary, do it in this order and add
60# appropriate BuildRequires
61#%%{__intltoolize}
62#%%{__gettextize}
63#%%{__libtoolize}
64#%%{__aclocal}
65#%%{__autoconf}
66#%%{__autoheader}
67#%%{__automake}
68# if not running libtool or automake, but config.sub is too old:
69# cp -f /usr/share/automake/config.sub .
70%configure \
466db9d4 71 --enable-system-expat
fe21aefb 72
14b3cc83 73%{__make} \
466db9d4 74 LIBS="-ldl -lGL -X11 -lpthread"
fe21aefb
MK
75
76%install
77rm -rf $RPM_BUILD_ROOT
78# create directories if necessary
79#install -d $RPM_BUILD_ROOT
80%if %{with initscript}
81install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d}
82%endif
83#install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
84
85%{__make} install \
86 DESTDIR=$RPM_BUILD_ROOT
87
88%clean
89rm -rf $RPM_BUILD_ROOT
90
fe21aefb
MK
91
92%if %{with ldconfig}
93%post -p /sbin/ldconfig
94%postun -p /sbin/ldconfig
95%endif
96
fe21aefb
MK
97%files
98%defattr(644,root,root,755)
14b3cc83
MK
99%doc AUTHORS ChangeLog NEWS README THANKS
100%attr(755,root,root) %{_bindir}/coin-config
466db9d4 101%attr(755,root,root) %{_libdir}/libCoin.so.*.*.*
fe21aefb 102%{_datadir}/%{name}
fe21aefb 103
14b3cc83 104%files devel
fe21aefb 105%defattr(644,root,root,755)
14b3cc83 106# %doc devel-doc/*
466db9d4 107%{_libdir}/libCoin.so
108%{_libdir}/libCoin.la
14b3cc83
MK
109%{_includedir}/Inventor
110%{_includedir}/SoDebug.h
111%{_includedir}/SoWinEnterScope.h
112%{_includedir}/SoWinLeaveScope.h
113%{_aclocaldir}/*.m4
114%{_pkgconfigdir}/*.pc
This page took 0.071038 seconds and 4 git commands to generate.