source: spec/trunk/SPECS/libogg.spec@ 1567

Last change on this file since 1567 was 718, checked in by valerius, 10 years ago

spec: libogg: Add .spec file for libogg.

File size: 3.2 KB
Line 
1%define svn_url http://svn.netlabs.org/repos/ports/libogg/trunk
2%define svn_rev 1473
3
4Name: libogg
5Version: 1.3.2
6Release: 1%{?dist}
7Summary: Ogg Bitstream Library.
8
9Group: System Environment/Libraries
10License: BSD
11URL: http://www.xiph.org/
12Vendor: Xiph.org Foundation <team@xiph.org>
13Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
14#Source: http://www.vorbis.com/files/1.0.1/unix/%{name}-%{version}.tar.gz
15BuildRoot: %{_tmppath}/%{name}-%{version}-root
16
17# We're forced to use an epoch since both Red Hat and Ximian use it in their
18# rc packages
19#Epoch: 2
20# Dirty trick to tell rpm that this package actually provides what the
21# last rc and beta was offering
22#Provides: %{name} = %{epoch}:1.0rc3-%{release}
23#Provides: %{name} = %{epoch}:1.0beta4-%{release}
24
25%description
26Libogg is a library for manipulating ogg bitstreams. It handles
27both making ogg bitstreams and getting packets from ogg bitstreams.
28
29%package devel
30Summary: Ogg Bitstream Library Development
31Group: Development/Libraries
32Requires: %{name} = %{version}-%{release}
33# Dirty trick to tell rpm that this package actually provides what the
34# last rc and beta was offering
35#Provides: %{name}-devel = %{epoch}:1.0rc3-%{release}
36#Provides: %{name}-devel = %{epoch}:1.0beta4-%{release}
37
38%description devel
39The libogg-devel package contains the header files, static libraries
40and documentation needed to develop applications with libogg.
41
42%debug_package
43
44%prep
45%if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{!?svn_rev):0}
46%setup -q
47%else
48%setup -q -n "%{name}-%{version}" -Tc
49svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
50rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
51(cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
52%endif
53
54#%patch0 -p1
55
56%build
57export CFLAGS="-g -DBUILD_SDL" LDFLAGS="-g -Zhigh-mem"
58
59./autogen.sh \
60 --prefix=%{_prefix} \
61 --enable-shared \
62 --disable-static
63
64%{__make} %{?_smp_mflags}
65
66%install
67rm -rf $RPM_BUILD_ROOT
68%{__make} install DESTDIR=%{buildroot}
69
70mkdir -p %{buildroot}%{_datadir}/doc/%{name}-devel-%{version}/doc/libogg
71install -m 644 doc/*.html doc/*.png doc/*.svg \
72 doc/libogg/*.html doc/libogg/style.css \
73 %{buildroot}%{_datadir}/doc/%{name}-devel-%{version}/
74
75# create import libs
76emximp -o %{buildroot}%{_libdir}/ogg_dll.lib %{buildroot}%{_libdir}/ogg0.dll
77emximp -o %{buildroot}%{_libdir}/ogg0_dll.lib %{buildroot}%{_libdir}/ogg0.dll
78
79%clean
80rm -rf $RPM_BUILD_ROOT
81
82#%post -p /sbin/ldconfig
83
84#%postun -p /sbin/ldconfig
85
86%files
87%defattr(-,root,root)
88%doc AUTHORS CHANGES COPYING README
89%{_libdir}/ogg*.dll
90
91%files devel
92%defattr(-,root,root)
93# a workaround for make install bug
94%exclude %{_datadir}/doc/libogg
95%doc doc/index.html
96%doc doc/framing.html
97%doc doc/oggstream.html
98%doc doc/white-ogg.png
99%doc doc/white-xifish.png
100%doc doc/stream.png
101%doc doc/libogg/*.html
102%doc doc/libogg/style.css
103%dir %{_includedir}/ogg
104%{_includedir}/ogg/ogg.h
105%{_includedir}/ogg/os_types.h
106%{_includedir}/ogg/config_types.h
107%{_libdir}/ogg*.a
108%exclude %{_libdir}/libogg.la*
109%{_libdir}/ogg*.lib
110%{_libdir}/pkgconfig/ogg.pc
111%{_datadir}/aclocal/ogg.m4
112
113%changelog
114* Tue Mar 15 2016 Valery V.Sedletski <_valerius@mail.ru> - 1.3.2-1
115- Initial OS/2 packaging
Note: See TracBrowser for help on using the repository browser.