]> git.pld-linux.org Git - packages/libwebp.git/blob - libwebp.spec
528b6c7db6c30bd2dfa9637e6273787ae1841ab5
[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.5.2
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:  6f36b38c2483b32906f946a621eb0c2e
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.6
105 %attr(755,root,root) %{_libdir}/libwebpdemux.so.*.*.*
106 %attr(755,root,root) %ghost %{_libdir}/libwebpdemux.so.2
107 %attr(755,root,root) %{_libdir}/libwebpextras.so.*.*.*
108 %attr(755,root,root) %ghost %{_libdir}/libwebpextras.so.0
109 %attr(755,root,root) %{_libdir}/libwebpmux.so.*.*.*
110 %attr(755,root,root) %ghost %{_libdir}/libwebpmux.so.2
111
112 %files devel
113 %defattr(644,root,root,755)
114 %attr(755,root,root) %{_libdir}/libwebp.so
115 %attr(755,root,root) %{_libdir}/libwebpdemux.so
116 %attr(755,root,root) %{_libdir}/libwebpextras.so
117 %attr(755,root,root) %{_libdir}/libwebpmux.so
118 %{_includedir}/webp
119 %{_pkgconfigdir}/libwebp.pc
120 %{_pkgconfigdir}/libwebpdemux.pc
121 %{_pkgconfigdir}/libwebpextras.pc
122 %{_pkgconfigdir}/libwebpmux.pc
123
124 %files static
125 %defattr(644,root,root,755)
126 %{_libdir}/libwebp.a
127 %{_libdir}/libwebpdemux.a
128 %{_libdir}/libwebpextras.a
129 %{_libdir}/libwebpmux.a
130
131 %files progs
132 %defattr(644,root,root,755)
133 %attr(755,root,root) %{_bindir}/cwebp
134 %attr(755,root,root) %{_bindir}/dwebp
135 %attr(755,root,root) %{_bindir}/gif2webp
136 %{?with_opengl:%attr(755,root,root) %{_bindir}/vwebp}
137 %attr(755,root,root) %{_bindir}/webpmux
138 %{_mandir}/man1/cwebp.1*
139 %{_mandir}/man1/dwebp.1*
140 %{_mandir}/man1/gif2webp.1*
141 %{?with_opengl:%{_mandir}/man1/vwebp.1*}
142 %{_mandir}/man1/webpmux.1*
This page took 0.083413 seconds and 2 git commands to generate.