]> git.pld-linux.org Git - packages/libwebp.git/blob - libwebp.spec
- updated to 0.6.0 (note: new sonames, libwebpextras no longer installed as shared...
[packages/libwebp.git] / libwebp.spec
1 #
2 # Conditional build:
3 %bcond_without  opengl  # OpenGL-based visualizer
4 #
5 Summary:        WebP image codec libraries
6 Summary(pl.UTF-8):      Biblioteki do kodeka obrazów WebP
7 Name:           libwebp
8 Version:        0.6.0
9 Release:        1
10 License:        BSD
11 Group:          Libraries
12 #Source0Download: http://downloads.webmproject.org/releases/webp/index.html
13 Source0:        http://downloads.webmproject.org/releases/webp/%{name}-%{version}.tar.gz
14 # Source0-md5:  19a6e926ab1721268df03161b84bb4a0
15 URL:            https://developers.google.com/speed/webp/
16 %{?with_opengl:BuildRequires:   OpenGL-devel}
17 %{?with_opengl:BuildRequires:   OpenGL-glut-devel}
18 BuildRequires:  autoconf >= 2.60
19 BuildRequires:  automake
20 BuildRequires:  giflib-devel
21 BuildRequires:  libjpeg-devel
22 BuildRequires:  libpng-devel
23 BuildRequires:  libtiff-devel
24 BuildRequires:  libtool >= 2:2.2
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 WebP image codec libraries.
29
30 %description -l pl.UTF-8
31 Biblioteki do kodeka obrazów WebP.
32
33 %package devel
34 Summary:        Header files for WebP libraries
35 Summary(pl.UTF-8):      Pliki nagłówkowe bibliotek WebP
36 Group:          Development/Libraries
37 Requires:       %{name} = %{version}-%{release}
38
39 %description devel
40 Header files for WebP libraries.
41
42 %description devel -l pl.UTF-8
43 Pliki nagłówkowe bibliotek WebP.
44
45 %package static
46 Summary:        Static WebP libraries
47 Summary(pl.UTF-8):      Statyczne biblioteki WebP
48 Group:          Development/Libraries
49 Requires:       %{name}-devel = %{version}-%{release}
50
51 %description static
52 Static WebP libraries.
53
54 %description static -l pl.UTF-8
55 Statyczne biblioteki WebP.
56
57 %package progs
58 Summary:        WebP image codec tools
59 Summary(pl.UTF-8):      Narzędzia do kodeka obrazów WebP
60 Group:          Applications/Graphics
61 Requires:       %{name} = %{version}-%{release}
62
63 %description progs
64 WebP image codec tools.
65
66 %description progs -l pl.UTF-8
67 Narzędzia do kodeka obrazów WebP.
68
69 %prep
70 %setup -q
71
72 %build
73 %{__libtoolize}
74 %{__aclocal} -I m4
75 %{__autoconf}
76 %{__autoheader}
77 %{__automake}
78 %configure \
79         --disable-silent-rules \
80         --enable-libwebpdemux \
81         --enable-libwebpextras \
82         --enable-libwebpmux
83 %{__make}
84
85 %install
86 rm -rf $RPM_BUILD_ROOT
87
88 %{__make} install \
89         DESTDIR=$RPM_BUILD_ROOT
90
91 # obsoleted by pkgconfig
92 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libwebp*.la
93
94 %clean
95 rm -rf $RPM_BUILD_ROOT
96
97 %post   -p /sbin/ldconfig
98 %postun -p /sbin/ldconfig
99
100 %files
101 %defattr(644,root,root,755)
102 %doc AUTHORS COPYING ChangeLog NEWS PATENTS README
103 %attr(755,root,root) %{_libdir}/libwebp.so.*.*.*
104 %attr(755,root,root) %ghost %{_libdir}/libwebp.so.7
105 %attr(755,root,root) %{_libdir}/libwebpdemux.so.*.*.*
106 %attr(755,root,root) %ghost %{_libdir}/libwebpdemux.so.2
107 %attr(755,root,root) %{_libdir}/libwebpmux.so.*.*.*
108 %attr(755,root,root) %ghost %{_libdir}/libwebpmux.so.3
109
110 %files devel
111 %defattr(644,root,root,755)
112 %attr(755,root,root) %{_libdir}/libwebp.so
113 %attr(755,root,root) %{_libdir}/libwebpdemux.so
114 %attr(755,root,root) %{_libdir}/libwebpmux.so
115 %{_includedir}/webp
116 %{_pkgconfigdir}/libwebp.pc
117 %{_pkgconfigdir}/libwebpdemux.pc
118 %{_pkgconfigdir}/libwebpmux.pc
119
120 %files static
121 %defattr(644,root,root,755)
122 %{_libdir}/libwebp.a
123 %{_libdir}/libwebpdemux.a
124 %{_libdir}/libwebpmux.a
125
126 %files progs
127 %defattr(644,root,root,755)
128 %attr(755,root,root) %{_bindir}/cwebp
129 %attr(755,root,root) %{_bindir}/dwebp
130 %attr(755,root,root) %{_bindir}/gif2webp
131 %attr(755,root,root) %{_bindir}/img2webp
132 %{?with_opengl:%attr(755,root,root) %{_bindir}/vwebp}
133 %attr(755,root,root) %{_bindir}/webpmux
134 %{_mandir}/man1/cwebp.1*
135 %{_mandir}/man1/dwebp.1*
136 %{_mandir}/man1/gif2webp.1*
137 %{?with_opengl:%{_mandir}/man1/vwebp.1*}
138 %{_mandir}/man1/webpmux.1*
This page took 0.065925 seconds and 3 git commands to generate.