SuSE spec file from Stanislav Brabec
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# $Id: Makefile.am,v 1.31 2004/12/24 10:41:01 rocky Exp $
|
||||
# $Id: Makefile.am,v 1.32 2005/01/25 02:13:47 rocky Exp $
|
||||
#
|
||||
# Copyright (C) 2003, 2004 Rocky Bernstein <rocky@panix.com>
|
||||
#
|
||||
@@ -20,7 +20,12 @@
|
||||
## which configure then turns into a Makefile ...
|
||||
## which make can then use to produce stuff. Isn't configuration simple?
|
||||
|
||||
EXTRA_DIST = libpopt.m4 THANKS README.libcdio libcdio.spec.in libcdio.spec \
|
||||
EXTRA_DIST = libpopt.m4 THANKS README.libcdio \
|
||||
package/libcdio-suse.spec.in package/libcdio-suse.spec \
|
||||
package/libcdio.spec.in package/libcdio.spec \
|
||||
package/libcdio.pc.in package/libcdio.pc \
|
||||
package/libcdio_cdda.pc.in package/libcdio_cdda.pc \
|
||||
package/libiso9660.pc.in package/libiso9660.pc \
|
||||
example/README \
|
||||
MSVC/config.h MSVC/README MSVC/cd-info.vcproj \
|
||||
MSVC/libcdio.sln MSVC/libcdio.vcproj
|
||||
|
||||
6
package/.cvsignore
Normal file
6
package/.cvsignore
Normal file
@@ -0,0 +1,6 @@
|
||||
libcdio-suse.spec
|
||||
libcdio.pc
|
||||
libcdio.spec
|
||||
libiso9660.pc
|
||||
libcdio_cdda.pc
|
||||
libcdio_paranoia.pc
|
||||
150
package/libcdio-suse.spec.in
Normal file
150
package/libcdio-suse.spec.in
Normal file
@@ -0,0 +1,150 @@
|
||||
### $Id: libcdio-suse.spec.in,v 1.1 2005/01/25 02:13:47 rocky Exp $
|
||||
### autogenerated---edit *.spec.in
|
||||
|
||||
%define ver @VERSION@
|
||||
%define rel 1
|
||||
|
||||
Name: %{name}
|
||||
Version: %{ver}
|
||||
Release: %{rel}
|
||||
%define libcddb_version 0.9.6
|
||||
URL: http://www.gnu.org/software/libcdio/
|
||||
Group: Productivity/Multimedia/Other
|
||||
License: GPL
|
||||
Summary: CD-ROM access library
|
||||
Source: %{name}-%{version}.tar.bz2
|
||||
Source1: libcddb-%{libcddb_version}.tar.bz2
|
||||
NoSource: 1
|
||||
Autoreqprov: on
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
This library is to encapsulate CD-ROM reading and control. Applications
|
||||
wishing to be oblivious of the OS- and device-dependent properties of a
|
||||
CD-ROM can use this library.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Herbert Valerio Riedel <hvr@gnu.org>
|
||||
Rocky Bernstein <rocky@panix.com>
|
||||
|
||||
%description -l de
|
||||
Diese Bibliothek dient zur Kapselung von CD-ROM Zugriffen und
|
||||
dessen Kontrolle. Anwendungen brauchen sich nicht um die
|
||||
Betriebssystemspezifischen oder Device-Abh<62>¤ngigen Eigenschaften
|
||||
des CD-ROM zu k<EFBFBD>¼mmern, dies erledigt die Bibliothek.
|
||||
|
||||
%package devel
|
||||
Group: Productivity/Multimedia/Other
|
||||
Summary: CD-ROM access library
|
||||
Requires: libcdio = %{version}
|
||||
|
||||
%description devel
|
||||
This library is to encapsulate CD-ROM reading and control. Applications
|
||||
wishing to be oblivious of the OS- and device-dependent properties of a
|
||||
CD-ROM can use this library.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Herbert Valerio Riedel <hvr@gnu.org>
|
||||
Rocky Bernstein <rocky@panix.com>
|
||||
|
||||
%description -l de devel
|
||||
Diese Bibliothek dient zur Kapselung von CD-ROM Zugriffen und
|
||||
dessen Kontrolle. Anwendungen brauchen sich nicht um die
|
||||
Betriebssystemspezifischen oder Device-Abh<62>¤ngigen Eigenschaften
|
||||
des CD-ROM zu k<EFBFBD>¼mmern, dies erledigt die Bibliothek.
|
||||
|
||||
%prep
|
||||
%setup -a1
|
||||
|
||||
%build
|
||||
# libvcdinfo depends on libcdio, which is not yet built.
|
||||
# We must build featureless libcdio first, then install and build fully featured package.
|
||||
LIBCDIO_INSTALL=$PWD/libcdio-install
|
||||
LIBCDDB_INSTALL=$PWD/libcddb-install
|
||||
export CFLAGS="$RPM_OPT_FLAGS"
|
||||
%{?suse_update_config:%{suse_update_config -f -l}}
|
||||
./configure\
|
||||
--prefix=/usr\
|
||||
--libdir=%{_libdir}\
|
||||
--infodir=%{_infodir}\
|
||||
--mandir=%{_mandir}
|
||||
make
|
||||
make DESTDIR="$LIBCDIO_INSTALL" install
|
||||
# We need to adjust path to libiso9660.la.
|
||||
# To make this trick, we need to disable norootforbuild.
|
||||
cp -a /usr/%_lib/libvcdinfo.* $LIBCDIO_INSTALL%{_libdir}
|
||||
mv /usr/%_lib/libvcdinfo.la /usr/%_lib/libvcdinfo.la.hidden
|
||||
for lib in $LIBCDIO_INSTALL%{_libdir}/*.la ; do
|
||||
sed -i "s@%{_libdir}@$LIBCDIO_INSTALL%{_libdir}@g" $lib
|
||||
done
|
||||
export C_INCLUDE_PATH="$LIBCDIO_INSTALL/usr/include"
|
||||
export LIBRARY_PATH="$LIBCDIO_INSTALL%{_libdir}"
|
||||
export PKG_CONFIG_PATH="$LIBCDIO_INSTALL%{_libdir}/pkgconfig"
|
||||
# Now build libcddb, which has circular dependency on libcdio.
|
||||
cd libcddb-%{libcddb_version}
|
||||
%{?suse_update_config:%{suse_update_config -f -l}}
|
||||
./configure\
|
||||
--prefix=/usr\
|
||||
--libdir=%{_libdir}\
|
||||
--infodir=%{_infodir}\
|
||||
--mandir=%{_mandir}
|
||||
make
|
||||
make DESTDIR="$LIBCDDB_INSTALL" install
|
||||
export C_INCLUDE_PATH="$LIBCDIO_INSTALL/usr/include:$LIBCDDB_INSTALL/usr/include"
|
||||
export LIBRARY_PATH="$LIBCDIO_INSTALL%{_libdir}:$LIBCDDB_INSTALL%{_libdir}"
|
||||
export PKG_CONFIG_PATH="$LIBCDIO_INSTALL%{_libdir}/pkgconfig:$LIBCDDB_INSTALL%{_libdir}/pkgconfig"
|
||||
# Now build final version of libcdio.
|
||||
cd ..
|
||||
./configure\
|
||||
--prefix=/usr\
|
||||
--libdir=/usr/%{_lib}\
|
||||
--infodir=/usr/share/info\
|
||||
--mandir=/usr/share/man
|
||||
make
|
||||
mv /usr/%_lib/libvcdinfo.la.hidden /usr/%_lib/libvcdinfo.la
|
||||
|
||||
%install
|
||||
LIBCDIO_INSTALL=$PWD/libcdio-install
|
||||
LIBCDDB_INSTALL=$PWD/libcddb-install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
for lib in $RPM_BUILD_ROOT%{_libdir}/*.la ; do
|
||||
sed -i "s@$LIBCDIO_INSTALL@@g;s@$LIBCDDB_INSTALL@@g" $lib
|
||||
done
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%post
|
||||
%run_ldconfig
|
||||
%install_info --info-dir=%{_infodir} %{_infodir}/%name.info.gz
|
||||
|
||||
%postun
|
||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%name.info.gz
|
||||
|
||||
%files
|
||||
%defattr (-, root, root)
|
||||
%doc AUTHORS COPYING ChangeLog NEWS README README.libcdio THANKS TODO
|
||||
/usr/%{_lib}/*.so
|
||||
/usr/%{_lib}/*.so.*
|
||||
/usr/bin/*
|
||||
%doc /usr/share/info/*.info*
|
||||
|
||||
%files devel
|
||||
%defattr (-, root, root)
|
||||
/usr/%{_lib}/*.*a
|
||||
/usr/%{_lib}/pkgconfig/*.pc
|
||||
/usr/include/*
|
||||
|
||||
%changelog -n libcdio
|
||||
* Mon Jan 24 2005 - sbrabec@suse.cz
|
||||
- Updated to version 0.71.
|
||||
* Tue Nov 09 2004 - sbrabec@suse.cz
|
||||
- New SuSE package, version 0.70.
|
||||
- Work-around of circular dependency on libcddb and vcdimager.
|
||||
Reference in New Issue
Block a user