source: projects/specs/trunk/lib/libm/libmpeg2/libmpeg2-vl.spec @ 12243

Revision 12243, 3.6 KB checked in by tomop, 5 years ago (diff)

updated 3 packages

a52dec-0.7.4-7

lame-3.100-3

libmpeg2-0.5.1-6

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