libcdio/libcdio.spec

Fri, 11 Mar 2011 21:36:51 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 11 Mar 2011 21:36:51 +0100
changeset 1
4667f24fe848
parent 0
4f133201e207
permissions
-rw-r--r--

Adjust specification build configurations to port packages to MeeGo.

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

mercurial