]> git.pld-linux.org Git - packages/crossmingw32-libogg.git/blob - crossmingw32-libogg.spec
- updated to 1.3.1
[packages/crossmingw32-libogg.git] / crossmingw32-libogg.spec
1 %define         realname        libogg
2 Summary:        Ogg Bitstream Library - MinGW32 cross version
3 Summary(pl.UTF-8):      Biblioteka obsługi strumieni bitowych Ogg - wersja skrośna dla MinGW32
4 Name:           crossmingw32-%{realname}
5 Version:        1.3.1
6 Release:        1
7 License:        BSD
8 Group:          Development/Libraries
9 Source0:        http://downloads.xiph.org/releases/ogg/%{realname}-%{version}.tar.xz
10 # Source0-md5:  ca25d8da0ddfc8c6cbbf78d847a209fe
11 Patch0:         %{realname}-ac_fixes.patch
12 URL:            http://www.xiph.org/ogg/
13 BuildRequires:  autoconf
14 BuildRequires:  automake >= 1:1.6
15 BuildRequires:  crossmingw32-gcc
16 BuildRequires:  crossmingw32-w32api
17 BuildRequires:  libtool
18 BuildRequires:  tar >= 1:1.22
19 BuildRequires:  xz
20 Requires:       crossmingw32-runtime
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %define         no_install_post_strip   1
24
25 %define         target                  i386-mingw32
26 %define         target_platform         %{target}
27
28 %define         _sysprefix              /usr
29 %define         _prefix                 %{_sysprefix}/%{target}
30 %define         _libdir                 %{_prefix}/lib
31 %define         _pkgconfigdir           %{_prefix}/lib/pkgconfig
32 %define         _dlldir                 /usr/share/wine/windows/system
33 %define         __cc                    %{target}-gcc
34 %define         __cxx                   %{target}-g++
35
36 %ifnarch %{ix86}
37 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
38 %define         optflags        -O2
39 %endif
40 # -z options are invalid for mingw linker
41 %define         filterout_ld    -Wl,-z,.*
42
43 %description
44 Libogg is a library for manipulating Ogg bitstreams. It handles both
45 making Ogg bitstreams and getting packets from Ogg bitstreams.
46
47 This package contains the cross version for Win32.
48
49 %description -l pl.UTF-8
50 Libogg jest biblioteką do manipulacji strumieniami bitowymi Ogg.
51 Obsługuje ona zarówno tworzenie strumieni jak i uzyskiwanie pakietów
52 ze strumieni.
53
54 Ten pakiet zawiera wersję skrośną dla Win32.
55
56 %package static
57 Summary:        Static libogg library (cross MinGW32 version)
58 Summary(pl.UTF-8):      Statyczna biblioteka libogg (wersja skrośna MinGW32)
59 Group:          Development/Libraries
60 Requires:       %{name} = %{version}-%{release}
61
62 %description static
63 Static libogg library (cross MinGW32 version).
64
65 %description static -l pl.UTF-8
66 Statyczna biblioteka libogg (wersja skrośna MinGW32).
67
68 %package dll
69 Summary:        DLL libogg library for Windows
70 Summary(pl.UTF-8):      Biblioteka DLL libogg dla Windows
71 Group:          Applications/Emulators
72 Requires:       wine
73
74 %description dll
75 DLL libogg library for Windows.
76
77 %description dll -l pl.UTF-8
78 Biblioteka DLL libogg dla Windows.
79
80 %prep
81 %setup -q -n %{realname}-%{version}
82 %patch0 -p1
83
84 %build
85 %{__libtoolize}
86 %{__aclocal}
87 %{__autoconf}
88 %{__automake}
89 %configure \
90         --host=%{target} \
91         --target=%{target}
92
93 %{__make}
94
95 %install
96 rm -rf $RPM_BUILD_ROOT
97
98 %{__make} install \
99         DESTDIR=$RPM_BUILD_ROOT
100
101 install -d $RPM_BUILD_ROOT%{_dlldir}
102 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
103
104 %if 0%{!?debug:1}
105 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
106 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
107 %endif
108
109 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{aclocal,doc}
110
111 %clean
112 rm -rf $RPM_BUILD_ROOT
113
114 %files
115 %defattr(644,root,root,755)
116 %doc AUTHORS CHANGES COPYING README
117 %{_libdir}/libogg.dll.a
118 %{_libdir}/libogg.la
119 %{_includedir}/ogg
120 %{_pkgconfigdir}/ogg.pc
121
122 %files static
123 %defattr(644,root,root,755)
124 %{_libdir}/libogg.a
125
126 %files dll
127 %defattr(644,root,root,755)
128 %{_dlldir}/libogg-*.dll
This page took 0.084421 seconds and 3 git commands to generate.