libcdio/libcdio.spec

Fri, 11 Mar 2011 21:39:41 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 11 Mar 2011 21:39:41 +0100
changeset 2
e3665a058d13
parent 0
4f133201e207
permissions
-rw-r--r--

Import new package specs for introduction into repository.

michael@1 1 Name: libcdio
michael@1 2 Version: 0.82
michael@1 3 Release: 20101201
michael@1 4 Summary: CD-ROM input and control library
michael@1 5 Vendor: Europalab Software
michael@1 6 Packager: Michael Schloh von Bennewitz
michael@1 7 Distribution: MeeGo Thirdparty
michael@1 8 Group: System Environment/Libraries
michael@1 9 License: GPLv3+
michael@1 10 URL: http://www.gnu.org/software/libcdio/
michael@1 11 Source0: http://ftp.gnu.org/gnu/libcdio/libcdio-0.82.tar.gz
michael@1 12 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
michael@1 13 BuildRequires: pkgconfig doxygen
michael@1 14 BuildRequires: ncurses-devel
michael@1 15 BuildRequires: help2man
michael@1 16 Requires(post): /sbin/ldconfig
michael@1 17 Requires(post): info
michael@1 18 Requires(preun): info
michael@1 19 BuildRequires: gettext-devel, chrpath
michael@0 20
michael@0 21 %description
michael@1 22 The libcdio library provides an interface for CD-ROM access. It can be
michael@1 23 used by applications that need OS and device independent access to CD-ROM
michael@0 24 devices.
michael@0 25
michael@0 26 %package devel
michael@1 27 Summary: Header files and libraries for %{name}
michael@1 28 Vendor: Europalab Software
michael@1 29 Packager: Michael Schloh von Bennewitz
michael@1 30 Distribution: MeeGo Thirdparty
michael@1 31 Group: Development/Libraries
michael@0 32 Requires: %{name} = %{version}-%{release}
michael@0 33
michael@0 34 %description devel
michael@1 35 The libcdio library provides an interface for CD-ROM access. It can be
michael@1 36 used by applications that need OS and device independent access to CD-ROM
michael@1 37 devices. This package contains header files and libraries for %{name}.
michael@0 38
michael@0 39 %prep
michael@0 40 %setup -q
michael@0 41
michael@0 42 %build
michael@0 43 %configure \
michael@1 44 --disable-vcd-info \
michael@1 45 --disable-dependency-tracking \
michael@1 46 --disable-cddb \
michael@1 47 --disable-static \
michael@1 48 --disable-rpath
michael@1 49 %{__make} %{?_smp_mflags}
michael@0 50
michael@1 51 # remove architecture information from version.h
michael@0 52 sed -i -e "s,%{version}.*$,%{version}\\\",g" include/cdio/version.h
michael@0 53
michael@0 54 cd doc/doxygen
michael@0 55 ./run_doxygen
michael@0 56
michael@0 57 %install
michael@0 58 rm -rf $RPM_BUILD_ROOT
michael@1 59 %{__make} install DESTDIR=$RPM_BUILD_ROOT
michael@0 60
michael@1 61 mv $RPM_BUILD_ROOT%{_mandir}/{jp,ja}
michael@0 62 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
michael@0 63 find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
michael@0 64
michael@1 65 # install documentation
michael@1 66 mkdir -p $RPM_BUILD_ROOT%{_datadir}/doc/%{name}/html
michael@1 67 %{__install} -m 644 doc/doxygen/html/* $RPM_BUILD_ROOT%{_datadir}/doc/%{name}/html/
michael@0 68
michael@1 69 # install examples
michael@1 70 rm -rf examples && mkdir -p $RPM_BUILD_ROOT%{_datadir}/doc/%{name}/examples/C++/OO
michael@1 71 %{__install} -m 644 example/{*.c,README} $RPM_BUILD_ROOT%{_datadir}/doc/%{name}/examples/
michael@1 72 %{__install} -m 644 example/C++/{*.cpp,README} $RPM_BUILD_ROOT%{_datadir}/doc/%{name}/examples/C++/
michael@1 73 %{__install} -m 644 example/C++/OO/*.cpp $RPM_BUILD_ROOT%{_datadir}/doc/%{name}/examples/C++/OO/
michael@0 74
michael@0 75 # fix timestamps of generated man-pages
michael@0 76 for i in cd-info iso-read iso-info cd-read cd-drive; do
michael@1 77 # remove build architecture information from man pages
michael@1 78 sed -i -e 's, version.*linux-gnu,,g' $RPM_BUILD_ROOT%{_mandir}/man1/$i.1
michael@1 79 # remove libtool leftover from man pages
michael@1 80 sed -i -e 's,lt-,,g;s,LT-,,g' $RPM_BUILD_ROOT%{_mandir}/man1/$i.1
michael@1 81 # fix timestamps to be the same in all packages
michael@1 82 touch -r src/$i.help2man $RPM_BUILD_ROOT%{_mandir}/man1/$i.1
michael@0 83 done
michael@0 84
michael@0 85 # remove rpath
michael@0 86 chrpath --delete $RPM_BUILD_ROOT%{_bindir}/*
michael@0 87 chrpath --delete $RPM_BUILD_ROOT%{_libdir}/*.so.*
michael@0 88
michael@0 89 %check
michael@0 90 # disable test using local CDROM
michael@0 91 %{__sed} -i -e "s,testiso9660\$(EXEEXT),,g" \
michael@1 92 -e "s,testisocd\$(EXEEXT),,g" \
michael@1 93 -e "s,check_paranoia.sh check_opts.sh, check_opts.sh,g" \
michael@1 94 test/Makefile
michael@1 95 %{__make} check
michael@0 96
michael@0 97 %clean
michael@0 98 rm -rf $RPM_BUILD_ROOT
michael@0 99
michael@0 100 %post
michael@0 101 /sbin/ldconfig
michael@0 102 /sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir 2>/dev/null || :
michael@0 103
michael@0 104 %preun
michael@0 105 if [ $1 = 0 ]; then
michael@1 106 /sbin/install-info --delete %{_infodir}/%{name}.info \
michael@1 107 %{_infodir}/dir 2>/dev/null || :
michael@0 108 fi
michael@0 109
michael@0 110 %postun -p /sbin/ldconfig
michael@0 111
michael@0 112 %files
michael@0 113 %defattr(-,root,root,-)
michael@0 114 %doc AUTHORS COPYING NEWS README README.libcdio THANKS TODO
michael@0 115 %{_bindir}/*
michael@0 116 %{_libdir}/*.so.*
michael@0 117 %{_infodir}/*
michael@0 118 %{_mandir}/man1/*
michael@0 119 %lang(ja) %{_mandir}/ja/man1/*
michael@0 120
michael@0 121 %files devel
michael@0 122 %defattr(-,root,root,-)
michael@0 123 %{_includedir}/cdio
michael@0 124 %{_includedir}/cdio++
michael@0 125 %{_libdir}/*.so
michael@0 126 %{_libdir}/pkgconfig/*.pc
michael@1 127 %{_datadir}/doc/%{name}/html
michael@1 128 %{_datadir}/doc/%{name}/examples
michael@0 129
michael@0 130 %changelog
michael@1 131 * Wed Dec 1 2010 Michael Schloh von Bennewitz <michael@schloh.com> - 0.82-20101201
michael@1 132 - Adjust packaging and patch logic
michael@1 133
michael@0 134 * Mon Nov 1 2010 Kozinov Ivan <kozinov@gmail.com> - 0.82-3
michael@0 135 - Build for MeeGo 1.1
michael@0 136
michael@0 137 * Thu Jan 28 2010 Adrian Reber <adrian@lisas.de> - 0.82-2
michael@0 138 - disabled building of static libraries (#556064)
michael@0 139 - removed "Requires: pkgconfig" (rpm adds it automatically)
michael@0 140
michael@0 141 * Wed Jan 20 2010 Roman Rakus rrakus@redhat.com 0.82-1
michael@0 142 - Update to 0.82
michael@0 143 - removed rpath
michael@0 144 - converted THANKS to utf8
michael@0 145
michael@0 146 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.81-3
michael@0 147 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
michael@0 148
michael@0 149 * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.81-2
michael@0 150 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
michael@0 151
michael@0 152 * Tue Oct 07 2008 Adrian Reber <adrian@lisas.de> - 0.81-1
michael@0 153 - updated to 0.81
michael@0 154 - license changed to GPLv3+
michael@0 155 - fixed #477288 (libcdio-devel multilib conflict)
michael@0 156 - applied patch to fix endless loop in mock
michael@0 157
michael@0 158 * Tue Oct 07 2008 Adrian Reber <adrian@lisas.de> - 0.80-5
michael@0 159 - fixed #462125 (Multilib conflict) - really, really, really
michael@0 160 (also remove architecture information from man pages)
michael@0 161
michael@0 162 * Thu Oct 02 2008 Adrian Reber <adrian@lisas.de> - 0.80-4
michael@0 163 - fixed #462125 (Multilib conflict) - this time for real
michael@0 164
michael@0 165 * Fri Sep 12 2008 Adrian Reber <adrian@lisas.de> - 0.80-3
michael@0 166 - fixed #462125 (Multilib conflict)
michael@0 167
michael@0 168 * Wed Jun 4 2008 Tomas Bzatek <tbzatek@redhat.com> - 0.80-2
michael@0 169 - added patch enabling libcdio_paranoia.pc
michael@0 170
michael@0 171 * Thu May 29 2008 Adrian Reber <adrian@lisas.de> - 0.80-1
michael@0 172 - updated to 0.80
michael@0 173 - removed upstreamed patches
michael@0 174 - last GPLv2+ release
michael@0 175
michael@0 176 * Thu Feb 14 2008 Adrian Reber <adrian@lisas.de> - 0.79-3
michael@0 177 - added patch to compile with gcc43
michael@0 178
michael@0 179 * Fri Jan 04 2008 Adrian Reber <adrian@lisas.de> - 0.79-2
michael@0 180 - fixed security fix (was off by two)
michael@0 181
michael@0 182 * Wed Jan 02 2008 Adrian Reber <adrian@lisas.de> - 0.79-1
michael@0 183 - updated to 0.79
michael@0 184 - fixes #427197 (Long Joliet file name overflows cdio's buffer)
michael@0 185 - fixes #341981 (multiarch conflicts in libcdio)
michael@0 186
michael@0 187 * Fri Aug 24 2007 Adrian Reber <adrian@lisas.de> - 0.78.2-3
michael@0 188 - rebuilt
michael@0 189
michael@0 190 * Mon Jul 23 2007 Adrian Reber <adrian@lisas.de> - 0.78.2-2
michael@0 191 - updated to 0.78.2 (#221359) (this time for real)
michael@0 192
michael@0 193 * Thu Jan 04 2007 Adrian Reber <adrian@lisas.de> - 0.78.2-1
michael@0 194 - updated to 0.78.2 (#221359)
michael@0 195
michael@0 196 * Thu Oct 05 2006 Adrian Reber <adrian@lisas.de> - 0.77-3
michael@0 197 - disabled iso9660 test case (fails for some reason with date problems)
michael@0 198 this seems to be a known problem according to the ChangeLog
michael@0 199
michael@0 200 * Thu Oct 05 2006 Christian Iseli <Christian.Iseli@licr.org> 0.77-2
michael@0 201 - rebuilt for unwind info generation, broken in gcc-4.1.1-21
michael@0 202
michael@0 203 * Fri Sep 22 2006 Adrian Reber <adrian@lisas.de> - 0.77-1
michael@0 204 - Updated to 0.77
michael@0 205
michael@0 206 * Mon Sep 18 2006 Adrian Reber <adrian@lisas.de> - 0.76-3
michael@0 207 - Rebuilt
michael@0 208
michael@0 209 * Mon Sep 26 2005 Adrian Reber <adrian@lisas.de> - 0.76-2
michael@0 210 - Rebuilt
michael@0 211
michael@0 212 * Mon Sep 26 2005 Adrian Reber <adrian@lisas.de> - 0.76-1
michael@0 213 - Updated to 0.76.
michael@0 214 - Included doxygen generated documentation into -devel
michael@0 215 - Included examples into -devel
michael@0 216
michael@0 217 * Mon Aug 01 2005 Adrian Reber <adrian@lisas.de> - 0.75-4
michael@0 218 - disable test accessing local CDROM drive (#164266)
michael@0 219
michael@0 220 * Wed Jul 27 2005 Adrian Reber <adrian@lisas.de> - 0.75-3
michael@0 221 - Rebuilt without libcddb dependency (#164270)
michael@0 222
michael@0 223 * Tue Jul 26 2005 Adrian Reber <adrian@lisas.de> - 0.75-2
michael@0 224 - Rebuilt
michael@0 225
michael@0 226 * Thu Jul 14 2005 Adrian Reber <adrian@lisas.de> - 0.75-1
michael@0 227 - Updated to 0.75.
michael@0 228
michael@0 229 * Fri Jun 03 2005 Adrian Reber <adrian@lisas.de> - 0.74-2
michael@0 230 - Updated to 0.74.
michael@0 231
michael@0 232 * Sun Apr 24 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.73-2
michael@0 233 - BuildRequire ncurses-devel (for cdda-player and cd-paranoia).
michael@0 234 - Run test suite during build.
michael@0 235 - Install Japanese man pages.
michael@0 236
michael@0 237 * Sun Apr 24 2005 Adrian Reber <adrian@lisas.de> - 0.73-1
michael@0 238 - Updated to 0.73.
michael@0 239
michael@0 240 * Fri Mar 18 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.70-2
michael@0 241 - Fix FC4 build (#151468).
michael@0 242 - Build with dependency tracking disabled.
michael@0 243
michael@0 244 * Sun Sep 5 2004 Marius L. Jøhndal <mariuslj at ifi.uio.no> - 0:0.70-0.fdr.1
michael@0 245 - Updated to 0.70.
michael@0 246
michael@0 247 * Sat Jul 17 2004 Marius L. Jøhndal <mariuslj at ifi.uio.no> - 0:0.69-0.fdr.1
michael@0 248 - Updated to 0.69.
michael@0 249 - Removed broken iso-read.
michael@0 250 - Split Requires(pre,post).
michael@0 251 - Added BuildReq pkgconfig.
michael@0 252
michael@0 253 * Mon Mar 29 2004 Marius L. Jøhndal <mariuslj at ifi.uio.no> - 0:0.68-0.fdr.1
michael@0 254 - Initial RPM release.
michael@0 255

mercurial