119 lines
3.7 KiB
RPMSpec
119 lines
3.7 KiB
RPMSpec
|
#
|
||
|
# spec file for package libodraw
|
||
|
#
|
||
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||
|
#
|
||
|
# All modifications and additions to the file contributed by third parties
|
||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||
|
# upon. The license for this file, and modifications and additions to the
|
||
|
# file, is the same license as for the pristine package itself (unless the
|
||
|
# license for the pristine package is not an Open Source License, in which
|
||
|
# case the license is the MIT License). An "Open Source License" is a
|
||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||
|
# published by the Open Source Initiative.
|
||
|
|
||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||
|
#
|
||
|
|
||
|
|
||
|
Name: libodraw
|
||
|
%define lname libodraw1
|
||
|
%define timestamp 20120923
|
||
|
Version: 0~%timestamp
|
||
|
Release: 0
|
||
|
License: LGPL-3.0+ and GFDL-1.3+
|
||
|
Summary: Library and tools to access to optical disc (split) RAW image files
|
||
|
Group: Productivity/File utilities
|
||
|
Url: http://code.google.com/p/libodraw/
|
||
|
|
||
|
#Git-Clone: http://code.google.com/p/libodraw
|
||
|
#DL-URL: https://googledrive.com/host/0B3fBvzttpiiSVUh3YzQ3c092Yms/libodraw-alpha-20120923.tar.gz
|
||
|
Source: %name-alpha-%timestamp.tar.gz
|
||
|
Source2: CUE_sheet_format.pdf
|
||
|
BuildRequires: pkg-config
|
||
|
#use factory packages if available
|
||
|
%if 0%{?suse_version} > 1230
|
||
|
BuildRequires: pkgconfig(libcnotify) >= 20120425
|
||
|
BuildRequires: pkgconfig(libcsplit) >= 20120701
|
||
|
%endif
|
||
|
#BuildRequires: pkgconfig(libbfio) >= 20120426
|
||
|
#BuildRequires: pkgconfig(libcdata) >= 20120425
|
||
|
#BuildRequires: pkgconfig(libcerror) >= 20120425
|
||
|
#BuildRequires: pkgconfig(libcfile) >= 20120526
|
||
|
#BuildRequires: pkgconfig(libclocale) >= 20120425
|
||
|
#BuildRequires: pkgconfig(libcpath) >= 20120701
|
||
|
#BuildRequires: pkgconfig(libuna) >= 20120425
|
||
|
# packages not (yet) released by upstream
|
||
|
#BuildRequires: pkgconfig(libcstring) >= 20120425
|
||
|
#BuildRequires: pkgconfig(libcsystem) >= 20120425
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
|
||
|
%description
|
||
|
libodraw is a library to access optical disc (split) RAW images such
|
||
|
as BIN/ISO/CUE.
|
||
|
|
||
|
%package -n %lname
|
||
|
Summary: Library to access to optical disc (split) RAW image files
|
||
|
License: LGPL-3.0+
|
||
|
Group: System/Libraries
|
||
|
|
||
|
%description -n %lname
|
||
|
libodraw is a library to access optical disc (split) RAW images such
|
||
|
as BIN/ISO/CUE.
|
||
|
|
||
|
%package devel
|
||
|
Summary: Development files for libodraw, a disc image file library
|
||
|
Group: Development/Libraries/C and C++
|
||
|
Requires: %lname = %version
|
||
|
|
||
|
%description devel
|
||
|
libodraw is a library to access optical disc (split) RAW images such
|
||
|
as BIN/ISO/CUE.
|
||
|
|
||
|
This subpackage contains libraries and header files for developing
|
||
|
applications that want to make use of libodraw.
|
||
|
|
||
|
%package tools
|
||
|
Summary: Utilities for reading BIN/ISO/CUE image files through libodraw
|
||
|
License: LGPL-3.0+
|
||
|
Group: Productivity/File utilities
|
||
|
|
||
|
%description tools
|
||
|
This subpackage contains the utility programs from libodraw, which
|
||
|
can read optical disc (split) RAW image files such as BIN/ISO/CUE.
|
||
|
|
||
|
%prep
|
||
|
%setup -qn libodraw-%timestamp
|
||
|
cp "%{S:2}" .
|
||
|
|
||
|
%build
|
||
|
%configure --disable-static --enable-wide-character-type
|
||
|
make %{?_smp_mflags}
|
||
|
|
||
|
%install
|
||
|
make install DESTDIR="%buildroot"
|
||
|
rm -f "%buildroot/%_libdir"/*.la
|
||
|
|
||
|
%post -n %lname -p /sbin/ldconfig
|
||
|
%postun -n %lname -p /sbin/ldconfig
|
||
|
|
||
|
%files -n %lname
|
||
|
%defattr(-,root,root)
|
||
|
%doc AUTHORS COPYING ChangeLog
|
||
|
%_libdir/libodraw.so.1*
|
||
|
|
||
|
%files devel
|
||
|
%defattr(-,root,root)
|
||
|
%doc CUE_*.pdf
|
||
|
%_includedir/libodraw*
|
||
|
%_libdir/libodraw.so
|
||
|
%_libdir/pkgconfig/libodraw.pc
|
||
|
%_mandir/man3/libodraw.3*
|
||
|
|
||
|
%files tools
|
||
|
%defattr(-,root,root)
|
||
|
%_bindir/odrawinfo
|
||
|
%_mandir/man1/odrawinfo.1*
|
||
|
|
||
|
%changelog
|