1 | Name: libmpeg2 |
---|
2 | Version: 0.5.1 |
---|
3 | Release: 4%{?_dist_release} |
---|
4 | Summary: MPEG-2 decoder libraries |
---|
5 | |
---|
6 | Group: System Environment/Libraries |
---|
7 | License: GPLv2+ |
---|
8 | URL: http://libmpeg2.sourceforge.net/ |
---|
9 | Source0: http://libmpeg2.sourceforge.net/files/libmpeg2-%{version}.tar.gz |
---|
10 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
11 | |
---|
12 | BuildRequires: SDL-devel |
---|
13 | %if %{?_dist_release} == "vl5" || %{?_dist_release} == "vl6" |
---|
14 | BuildRequires: libXt-devel |
---|
15 | BuildRequires: libXv-devel |
---|
16 | %endif |
---|
17 | %if %{?_dist_release} == "vl4" |
---|
18 | BuildRequires: XOrg-devel |
---|
19 | %endif |
---|
20 | |
---|
21 | %description |
---|
22 | libmpeg2 is a free library for decoding mpeg-2 and mpeg-1 video |
---|
23 | streams. It is released under the terms of the GPL license. |
---|
24 | |
---|
25 | %package -n mpeg2dec |
---|
26 | Summary: MPEG-2 decoder program |
---|
27 | Group: Applications/Multimedia |
---|
28 | Requires: %{name} = %{version}-%{release} |
---|
29 | |
---|
30 | %description -n mpeg2dec |
---|
31 | The %{name}-devel package contains libraries and header files for |
---|
32 | developing applications that use %{name}. |
---|
33 | |
---|
34 | %package devel |
---|
35 | Summary: Development files for %{name} |
---|
36 | Group: Development/Libraries |
---|
37 | Requires: %{name} = %{version}-%{release} |
---|
38 | Requires: pkgconfig |
---|
39 | Provides: mpeg2dec-devel = %{version}-%{release} |
---|
40 | |
---|
41 | %description devel |
---|
42 | The %{name}-devel package contains libraries and header files for |
---|
43 | developing applications that use %{name}. |
---|
44 | |
---|
45 | |
---|
46 | %prep |
---|
47 | %setup -q |
---|
48 | iconv -f ISO-8859-1 -t UTF-8 AUTHORS > AUTHORS.tmp |
---|
49 | touch -r AUTHORS AUTHORS.tmp |
---|
50 | %__cp -p -f AUTHORS.tmp AUTHORS |
---|
51 | %__rm AUTHORS.tmp |
---|
52 | |
---|
53 | |
---|
54 | %build |
---|
55 | %configure --disable-static |
---|
56 | |
---|
57 | # mpeg2dec have rpath |
---|
58 | # remove rpath from libtool |
---|
59 | sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool |
---|
60 | sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool |
---|
61 | |
---|
62 | %__make %{?_smp_mflags} |
---|
63 | |
---|
64 | |
---|
65 | %install |
---|
66 | %__rm -rf $RPM_BUILD_ROOT |
---|
67 | %__make install DESTDIR=$RPM_BUILD_ROOT INSTALL="%__install -p" |
---|
68 | |
---|
69 | # remove unpackaged files |
---|
70 | find $RPM_BUILD_ROOT -name '*.la' -exec %__rm -f {} ';' |
---|
71 | |
---|
72 | |
---|
73 | %clean |
---|
74 | %__rm -rf $RPM_BUILD_ROOT |
---|
75 | |
---|
76 | |
---|
77 | %post -p /sbin/ldconfig |
---|
78 | |
---|
79 | %postun -p /sbin/ldconfig |
---|
80 | |
---|
81 | |
---|
82 | %files |
---|
83 | %defattr(-,root,root,-) |
---|
84 | %doc AUTHORS ChangeLog COPYING NEWS README TODO |
---|
85 | %{_libdir}/*.so.* |
---|
86 | |
---|
87 | %files -n mpeg2dec |
---|
88 | %defattr(-,root,root,-) |
---|
89 | %{_bindir}/corrupt_mpeg2 |
---|
90 | %{_bindir}/extract_mpeg2 |
---|
91 | %{_bindir}/mpeg2dec |
---|
92 | %{_mandir}/man1/*.1* |
---|
93 | |
---|
94 | %files devel |
---|
95 | %defattr(-,root,root,-) |
---|
96 | %doc CodingStyle doc/libmpeg2.txt doc/sample*.c |
---|
97 | %{_includedir}/mpeg2dec/ |
---|
98 | %{_libdir}/*.so |
---|
99 | %{_libdir}/pkgconfig/libmpeg2.pc |
---|
100 | %{_libdir}/pkgconfig/libmpeg2convert.pc |
---|
101 | |
---|
102 | |
---|
103 | %changelog |
---|
104 | * Sun Mar 21 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.5.1-4 |
---|
105 | - change release to sync with self-build-libmpeg2 |
---|
106 | |
---|
107 | * Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5.1-3 |
---|
108 | - change release to sync with self-build-libmpeg2 |
---|
109 | |
---|
110 | * Fri Jan 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5.1-2 |
---|
111 | - added BuildRequires: XOrg-devel for vl4 |
---|
112 | |
---|
113 | * Wed Jan 21 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5.1-1 |
---|
114 | - initial build |
---|
115 | |
---|
116 | * Fri Oct 4 2008 kwizart < kwizart at gmail.com > - 0.5.1-3 |
---|
117 | - Fix CFLAGS on x86 producing selinux denials. |
---|
118 | |
---|
119 | * Wed Jul 30 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 0.5.1-2 |
---|
120 | - rebuild for buildsys cflags issue |
---|
121 | |
---|
122 | * Fri Jul 18 2008 kwizart < kwizart at gmail.com > - 0.5.1-1 |
---|
123 | - Update to 0.5.1 |
---|
124 | |
---|
125 | * Tue Jul 15 2008 kwizart < kwizart at gmail.com > - 0.5.0-1 |
---|
126 | - Initial package (based on mpeg2dec) |
---|
127 | |
---|