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