source: projects/specs/trunk/nonfree/self-build-xvidcore/xvidcore-vl.spec @ 2392

Revision 2392, 3.2 KB checked in by munepi, 13 years ago (diff)

updated {self-build-,}xvidcore-vl.spec

Line 
1Summary: MPEG-4 Simple and Advanced Simple Profile codec
2Name:           xvidcore
3Version:        1.2.2
4Release:        1%{?_dist_release}
5Source:         http://downloads.xvid.org/downloads/%{name}-%{version}.tar.bz2
6Patch0:         xvidcore-noexec-stack.patch
7Group:          System Environment/Libraries
8License:        GPLv2+
9URL:            http://www.xvid.org/
10
11BuildRequires:  nasm >= 2.0
12
13BuildRoot: %{_tmppath}/%{name}-%{version}-root
14
15%description
16The Xvid video codec implements MPEG-4 Simple Profile and Advanced Simple
17Profile standards. It permits compressing and decompressing digital video
18in order to reduce the required bandwidth of video data for transmission
19over computer networks or efficient storage on CDs or DVDs. Due to its
20unrivalled quality Xvid has gained great popularity and is used in many
21other GPLed applications, like e.g. Transcode, MEncoder, MPlayer, Xine and
22many more.
23
24%package        devel
25Summary:        Development files for the Xvid video codec
26Group:          Development/Libraries
27Requires:       %{name} = %{version}-%{release}
28
29%description    devel
30This package contains header files, static library and API
31documentation for the Xvid video codec.
32
33
34%prep
35%setup -q -n %{name}
36%patch0 -p1 -z .noexec-stack
37chmod -x examples/*.pl
38f=AUTHORS ; iconv -f iso-8859-1 -t utf-8 -o $f.utf8 $f && touch -r $f $f.utf8 && mv $f.utf8 $f
39# Yes, we want to see the build output.
40%{__perl} -pi -e 's/^\t@(?!echo\b)/\t/' build/generic/Makefile
41
42
43%build
44cd build/generic
45export CFLAGS="$RPM_OPT_FLAGS -ffast-math"
46%configure
47%__make %{?_smp_mflags}
48cd -
49
50
51%install
52%__rm -rf $RPM_BUILD_ROOT
53%__make -C build/generic install DESTDIR=$RPM_BUILD_ROOT
54%__rm $RPM_BUILD_ROOT%{_libdir}/libxvidcore.a
55cd $RPM_BUILD_ROOT%{_libdir}
56chmod 755 libxvidcore.so*
57/sbin/ldconfig -n .
58ln -s libxvidcore.so.? libxvidcore.so
59cd -
60
61
62%clean
63%__rm -rf $RPM_BUILD_ROOT
64
65
66%post -p /sbin/ldconfig
67
68%postun -p /sbin/ldconfig
69
70
71%files
72%defattr(-,root,root,-)
73%doc LICENSE README AUTHORS ChangeLog
74%{_libdir}/libxvidcore.so.*
75
76%files devel
77%defattr(-,root,root,-)
78%doc CodingStyle TODO examples/
79%{_includedir}/xvid.h
80%{_libdir}/libxvidcore.so
81
82%changelog
83* Sat Dec 25 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.2.2-1
84- new upstream release
85- applied a rebase noexec-stack patch from RPM Fusion development
86
87* Sun Mar 21 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.2.1-4
88- change release to sync with self-build-xvidcore
89
90* Fri Jun 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.1-3
91- change release to sync with self-build-xvidcore
92
93* Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.1-2
94- change release to sync with self-build-xvidcore
95
96* Sun Jan 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.1-1
97- new upstream release
98- dropped xvidcore-1.1.3_bitstream.patch
99
100* Sun Nov 02 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.1.3-3
101- spec in utf8
102
103* Sun May 18 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.1.3-2
104- release +1 to sync with self-build-xvidcore
105
106* Fri Apr 11 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.1.3-1vl4
107- build with new versioning policy
108- apply xvidcore-1.1.3_bitstream.patch
109
110* Tue Feb 19 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.1.3-0vl1
111- initial build for Vine Linux 4.2
112
113### end of file
Note: See TracBrowser for help on using the repository browser.