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

Revision 620, 3.3 KB checked in by munepi, 14 years ago (diff)

added many self-build-* specs

Line 
1Name:           libmpeg2
2Version:        0.5.1
3Release:        4%{?_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
13%if %{?_dist_release} == "vl5" || %{?_dist_release} == "vl6"
14BuildRequires:  libXt-devel
15BuildRequires:  libXv-devel
16%endif
17%if %{?_dist_release} == "vl4"
18BuildRequires:  XOrg-devel
19%endif
20
21%description
22libmpeg2 is a free library for decoding mpeg-2 and mpeg-1 video
23streams. It is released under the terms of the GPL license.
24
25%package -n     mpeg2dec
26Summary:        MPEG-2 decoder program
27Group:          Applications/Multimedia
28Requires:       %{name} = %{version}-%{release}
29
30%description -n mpeg2dec
31The %{name}-devel package contains libraries and header files for
32developing applications that use %{name}.
33
34%package        devel
35Summary:        Development files for %{name}
36Group:          Development/Libraries
37Requires:       %{name} = %{version}-%{release}
38Requires:       pkgconfig
39Provides:       mpeg2dec-devel = %{version}-%{release}
40
41%description    devel
42The %{name}-devel package contains libraries and header files for
43developing applications that use %{name}.
44
45
46%prep
47%setup -q
48iconv -f ISO-8859-1 -t UTF-8 AUTHORS > AUTHORS.tmp
49touch -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
59sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
60sed -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
70find $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
Note: See TracBrowser for help on using the repository browser.