]> git.pld-linux.org Git - packages/libmediainfo.git/blob - libmediainfo.spec
- BR: autoconf, automake, libtool
[packages/libmediainfo.git] / libmediainfo.spec
1 Summary:        Supplies technical and tag information about a video or audio file
2 Name:           libmediainfo
3 Version:        0.7.25
4 Release:        1
5 License:        GPL
6 Group:          Libraries
7 URL:            http://mediainfo.sourceforge.net/
8 Source0:        http://downloads.sourceforge.net/project/mediainfo/source/libmediainfo/%{version}/%{name}_%{version}.tar.bz2
9 # Source0-md5:  899f1f481c6e96918479a4bb1b2cefbe
10 BuildRequires:  autoconf
11 BuildRequires:  automake
12 BuildRequires:  dos2unix
13 BuildRequires:  doxygen
14 BuildRequires:  libstdc++-devel
15 BuildRequires:  libtool
16 BuildRequires:  libzen-devel >= 0.4.9
17 BuildRequires:  pkgconfig
18 BuildRequires:  zlib-devel
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 MediaInfo supplies technical and tag information about a video or
23 audio file.
24
25 What information can I get from MediaInfo?
26 - General: title, author, director, album, track number, date,
27   duration...
28 - Video: codec, aspect, fps, bitrate...
29 - Audio: codec, sample rate, channels, language, bitrate...
30 - Text: language of subtitle
31 - Chapters: number of chapters, list of chapters
32
33 DivX, XviD, H263, H.263, H264, x264, ASP, AVC, iTunes, MPEG-1, MPEG1,
34 MPEG-2, MPEG2, MPEG-4, MPEG4, MP4, M4A, M4V, QuickTime, RealVideo,
35 RealAudio, RA, RM, MSMPEG4v1, MSMPEG4v2, MSMPEG4v3, VOB, DVD, WMA,
36 VMW, ASF, 3GP, 3GPP, 3GP2
37
38 What format (container) does MediaInfo support?
39 - Video: MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1, MPEG-2,
40   MPEG-4, DVD (VOB) (Codecs: DivX, XviD, MSMPEG4, ASP, H.264, AVC...)
41 - Audio: OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF
42 - Subtitles: SRT, SSA, ASS, SAMI
43
44 This package contains the shared library for MediaInfo.
45
46 %package devel
47 Summary:        Include files and mandatory libraries for development
48 Group:          Development/Libraries
49 Requires:       %{name} = %{version}-%{release}
50 Requires:       libzen-devel >= 0.4.9
51
52 %description devel
53 Include files and mandatory libraries for development.
54
55 %package static
56 Summary:        Static libmediainfo library
57 Group:          Development/Libraries
58 Requires:       %{name}-devel = %{version}-%{release}
59
60 %description static
61 Static libmediainfo library.
62
63 %prep
64 %setup -q -n MediaInfoLib
65 cp           Release/ReadMe_DLL_Linux.txt ReadMe.txt
66 mv           History_DLL.txt History.txt
67 dos2unix     *.txt *.html Source/Doc/*.html
68 chmod 644 *.txt *.html Source/Doc/*.html
69
70 %build
71 export CFLAGS="%{rpmcflags}"
72 export CPPFLAGS="%{rpmcppflags}"
73 export CXXFLAGS="%{rpmcxxflags}"
74
75 cd Source/Doc
76         doxygen Doxyfile
77 cd ../..
78
79 cp Source/Doc/*.html ./
80
81 cd Project/GNU/Library
82         chmod +x autogen
83         ./autogen
84         %configure \
85         --enable-shared \
86         --disable-libcurl \
87         --disable-libmms \
88
89
90         %{__make} clean
91         %{__make}
92 cd ../../..
93
94 %install
95 rm -rf $RPM_BUILD_ROOT
96
97 %{__make} -C Project/GNU/Library \
98         install \
99         DESTDIR=$RPM_BUILD_ROOT
100
101 # MediaInfoDLL headers and MediaInfo-config
102 for i in MediaInfo MediaInfoDLL; do
103         install -dm 755 $RPM_BUILD_ROOT%{_includedir}/$i
104         install -m 644 Source/$i/*.h $RPM_BUILD_ROOT%{_includedir}/$i
105 done
106
107 %{__sed} -i -e 's|Version: |Version: %{version}|g' Project/GNU/Library/libmediainfo.pc
108 install -dm 755 $RPM_BUILD_ROOT%{_libdir}/pkgconfig
109 install Project/GNU/Library/libmediainfo.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig
110
111 %clean
112 rm -rf $RPM_BUILD_ROOT
113
114 %post -p /sbin/ldconfig
115 %postun -p /sbin/ldconfig
116
117 %files
118 %defattr(644,root,root,755)
119 %doc History.txt License.html ReadMe.txt
120 %attr(755,root,root) %{_libdir}/libmediainfo.so.*
121
122 %files devel
123 %defattr(644,root,root,755)
124 %doc Changes.txt Documentation.html Doc/* Source/Example/HowToUse*
125 %{_includedir}/MediaInfo
126 %{_includedir}/MediaInfoDLL
127 %{_libdir}/libmediainfo.la
128 %attr(755,root,root) %{_libdir}/libmediainfo.so
129 %{_pkgconfigdir}/*.pc
130
131 %files static
132 %defattr(644,root,root,755)
133 %{_libdir}/libmediainfo.a
This page took 0.281631 seconds and 4 git commands to generate.