version/0.1
[cdimgtools.git] / cdimgtools.spec.in
blob626333b714f45322d29b4395c70aa154230b6fb3
1 # -*- mode: rpm-spec-mode; encoding: utf-8 -*-
2 # vim: ft=spec noexpandtab
3 # Pass '--without docs' to rpmbuild if you don't want the documentation to be built
5 Name: cdimgtools
6 Summary: command line tools to inspect and manipulate CD image files
7 Version: @@VERSION@@
8 Release: 0.1%{?dist}
9 License: GPLv2
10 Group: Applications/Multimedia
11 Vendor: Géraud Meyer <graud@gmx.com>
12 Source: %{name}-%{version}.tar.gz
13 BuildArch: noarch
14 %{!?_without_docs:BuildRequires: asciidoc > 6.0.3, perl-doc}
15 Requires: perl
17 %description
18 CDimgtools is a small set of command line tools to inspect and manipulate CD
19 (and possibly DVD) images of formats uncommon on Linux/UNIX systems.
21 You can print information about an image file and extract its tracks to files
22 in raw format, so that they can be used with common Linux/UNIX tools (for
23 playing audio, reading files, burning tracks or sessions to optical media
24 etc.).
26 You can also demultiplex RAW+96 image files containing both stream data (audio,
27 raw data or .iso format data) and sub-channel data of a given sector at
28 contiguous positions.
30 %prep
31 %setup -q
33 %build
34 %{__make} \
35 prefix=%{_prefix} \
36 all %{!?_without_docs: doc-man doc-html} %{?_without_docs: doc-txt}
38 %install
39 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
40 %{__make} DESTDIR=$RPM_BUILD_ROOT \
41 prefix=%{_prefix} bindir=%{_bindir} mandir=%{_mandir} \
42 install %{!?_without_docs: install-doc-man}
44 %clean
45 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
47 %files
48 %defattr(-,root,root)
49 %{_bindir}/*
50 %doc README INSTALL BUGS COPYING
51 %{!?_without_docs: %{_mandir}/man1/*.1*}
52 %{!?_without_docs: %doc *.html}
53 %{?_without_docs: %doc *.txt}
55 %changelog
56 * Sun Nov 18 2012 Géraud Meyer <graud@gmx.com>
57 - First packaging