3 %bcond_without static_libs # don't build static library
5 Summary: Decoding library for BMP and ICO file formats
6 Summary(pl.UTF-8): Biblioteka dekodująca pliki w formatach BMP oraz ICO
12 Source0: http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-src.tar.gz
13 # Source0-md5: f9552402c748f976e68bb40a14bb82c7
14 URL: http://www.netsurf-browser.org/projects/libnsbmp/
15 BuildRequires: netsurf-buildsystem >= 1.1
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 Libnsbmp is a decoding library for BMP and ICO image file formats,
20 written in C. It was developed as part of the NetSurf project and is
21 available for use by other software under the MIT licence.
23 %description -l pl.UTF-8
24 Libnsbmp to napisana w C biblioteka dekodująca pliki obrazów w
25 formatach BMP oraz ICO. Powstała jako część projektu NetSurf i jest
26 dostępna do wykorzystania przez inne programy na licencji MIT.
29 Summary: libnsbmp library headers
30 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libnsbmp
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 libnsbmp into applications.
38 %description devel -l pl.UTF-8
39 Pliki nagłówkowe pozwalające na używanie biblioteki libnsbmp w swoich
43 Summary: libnsbmp static library
44 Summary(pl.UTF-8): Statyczna biblioteka libnsbmp
45 Group: Development/Libraries
46 Requires: %{name}-devel = %{version}-%{release}
49 This is package with static libnsbmp library.
51 %description static -l pl.UTF-8
52 Statyczna biblioteka libnsbmp.
59 export CFLAGS="%{rpmcflags}"
60 export LDFLAGS="%{rpmldflags}"
66 COMPONENT_TYPE=lib-shared
68 %if %{with static_libs}
73 COMPONENT_TYPE=lib-static
77 rm -rf $RPM_BUILD_ROOT
82 COMPONENT_TYPE=lib-shared \
83 DESTDIR=$RPM_BUILD_ROOT
85 %if %{with static_libs}
90 COMPONENT_TYPE=lib-static \
91 DESTDIR=$RPM_BUILD_ROOT
95 rm -rf $RPM_BUILD_ROOT
97 %post -p /sbin/ldconfig
98 %postun -p /sbin/ldconfig
101 %defattr(644,root,root,755)
103 %attr(755,root,root) %{_libdir}/libnsbmp.so.*.*.*
104 %attr(755,root,root) %ghost %{_libdir}/libnsbmp.so.0
107 %defattr(644,root,root,755)
108 %attr(755,root,root) %{_libdir}/libnsbmp.so
109 %{_includedir}/libnsbmp.h
110 %{_pkgconfigdir}/libnsbmp.pc
112 %if %{with static_libs}
114 %defattr(644,root,root,755)
115 %{_libdir}/libnsbmp.a