Fri, 11 Mar 2011 21:30:26 +0100
Import package vendor original specs for necessary manipulations.
michael@0 | 1 | Name: libcdio |
michael@0 | 2 | Version: 0.82 |
michael@0 | 3 | Release: 3%{?dist} |
michael@0 | 4 | Summary: CD-ROM input and control library |
michael@0 | 5 | Group: System Environment/Libraries |
michael@0 | 6 | License: GPLv3+ |
michael@0 | 7 | URL: http://www.gnu.org/software/libcdio/ |
michael@0 | 8 | Source0: http://ftp.gnu.org/gnu/libcdio/libcdio-0.82.tar.gz |
michael@0 | 9 | Source1: http://ftp.gnu.org/gnu/libcdio/libcdio-0.82.tar.gz.sig |
michael@0 | 10 | Source2: libcdio-no_date_footer.hml |
michael@0 | 11 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
michael@0 | 12 | BuildRequires: pkgconfig doxygen |
michael@0 | 13 | BuildRequires: ncurses-devel |
michael@0 | 14 | BuildRequires: help2man |
michael@0 | 15 | Requires(post): /sbin/ldconfig |
michael@0 | 16 | Requires(post): /sbin/install-info |
michael@0 | 17 | Requires(preun): /sbin/install-info |
michael@0 | 18 | BuildRequires: gettext-devel |
michael@0 | 19 | BuildRequires: chrpath |
michael@0 | 20 | |
michael@0 | 21 | |
michael@0 | 22 | %description |
michael@0 | 23 | This library provides an interface for CD-ROM access. It can be used |
michael@0 | 24 | by applications that need OS- and device-independent access to CD-ROM |
michael@0 | 25 | devices. |
michael@0 | 26 | |
michael@0 | 27 | %package devel |
michael@0 | 28 | Summary: Header files and libraries for %{name} |
michael@0 | 29 | Group: Development/Libraries |
michael@0 | 30 | Requires: %{name} = %{version}-%{release} |
michael@0 | 31 | |
michael@0 | 32 | %description devel |
michael@0 | 33 | This package contains header files and libraries for %{name}. |
michael@0 | 34 | |
michael@0 | 35 | |
michael@0 | 36 | %prep |
michael@0 | 37 | %setup -q |
michael@0 | 38 | |
michael@0 | 39 | f=src/cd-paranoia/doc/ja/cd-paranoia.1.in |
michael@0 | 40 | iconv -f euc-jp -t utf-8 -o $f.utf8 $f && mv $f.utf8 $f |
michael@0 | 41 | iconv -f ISO88591 -t utf-8 -o THANKS.utf8 THANKS && mv THANKS.utf8 THANKS |
michael@0 | 42 | |
michael@0 | 43 | %build |
michael@0 | 44 | %configure \ |
michael@0 | 45 | --disable-vcd-info \ |
michael@0 | 46 | --disable-dependency-tracking \ |
michael@0 | 47 | --disable-cddb \ |
michael@0 | 48 | --disable-static \ |
michael@0 | 49 | --disable-rpath |
michael@0 | 50 | make %{?_smp_mflags} |
michael@0 | 51 | |
michael@0 | 52 | # another multilib fix; remove the architecture information from version.h |
michael@0 | 53 | sed -i -e "s,%{version}.*$,%{version}\\\",g" include/cdio/version.h |
michael@0 | 54 | |
michael@0 | 55 | cd doc/doxygen |
michael@0 | 56 | sed -i -e "s,HTML_FOOTER.*$,HTML_FOOTER = libcdio-no_date_footer.hml,g" Doxyfile |
michael@0 | 57 | cp %{SOURCE2} . |
michael@0 | 58 | ./run_doxygen |
michael@0 | 59 | |
michael@0 | 60 | %install |
michael@0 | 61 | rm -rf $RPM_BUILD_ROOT |
michael@0 | 62 | make install DESTDIR=$RPM_BUILD_ROOT |
michael@0 | 63 | |
michael@0 | 64 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir |
michael@0 | 65 | find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' |
michael@0 | 66 | |
michael@0 | 67 | mv $RPM_BUILD_ROOT%{_mandir}/{jp,ja} |
michael@0 | 68 | |
michael@0 | 69 | rm -rf examples |
michael@0 | 70 | mkdir -p examples/C++ |
michael@0 | 71 | cp -a example/{*.c,README} examples |
michael@0 | 72 | cp -a example/C++/{*.cpp,README} examples/C++ |
michael@0 | 73 | |
michael@0 | 74 | # fix timestamps of generated man-pages |
michael@0 | 75 | for i in cd-info iso-read iso-info cd-read cd-drive; do |
michael@0 | 76 | # remove build architecture information from man pages |
michael@0 | 77 | sed -i -e 's, version.*linux-gnu,,g' $RPM_BUILD_ROOT%{_mandir}/man1/$i.1 |
michael@0 | 78 | # remove libtool leftover from man pages |
michael@0 | 79 | sed -i -e 's,lt-,,g;s,LT-,,g' $RPM_BUILD_ROOT%{_mandir}/man1/$i.1 |
michael@0 | 80 | # fix timestamps to be the same in all packages |
michael@0 | 81 | touch -r src/$i.help2man $RPM_BUILD_ROOT%{_mandir}/man1/$i.1 |
michael@0 | 82 | done |
michael@0 | 83 | |
michael@0 | 84 | # remove rpath |
michael@0 | 85 | chrpath --delete $RPM_BUILD_ROOT%{_bindir}/* |
michael@0 | 86 | chrpath --delete $RPM_BUILD_ROOT%{_libdir}/*.so.* |
michael@0 | 87 | |
michael@0 | 88 | %check |
michael@0 | 89 | # disable test using local CDROM |
michael@0 | 90 | %{__sed} -i -e "s,testiso9660\$(EXEEXT),,g" \ |
michael@0 | 91 | -e "s,testisocd\$(EXEEXT),,g" \ |
michael@0 | 92 | -e "s,check_paranoia.sh check_opts.sh, check_opts.sh,g" \ |
michael@0 | 93 | test/Makefile |
michael@0 | 94 | make check |
michael@0 | 95 | |
michael@0 | 96 | |
michael@0 | 97 | %clean |
michael@0 | 98 | rm -rf $RPM_BUILD_ROOT |
michael@0 | 99 | |
michael@0 | 100 | |
michael@0 | 101 | %post |
michael@0 | 102 | /sbin/ldconfig |
michael@0 | 103 | /sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir 2>/dev/null || : |
michael@0 | 104 | |
michael@0 | 105 | %preun |
michael@0 | 106 | if [ $1 = 0 ]; then |
michael@0 | 107 | /sbin/install-info --delete %{_infodir}/%{name}.info \ |
michael@0 | 108 | %{_infodir}/dir 2>/dev/null || : |
michael@0 | 109 | fi |
michael@0 | 110 | |
michael@0 | 111 | %postun -p /sbin/ldconfig |
michael@0 | 112 | |
michael@0 | 113 | |
michael@0 | 114 | %files |
michael@0 | 115 | %defattr(-,root,root,-) |
michael@0 | 116 | %doc AUTHORS COPYING NEWS README README.libcdio THANKS TODO |
michael@0 | 117 | %{_bindir}/* |
michael@0 | 118 | %{_libdir}/*.so.* |
michael@0 | 119 | %{_infodir}/* |
michael@0 | 120 | %{_mandir}/man1/* |
michael@0 | 121 | %lang(ja) %{_mandir}/ja/man1/* |
michael@0 | 122 | |
michael@0 | 123 | |
michael@0 | 124 | %files devel |
michael@0 | 125 | %defattr(-,root,root,-) |
michael@0 | 126 | %doc doc/doxygen/html examples |
michael@0 | 127 | %{_includedir}/cdio |
michael@0 | 128 | %{_includedir}/cdio++ |
michael@0 | 129 | %{_libdir}/*.so |
michael@0 | 130 | %{_libdir}/pkgconfig/*.pc |
michael@0 | 131 | |
michael@0 | 132 | |
michael@0 | 133 | %changelog |
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 |