-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcdrkit.spec
153 lines (135 loc) · 5.14 KB
/
cdrkit.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
# $Owl: Owl/packages/cdrkit/cdrkit.spec,v 1.14 2014/07/12 14:08:28 galaxy Exp $
%{?!BUILD_NETSCSID: %define BUILD_NETSCSID 0}
Summary: A collection of command-line CD/DVD recording utilities.
Name: cdrkit
Version: 1.1.11
Release: owl2
License: GPLv2
Group: Applications/System
URL: http://cdrkit.org
# http://cdrkit.org/releases/cdrkit-%version.tar.gz
Source0: cdrkit-%version.tar.xz
Source1: cdrkit-build
Source2: cdrkit-install
Source3: align.h
Source4: xconfig.h
Source10: README.ATAPI.setup
# README-cmakeless is unused by this package.
# It is specified here such that it gets included into the .src.rpm file.
Source99: README-cmakeless
Patch0: cdrkit-1.1.10-owl-fixes.diff
Patch1: cdrkit-1.1.9-owl-tmp.diff
Patch2: cdrkit-1.1.9-owl-doc.diff
Patch3: cdrkit-1.1.9-owl-rcfile.diff
Patch4: cdrkit-1.1.9-owl-privacy.diff
Patch5: cdrkit-1.1.9-rh-bound.diff
Patch6: cdrkit-1.1.9-owl-messages.diff
Patch7: cdrkit-1.1.9-alt-format.diff
Patch8: cdrkit-1.1.11-owl-__le32.diff
Provides: cdrecord = 9:2.01-12, dvdrecord = 0:0.1.5.1
Obsoletes: cdrecord, dvdrecord
Provides: mkisofs = 9:2.01-12
Obsoletes: mkisofs
Provides: cdda2wav = 9:2.01-12
Obsoletes: cdda2wav
BuildRequires: zlib-devel, bzip2-devel, libmagic-devel, libcap-devel
BuildRequires: glibc >= 0:2.3, sed >= 0:4.1
ExclusiveArch: %ix86 x86_64
BuildRoot: /override/%name-%version
%description
cdrkit is a suite of programs for recording CDs and DVDs, blanking CD-RW
media, creating ISO-9660 filesystem images, extracting audio CD data,
and more. The programs included in the cdrkit package were originally
derived from several sources, most notably mkisofs by Eric Youngdale and
others, cdda2wav by Heiko Eissfeldt, and cdrecord by Jrg Schilling.
However, cdrkit is not affiliated with any of these authors; it is now
an independent project.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
sed -i '/^require v5\.8\.1;$/d' 3rd-party/dirsplit/dirsplit
sed -i '1s,/usr/local,/usr,' doc/icedax/tracknames.pl
chmod -x doc/icedax/tracknames.pl
# Make sure we don't use or package any files with references to /tmp, except
# for those that have been patched by this point. If a new reference to /tmp
# is introduced into a build-critical file in a new version, we'd rather have
# the build fail such that we're notified and can make a determination.
find . -type f -print0 |
xargs -r0 grep -FlZ -- /tmp |
xargs -r0 rm -vf --
cp -v %_sourcedir/cdrkit-{build,install} .
%if !%BUILD_NETSCSID
sed -i '/netscsid/d' cdrkit-{build,install}
find . -type f -name '*netscsid*' -print -delete
%endif
mkdir build
cp -v %_sourcedir/{align,xconfig}.h build/
install -pm 644 %_sourcedir/README.ATAPI.setup doc/READMEs/
%build
CC=%__cc AR=%__ar CFLAGS='%optflags -fno-strict-aliasing -Wall -Wno-unused' \
sh cdrkit-build
%install
rm -rf %buildroot
DESTDIR=%buildroot BINDIR=%_bindir SBINDIR=%_sbindir MANDIR=%_mandir \
sh cdrkit-install
cd %buildroot%_bindir
ln -s genisoimage mkisofs
ln -s genisoimage mkhybrid
ln -s icedax cdda2wav
ln -s wodim cdrecord
ln -s wodim dvdrecord
cd %buildroot%_mandir
ln -s genisoimage.1 man1/mkisofs.1
ln -s genisoimage.1 man1/mkhybrid.1
ln -s icedax.1 man1/cdda2wav.1
ln -s wodim.1 man1/cdrecord.1
ln -s wodim.1 man1/dvdrecord.1
%files
%defattr(-,root,root)
%doc ABOUT COPYING FAQ FORK
%doc doc/READMEs doc/genisoimage doc/icedax doc/wodim
%_bindir/*
%if %BUILD_NETSCSID
%_sbindir/netscsid
%endif
%_mandir/man?/*
%changelog
* Sun Jul 22 2012 Vasiliy Kulikov <segoon-at-owl.openwall.com> 1.1.11-owl2
- Fixed build failure with headers of Linux 2.6.32.
* Mon Nov 01 2010 Vasiliy Kulikov <segoon-at-owl.openwall.com> 1.1.11-owl1
- Updated to 1.1.11.
- Imported rh-buffer_overflow and alt-format patches.
* Mon Aug 23 2010 Vasiliy Kulikov <segoon-at-owl.openwall.com> 1.1.10-owl1
- Updated to 1.1.10.
- Updated README-cmakeless.
- Updated -owl-fixes.
* Mon May 18 2009 Solar Designer <solar-at-owl.openwall.com> 1.1.9-owl3
- Patched some confusing/erroneous messages from wodim(1).
- Replaced README.ATAPI.setup with a version more useful on Owl (loosely
based on the original file found in the included cdrkit documentation).
* Sat May 09 2009 Solar Designer <solar-at-owl.openwall.com> 1.1.9-owl2
- Ported the patches found in our mkisofs package (to be removed) to
genisoimage.
- Added security warnings to the documentation (man pages, README.suidroot).
* Fri May 08 2009 Solar Designer <solar-at-owl.openwall.com> 1.1.9-owl1
- Disabled building/packaging of netscsid by default (this program, if
used, may pose a significant security risk, yet most Owl users won't
need it, so we'd rather exclude it and thus not be responsible for it).
- Patched some issues in C source files as pointed out by gcc warnings
and FIXME comments.
- Patched out some unimportant references to /tmp, made this spec file
remove any remaining files with references to /tmp.
- Added symlinks and Obsoletes/Provides tags to replace our mkisofs
package and for compatibility with the Fedora package.
- Package some documentation files (a further review may be needed).
* Wed May 06 2009 Solar Designer <solar-at-owl.openwall.com> 1.1.9-owl0
- Initial cmake-less packaging of cdrkit for Openwall GNU/*/Linux
(not released).