3 %bcond_without static_libs # don't build static library
5 Summary: NetSurf public suffix list handling
11 Source0: http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-src.tar.gz
12 # Source0-md5: b09c9141bc157bf486a6950d2a5df58b
13 URL: http://www.netsurf-browser.org/projects/libnspsl/
14 BuildRequires: netsurf-buildsystem >= 1.5
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 The public suffix list is a database of top level domain names
19 (https://publicsuffix.org). The database allows an application to
20 determine if if a domain name requires an additional label to be
24 Summary: libnspsl library headers
25 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libnspsl
26 Group: Development/Libraries
27 Requires: %{name} = %{version}-%{release}
30 This package contains the include files and other resources you can
31 use to incorporate libnspsl into applications.
33 %description devel -l pl.UTF-8
34 Pliki nagłówkowe pozwalające na używanie biblioteki libnspsl w swoich
38 Summary: libnspsl static library
39 Summary(pl.UTF-8): Statyczna biblioteka libnspsl
40 Group: Development/Libraries
41 Requires: %{name}-devel = %{version}-%{release}
44 This is package with static libnspsl library.
46 %description static -l pl.UTF-8
47 Statyczna biblioteka libnspsl.
55 export CFLAGS="%{rpmcflags}"
56 export LDFLAGS="%{rpmldflags}"
61 COMPONENT_TYPE=lib-shared
63 %if %{with static_libs}
67 COMPONENT_TYPE=lib-static
71 rm -rf $RPM_BUILD_ROOT
74 export CFLAGS="%{rpmcflags}"
75 export LDFLAGS="%{rpmldflags}"
77 rm -rf $RPM_BUILD_ROOT
81 COMPONENT_TYPE=lib-shared \
82 DESTDIR=$RPM_BUILD_ROOT
84 %if %{with static_libs}
88 COMPONENT_TYPE=lib-static \
89 DESTDIR=$RPM_BUILD_ROOT
93 rm -rf $RPM_BUILD_ROOT
95 %post -p /sbin/ldconfig
96 %postun -p /sbin/ldconfig
99 %defattr(644,root,root,755)
101 %attr(755,root,root) %{_libdir}/libnspsl.so.*.*.*
102 %attr(755,root,root) %ghost %{_libdir}/libnspsl.so.0
105 %defattr(644,root,root,755)
106 %attr(755,root,root) %{_libdir}/libnspsl.so
107 %{_includedir}/nspsl.h
108 %{_pkgconfigdir}/libnspsl.pc
110 %if %{with static_libs}
112 %defattr(644,root,root,755)
113 %{_libdir}/libnspsl.a