source: projects/specs/trunk/nonfree/self-build-libmpeg2/libmpeg2-vl.spec @ 4696

Revision 4696, 3.3 KB checked in by munepi, 13 years ago (diff)

updated x264-vl.spec, libmpeg2-vl.spec

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