3 %bcond_without static_libs # don't build static library
5 Summary: Decoding library for the GIF format
11 Source0: http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-src.tar.gz
12 # Source0-md5: f3d4295be77db30da1f4167b270bb4d9
13 URL: http://www.netsurf-browser.org/projects/libnsgif/
14 BuildRequires: netsurf-buildsystem
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 Libnsgif is a decoding library for the GIF image file format, written
19 in C. It was developed as part of the NetSurf project and is available
20 for use by other software under the MIT licence.
23 Summary: libsgif library headers
24 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libnsgif
25 Group: Development/Libraries
26 Requires: %{name} = %{version}-%{release}
29 This is the libraries, include files and other resources you can use
30 to incorporate libnsgif into applications.
32 %description devel -l pl.UTF-8
33 Pliki nagłówkowe pozwalające na używanie biblioteki libnsgif w swoich
37 Summary: libnsgif static libraries
38 Summary(pl.UTF-8): Statyczne biblioteki libnsgif
39 Group: Development/Libraries
40 Requires: %{name}-devel = %{version}-%{release}
43 This is package with static libnsgif libraries.
45 %description static -l pl.UTF-8
46 Statyczna biblioteka libnsgif.
52 %{__make} PREFIX=%{_prefix} COMPONENT_TYPE=lib-shared
53 %if %{with static_libs}
54 %{__make} PREFIX=%{_prefix} COMPONENT_TYPE=lib-static
58 rm -rf $RPM_BUILD_ROOT
61 DESTDIR=$RPM_BUILD_ROOT \
63 COMPONENT_TYPE=lib-shared
65 %if %{with static_libs}
67 DESTDIR=$RPM_BUILD_ROOT \
69 COMPONENT_TYPE=lib-static
73 rm -rf $RPM_BUILD_ROOT
75 %post -p /sbin/ldconfig
76 %postun -p /sbin/ldconfig
79 %defattr(644,root,root,755)
80 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
83 %defattr(644,root,root,755)
84 %attr(755,root,root) %{_libdir}/lib*.so
88 %if %{with static_libs}
90 %defattr(644,root,root,755)