]> git.pld-linux.org Git - packages/crossmingw32-libwebp.git/blame - crossmingw32-libwebp.spec
- updated to 1.3.2 (fixes CVE-2023-4863)
[packages/crossmingw32-libwebp.git] / crossmingw32-libwebp.spec
CommitLineData
cc84f5de
JB
1Summary: WebP image codec libraries - cross MinGW32 version
2Summary(pl.UTF-8): Biblioteki do kodeka obrazów WebP - wersja skrośna MinGW32
ab9a3276 3Name: crossmingw32-libwebp
e799ed46 4Version: 1.3.2
8eead148 5Release: 1
ab9a3276
JB
6License: BSD
7Group: Development/Libraries
de28cc00
JB
8#Source0Download: http://downloads.webmproject.org/releases/webp/index.html
9Source0: http://downloads.webmproject.org/releases/webp/libwebp-%{version}.tar.gz
e799ed46 10# Source0-md5: 34869086761c0e2da6361035f7b64771
b39a2c4e 11URL: https://developers.google.com/speed/webp/
1b833376 12BuildRequires: autoconf >= 2.60
ab9a3276
JB
13BuildRequires: automake
14BuildRequires: crossmingw32-gcc
1b833376 15BuildRequires: libtool >= 2:2.2
ab9a3276
JB
16BuildRequires: rpmbuild(macros) >= 1.197
17BuildRequires: sed >= 4.0
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%define no_install_post_strip 1
49e9cfdb 21%define _enable_debug_packages 0
ab9a3276
JB
22
23%define target i386-mingw32
24%define target_platform i386-pc-mingw32
25
26%define _sysprefix /usr
27%define _prefix %{_sysprefix}/%{target}
28%define _libdir %{_prefix}/lib
29%define _pkgconfigdir %{_prefix}/lib/pkgconfig
30%define _dlldir /usr/share/wine/windows/system
31%define __cc %{target}-gcc
32%define __cxx %{target}-g++
c8206670 33%define __pkgconfig_provides %{nil}
0a7e21ab 34%define __pkgconfig_requires %{nil}
ab9a3276
JB
35
36%ifnarch %{ix86}
37# arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
38%define optflags -O2
39%endif
23670506 40# -z options are invalid for mingw linker, most of -f options are Linux-specific
ab9a3276 41%define filterout_ld -Wl,-z,.*
23670506 42%define filterout_c -f[-a-z0-9=]*
ab9a3276
JB
43
44%description
cc84f5de 45WebP image codec libraries.
ab9a3276
JB
46
47This package contains the cross version for Win32.
48
49%description -l pl.UTF-8
cc84f5de 50Biblioteki kodeka obrazów WebP.
ab9a3276
JB
51
52Ten pakiet zawiera wersję skrośną dla Win32.
53
54%package static
cc84f5de
JB
55Summary: Static WebP libraries (cross MinGW32 version)
56Summary(pl.UTF-8): Statyczne biblioteki WebP (wersja skrośna MinGW32)
ab9a3276
JB
57Group: Development/Libraries
58Requires: %{name} = %{version}-%{release}
59
60%description static
cc84f5de 61Static WebP libraries (cross MinGW32 version).
ab9a3276
JB
62
63%description static -l pl.UTF-8
cc84f5de 64Statyczne biblioteki WebP (wersja skrośna MinGW32).
ab9a3276
JB
65
66%package dll
cc84f5de
JB
67Summary: DLL WebP libraries for Windows
68Summary(pl.UTF-8): Biblioteki DLL WebP dla Windows
ab9a3276
JB
69Group: Applications/Emulators
70Requires: wine
71
72%description dll
cc84f5de 73DLL WebP libraries for Windows.
ab9a3276
JB
74
75%description dll -l pl.UTF-8
cc84f5de 76Biblioteki DLL WebP dla Windows.
ab9a3276
JB
77
78%prep
79%setup -q -n libwebp-%{version}
80
81sed -i -e 's/libwebp_la_LDFLAGS.*/& -no-undefined/' src/Makefile.am
82
83%build
84%{__libtoolize}
b39a2c4e 85%{__aclocal} -I m4
ab9a3276
JB
86%{__autoconf}
87%{__autoheader}
88%{__automake}
89%configure \
90 --target=%{target} \
cc84f5de
JB
91 --host=%{target} \
92 --disable-silent-rules \
93 --enable-libwebpdemux \
94 --enable-libwebpmux
ab9a3276 95
d88b8870 96# only chosen dirs to get just the library, no utils
1fe56624 97%{__make} -C sharpyuv
ab9a3276
JB
98%{__make} -C src
99
100%install
101rm -rf $RPM_BUILD_ROOT
102
d88b8870
JB
103%{__make} -C sharpyuv install \
104 DESTDIR=$RPM_BUILD_ROOT
105
ab9a3276
JB
106%{__make} -C src install \
107 DESTDIR=$RPM_BUILD_ROOT
108
109install -d $RPM_BUILD_ROOT%{_dlldir}
de28cc00 110%{__mv} $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
ab9a3276
JB
111
112%if 0%{!?debug:1}
113%{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
114%{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
115%endif
116
117%clean
118rm -rf $RPM_BUILD_ROOT
119
120%files
121%defattr(644,root,root,755)
1fe56624 122%doc AUTHORS COPYING ChangeLog NEWS PATENTS README.md
d88b8870
JB
123%{_libdir}/libsharpyuv.dll.a
124%{_libdir}/libsharpyuv.la
ab9a3276
JB
125%{_libdir}/libwebp.dll.a
126%{_libdir}/libwebp.la
cc84f5de
JB
127%{_libdir}/libwebpdemux.dll.a
128%{_libdir}/libwebpdemux.la
129%{_libdir}/libwebpmux.dll.a
130%{_libdir}/libwebpmux.la
ab9a3276 131%{_includedir}/webp
d88b8870 132%{_pkgconfigdir}/libsharpyuv.pc
ab9a3276 133%{_pkgconfigdir}/libwebp.pc
cc84f5de
JB
134%{_pkgconfigdir}/libwebpdemux.pc
135%{_pkgconfigdir}/libwebpmux.pc
ab9a3276
JB
136
137%files static
138%defattr(644,root,root,755)
d88b8870 139%{_libdir}/libsharpyuv.a
ab9a3276 140%{_libdir}/libwebp.a
cc84f5de
JB
141%{_libdir}/libwebpdemux.a
142%{_libdir}/libwebpmux.a
ab9a3276
JB
143
144%files dll
145%defattr(644,root,root,755)
d88b8870 146%{_dlldir}/libsharpyuv-0.dll
de28cc00
JB
147%{_dlldir}/libwebp-7.dll
148%{_dlldir}/libwebpmux-3.dll
149%{_dlldir}/libwebpdemux-2.dll
This page took 0.234791 seconds and 4 git commands to generate.