6982
|
1 |
#
|
|
2 |
# spec file for package libcdio
|
|
3 |
#
|
|
4 |
# Copyright (c) 2005 Sun Microsystems, Inc.
|
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
8564
|
8 |
# Owner: yippi
|
|
9 |
#
|
6982
|
10 |
# Note Patch libcdio-01-noc++lib.diff is used to turn off building
|
|
11 |
# and installing of the C++ includes and library. These are just
|
|
12 |
# C++ interfaces so C++ programs can access the libcdio interfaces.
|
|
13 |
# We have to turn these off because since we build this with gcc, we
|
|
14 |
# can not ship C++ interfaces. Also, Forte C++ compiler has more
|
|
15 |
# problems than the Forte C compiler with recognizing flexible arrays.
|
|
16 |
# If these issues get resolved, then we could start shipping the
|
|
17 |
# libcdio C++ code.
|
|
18 |
|
|
19 |
Name: libcdio
|
|
20 |
License: LGPL
|
|
21 |
Group: System Environment/Libraries
|
8467
|
22 |
Version: 0.78.2
|
6982
|
23 |
Release: 1
|
|
24 |
Distribution: Java Desktop System
|
|
25 |
Vendor: Sun Microsystems, Inc.
|
7507
|
26 |
Summary: Utilities for CD interaction
|
6982
|
27 |
Source: http://ftp.gnu.org/gnu/libcdio/%{name}-%{version}.tar.gz
|
|
28 |
URL: http://ftp.gnu.org/
|
|
29 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
30 |
Docdir: %{_defaultdocdir}/%{name}
|
|
31 |
Autoreqprov: on
|
|
32 |
|
|
33 |
%description
|
|
34 |
Utilities for CD interaction
|
|
35 |
|
|
36 |
%package devel
|
|
37 |
Summary: Headers for developing programs that will use libcdio
|
|
38 |
Group: Development/Libraries
|
|
39 |
Requires: %{name}
|
|
40 |
|
|
41 |
%description devel
|
|
42 |
This package contains the headers that programmers will need to develop
|
|
43 |
applications which will use libcdio.
|
|
44 |
|
|
45 |
%prep
|
|
46 |
%setup -q
|
|
47 |
|
|
48 |
%build
|
|
49 |
%ifos linux
|
|
50 |
if [ -x /usr/bin/getconf ]; then
|
|
51 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
52 |
fi
|
|
53 |
%else
|
|
54 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
55 |
%endif
|
|
56 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
57 |
CPUS=1
|
|
58 |
fi
|
|
59 |
|
|
60 |
libtoolize --force
|
|
61 |
aclocal $ACLOCAL_FLAGS -I .
|
|
62 |
automake -a -c -f
|
|
63 |
autoconf
|
|
64 |
./configure \
|
|
65 |
--prefix=%{_prefix} \
|
|
66 |
--sysconfdir=%{_sysconfdir} \
|
|
67 |
--mandir=%{_mandir} \
|
8467
|
68 |
--disable-cpp-progs --disable-cxx
|
6982
|
69 |
make -j $CPUS
|
|
70 |
|
|
71 |
%install
|
|
72 |
make -i install DESTDIR=$RPM_BUILD_ROOT
|
|
73 |
|
|
74 |
#Clean up unpackaged files
|
|
75 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a
|
|
76 |
rm $RPM_BUILD_ROOT%{_libdir}/*la
|
|
77 |
|
|
78 |
%clean
|
|
79 |
rm -rf $RPM_BUILD_ROOT
|
|
80 |
|
|
81 |
%post -p /sbin/ldconfig
|
|
82 |
%postun -p /sbin/ldconfig
|
|
83 |
|
|
84 |
%files
|
|
85 |
%defattr (-, root, root)
|
|
86 |
%{_libdir}/*.so.*
|
|
87 |
|
|
88 |
%files devel
|
|
89 |
%defattr(-, root, root)
|
|
90 |
%{_libdir}/*.so
|
|
91 |
|
|
92 |
%changelog
|
8467
|
93 |
* Wed Nov 01 2006 - [email protected]
|
|
94 |
- Bump to 0.78.2. Remove upstream patch, 01-noc++lib.
|
|
95 |
|
6982
|
96 |
* Tue Mar 22 2006 - [email protected]
|
|
97 |
- Initial spec file checkin
|