]> git.pld-linux.org Git - packages/crossmingw32-libwebp.git/blob - crossmingw32-libwebp.spec
- new
[packages/crossmingw32-libwebp.git] / crossmingw32-libwebp.spec
1 Summary:        WebP image codec library and tools - cross MinGW32 version
2 Summary(pl.UTF-8):      Biblioteka i narzędzia do kodeka obrazów WebP - wersja skrośna MinGW32
3 Name:           crossmingw32-libwebp
4 Version:        0.1.3
5 Release:        1
6 License:        BSD
7 Group:          Development/Libraries
8 #Source0Download: http://code.google.com/p/webp/downloads/list
9 Source0:        http://webp.googlecode.com/files/libwebp-%{version}.tar.gz
10 # Source0-md5:  254d4670e14e9ed881f0536b006ab336
11 URL:            http://code.google.com/speed/webp/
12 BuildRequires:  autoconf >= 2.50
13 BuildRequires:  automake
14 BuildRequires:  crossmingw32-gcc
15 BuildRequires:  libtool
16 BuildRequires:  rpmbuild(macros) >= 1.197
17 BuildRequires:  sed >= 4.0
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         no_install_post_strip   1
21
22 %define         target                  i386-mingw32
23 %define         target_platform         i386-pc-mingw32
24
25 %define         _sysprefix              /usr
26 %define         _prefix                 %{_sysprefix}/%{target}
27 %define         _libdir                 %{_prefix}/lib
28 %define         _pkgconfigdir           %{_prefix}/lib/pkgconfig
29 %define         _dlldir                 /usr/share/wine/windows/system
30 %define         __cc                    %{target}-gcc
31 %define         __cxx                   %{target}-g++
32
33 %ifnarch %{ix86}
34 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
35 %define         optflags        -O2
36 %endif
37 # -z options are invalid for mingw linker
38 %define         filterout_ld    -Wl,-z,.*
39
40 %description
41 WebP image codec library.
42
43 This package contains the cross version for Win32.
44
45 %description -l pl.UTF-8
46 Biblioteka kodeka obrazów WebP.
47
48 Ten pakiet zawiera wersję skrośną dla Win32.
49
50 %package static
51 Summary:        Static WebP library (cross MinGW32 version)
52 Summary(pl.UTF-8):      Statyczna biblioteka WebP (wersja skrośna MinGW32)
53 Group:          Development/Libraries
54 Requires:       %{name} = %{version}-%{release}
55
56 %description static
57 Static WebP library (cross MinGW32 version).
58
59 %description static -l pl.UTF-8
60 Statyczna biblioteka WebP (wersja skrośna MinGW32).
61
62 %package dll
63 Summary:        DLL WebP library for Windows
64 Summary(pl.UTF-8):      Biblioteka DLL WebP dla Windows
65 Group:          Applications/Emulators
66 Requires:       wine
67
68 %description dll
69 DLL WebP library for Windows.
70
71 %description dll -l pl.UTF-8
72 Biblioteka DLL WebP dla Windows.
73
74 %prep
75 %setup -q -n libwebp-%{version}
76
77 sed -i -e 's/libwebp_la_LDFLAGS.*/& -no-undefined/' src/Makefile.am
78
79 %build
80 %{__libtoolize}
81 %{__aclocal}
82 %{__autoconf}
83 %{__autoheader}
84 %{__automake}
85 %configure \
86         --target=%{target} \
87         --host=%{target}
88
89 # -C src to get just the library, no utils
90 %{__make} -C src
91
92 %install
93 rm -rf $RPM_BUILD_ROOT
94
95 %{__make} -C src install \
96         DESTDIR=$RPM_BUILD_ROOT
97
98 install -d $RPM_BUILD_ROOT%{_dlldir}
99 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
100
101 %if 0%{!?debug:1}
102 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
103 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
104 %endif
105
106 %clean
107 rm -rf $RPM_BUILD_ROOT
108
109 %files
110 %defattr(644,root,root,755)
111 %doc AUTHORS COPYING ChangeLog NEWS PATENTS README
112 %{_libdir}/libwebp.dll.a
113 %{_libdir}/libwebp.la
114 %{_includedir}/webp
115 %{_pkgconfigdir}/libwebp.pc
116
117 %files static
118 %defattr(644,root,root,755)
119 %{_libdir}/libwebp.a
120
121 %files dll
122 %defattr(644,root,root,755)
123 %{_dlldir}/libwebp-2.dll
This page took 0.035985 seconds and 4 git commands to generate.