libcdio/libcdio.spec

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

mercurial