3 %bcond_without static_libs # don't build static library
5 Summary: Decoding library for the GIF format
6 Summary(pl.UTF-8): Biblioteka dekodująca pliki w formacie GIF
12 Source0: http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-src.tar.gz
13 # Source0-md5: ec8d24735fdd06d674ff9e4e9482b804
14 URL: http://www.netsurf-browser.org/projects/libnsgif/
15 BuildRequires: netsurf-buildsystem >= 1.7
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 Libnsgif is a decoding library for the GIF image file format, written
20 in C. It was developed as part of the NetSurf project and is available
21 for use by other software under the MIT licence.
23 %description -l pl.UTF-8
24 Libnsgif to napisana w C biblioteka dekodująca pliki obrazów w
25 formacie GIF. Powstała jako część projektu NetSurf i jest dostępna do
26 wykorzystania przez inne programy na licencji MIT.
29 Summary: libsgif library headers
30 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libnsgif
31 Group: Development/Libraries
32 Requires: %{name} = %{version}-%{release}
35 This package contains the include files and other resources you can
36 use to incorporate libnsgif into applications.
38 %description devel -l pl.UTF-8
39 Pliki nagłówkowe pozwalające na używanie biblioteki libnsgif w swoich
43 Summary: libnsgif static library
44 Summary(pl.UTF-8): Statyczna biblioteka libnsgif
45 Group: Development/Libraries
46 Requires: %{name}-devel = %{version}-%{release}
49 This is package with static libnsgif library.
51 %description static -l pl.UTF-8
52 Statyczna biblioteka libnsgif.
60 export CFLAGS="%{rpmcflags}"
61 export LDFLAGS="%{rpmldflags}"
66 COMPONENT_TYPE=lib-shared
68 %if %{with static_libs}
72 COMPONENT_TYPE=lib-static
76 rm -rf $RPM_BUILD_ROOT
80 export CFLAGS="%{rpmcflags}"
81 export LDFLAGS="%{rpmldflags}"
86 COMPONENT_TYPE=lib-shared \
87 DESTDIR=$RPM_BUILD_ROOT
89 %if %{with static_libs}
93 COMPONENT_TYPE=lib-static \
94 DESTDIR=$RPM_BUILD_ROOT
98 rm -rf $RPM_BUILD_ROOT
100 %post -p /sbin/ldconfig
101 %postun -p /sbin/ldconfig
104 %defattr(644,root,root,755)
106 %attr(755,root,root) %{_libdir}/libnsgif.so.*.*.*
107 %attr(755,root,root) %ghost %{_libdir}/libnsgif.so.1
110 %defattr(644,root,root,755)
111 %attr(755,root,root) %{_libdir}/libnsgif.so
112 %{_includedir}/nsgif.h
113 %{_pkgconfigdir}/libnsgif.pc
115 %if %{with static_libs}
117 %defattr(644,root,root,755)
118 %{_libdir}/libnsgif.a