]> git.pld-linux.org Git - packages/Coin.git/blob - Coin.spec
3ac12c0b4660673faea6f9fc07552c796821084c
[packages/Coin.git] / Coin.spec
1 #
2 Summary:        High-level, retained-mode toolkit for effective 3D graphics development
3 Summary(pl.UTF-8):      Zbiór narzędzi wysokiego poziomu do efektywnego rozwijania grafiki 3D
4 Name:           Coin
5 Version:        3.1.3
6 Release:        0.1
7 License:        GPL
8 Group:          X11/Libraries
9 Source0:        http://ftp.coin3d.org/coin/src/all/%{name}-%{version}.tar.gz
10 # Source0-md5:  1538682f8d92cdf03e845c786879fbea
11 URL:            http://www.coin3d.org/
12 BuildRequires:  OpenGL-GLU-devel
13 BuildRequires:  OpenGL-devel
14 BuildRequires:  automake
15 BuildRequires:  libstdc++-devel
16 BuildRequires:  xorg-lib-libX11-devel
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %define specflags -DCOIN_INTERNAL -DCOIN_DEBUG=0
20
21 %description
22 High-level, retained-mode toolkit for effective 3D graphics
23 development.
24
25 %package devel
26 Summary:        Header files for ... library
27 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki ...
28 Group:          X11/Development/Libraries
29 # if base package contains shared library for which these headers are
30 Requires:       %{name} = %{version}-%{release}
31 # if -libs package contains shared library for which these headers are
32 #Requires:      %{name}-libs = %{version}-%{release}
33
34 %description devel
35 Header files for ... library.
36
37 %description devel -l pl.UTF-8
38 Pliki nagłówkowe biblioteki ....
39
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
56 find '(' -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 \
71         --enable-system-expat
72
73 %{__make} \
74         LIBS="-ldl -lGL -lX11 -lpthread"
75
76 %install
77 rm -rf $RPM_BUILD_ROOT
78 # create directories if necessary
79 #install -d $RPM_BUILD_ROOT
80 %if %{with initscript}
81 install -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
89 rm -rf $RPM_BUILD_ROOT
90
91
92 %if %{with ldconfig}
93 %post   -p /sbin/ldconfig
94 %postun -p /sbin/ldconfig
95 %endif
96
97 %files
98 %defattr(644,root,root,755)
99 %doc AUTHORS ChangeLog NEWS README THANKS
100 %attr(755,root,root) %{_bindir}/coin-config
101 %attr(755,root,root) %{_libdir}/libCoin.so.*.*.*
102 %{_datadir}/%{name}
103
104 %files devel
105 %defattr(644,root,root,755)
106 # %doc devel-doc/*
107 %{_libdir}/libCoin.so
108 %{_libdir}/libCoin.la
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.055964 seconds and 2 git commands to generate.