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