source: projects/specs/trunk/lib/libt/libtheora/libtheora-vl.spec @ 5394

Revision 5394, 3.9 KB checked in by Takemikaduchi, 12 years ago (diff)

slocate: fix BTS:1176
qt4: fix compat32-qt4-devel
others: create compat32 sub packages

Line 
1%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
2
3Summary: Theora video compression codec
4Summary(ja): Theora 映像圧縮コーデック
5Name: libtheora
6Version: 1.1.1
7Release: 3%{?_dist_release}
8License: BSD
9URL: http://www.theora.org/
10Source: http://www.theora.org/files/libtheora-%{version}.tar.bz2
11Group: System Environment/Libraries
12BuildRoot: %{_tmppath}/%{name}-%{version}-root
13BuildRequires: libogg-devel >= 1.1
14BuildRequires: libvorbis-devel >= 1.0.1
15BuildRequires: SDL-devel
16# Seems like a devel package forgot to include this one (ogg? vorbis? SDL?)
17#BuildRequires: alsa-lib-devel
18
19%description
20Ogg Theora is a fully open, non-proprietary, patent-and-royalty-free,
21general-purpose compressed video format.
22
23
24%package devel
25Summary: Headers for developing programs that will use libtheora
26Summary(ja): libtheora の開発用ファイル
27Group: Development/Libraries
28Requires: %{name} = %{version}-%{release}
29Requires: libogg-devel >= 1.1
30
31%description devel
32This package contains the headers that programmers will need to develop
33applications which will use %{name}.
34
35# compat32
36%package -n compat32-%{name}
37Summary: Theora video compression codec
38Summary(ja): Theora 映像圧縮コーデック
39Group: System Environment/Libraries
40Requires: %{name} = %{version}-%{release}
41
42%description -n compat32-%{name}
43Ogg Theora is a fully open, non-proprietary, patent-and-royalty-free,
44general-purpose compressed video format.
45
46%package -n compat32-%{name}-devel
47Summary: Headers for developing programs that will use libtheora
48Summary(ja): libtheora の開発用ファイル
49Group: Development/Libraries
50Requires: compat32-%{name} = %{version}-%{release}
51Requires: %{name}-devel = %{version}-%{release}
52Requires: compat32-libogg-devel >= 1.1
53
54%description -n compat32-%{name}-devel
55This package contains the headers that programmers will need to develop
56applications which will use %{name}.
57
58
59%prep
60%setup -q -n %{name}-%{version}
61
62%build
63%configure --disable-static
64make %{?_smp_mflags}
65
66
67%install
68rm -rf %{buildroot} installed-docs
69%makeinstall
70mv %{buildroot}%{_datadir}/doc/libtheora* installed-docs
71# Fix the location of the include file
72#mkdir -p %{buildroot}%{_includedir}/theora
73#mv %{buildroot}%{_includedir}/theora.h %{buildroot}%{_includedir}/theora/
74
75# remove unpackage files
76rm -f $RPM_BUILD_ROOT%{_libdir}/libtheora*.la
77
78%clean
79[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
80
81%post -p /sbin/ldconfig
82
83%postun -p /sbin/ldconfig
84
85%post -n compat32-%{name} -p /sbin/ldconfig
86
87%postun -n compat32-%{name} -p /sbin/ldconfig
88
89%files
90%defattr(-, root, root, 0755)
91%doc README COPYING
92%{_libdir}/libtheora*.so.*
93
94%files devel
95%defattr(-, root, root, 0755)
96%doc installed-docs/*
97%{_includedir}/theora
98#{_libdir}/libtheora*.a
99%{_libdir}/libtheora*.so
100%{_libdir}/pkgconfig/*.pc
101
102# compat32
103%if %{build_compat32}
104%files -n compat32-%{name}
105%defattr(-, root, root)
106%{_libdir}/*.so.*
107
108%files -n compat32-%{name}-devel
109%defattr(-, root, root)
110%{_libdir}/*.so
111%endif
112
113
114%changelog
115* Wed Jan 11 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.1-3
116- create compat32 sub packages
117
118* Tue Sep 21 2010 IWAI, Masaharu <iwai@alib.jp> 1.1.1-2
119- build with rpm-4.8.1-1 for pkg-config file
120
121* Sun Nov 22 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.1-1
122- new upstream relase
123
124* Thu Nov 06 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0-1
125- new upstream release
126
127* Sat Apr  5 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0-0.beta2.1vl5
128- new upstream relase
129
130* Fri Sep 29 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0-0.alpha7vl1
131- new upstream relase
132
133* Sat Sep 24 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0-0.alpha5vl1
134- new upstream relase
135
136* Thu Mar 17 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0-0.alpha4vl1
137- new upstream relase
138- added Japanese summary
139
140* Sun Sep  5 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0-0.alpha3vl1
141- Build for Vine
142
143* Wed May 19 2004 Matthias Saou <http://freshrpms.net/> 1.0-0.alpha3.1
144- Initial RPM release, only devel as there is only a static lib for now.
145
Note: See TracBrowser for help on using the repository browser.