]> git.pld-linux.org Git - SPECS.git/blob - libnslog.spec
SPECS updated Tue 30 Apr 15:13:02 CEST 2024
[SPECS.git] / libnslog.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static library
4
5 Summary:        NetSurf Parametric Logging Library
6 Summary(pl.UTF-8):      Biblioteka NetSurf do sparametryzowanego logowania
7 Name:           libnslog
8 Version:        0.1.3
9 Release:        1
10 License:        MIT
11 Group:          Libraries
12 Source0:        http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-src.tar.gz
13 # Source0-md5:  a668e2ef7da6e9bc45c4f14b42a10107
14 URL:            http://www.netsurf-browser.org/
15 BuildRequires:  bison
16 BuildRequires:  flex
17 BuildRequires:  netsurf-buildsystem >= 1.9
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 Libnslog provides a category-based logging library which supports
22 complex logging filters, multiple log levels, and provides context
23 through to client applications.
24
25 %description -l pl.UTF-8
26 Libnslog to biblioteka logująca oparta na kategoriach, obsługująca
27 złożone filtry, wiele poziomów logowania, zapewniająca kontekst dla
28 aplikacji klienckich.
29
30 %package devel
31 Summary:        libnslog library headers
32 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libnslog
33 Group:          Development/Libraries
34 Requires:       %{name} = %{version}-%{release}
35
36 %description devel
37 This package contains the include files and other resources you can
38 use to incorporate libnslog into applications.
39
40 %description devel -l pl.UTF-8
41 Pliki nagłówkowe pozwalające na używanie biblioteki libnslog w
42 swoich programach.
43
44 %package static
45 Summary:        libnslog static library
46 Summary(pl.UTF-8):      Statyczna biblioteka libnslog
47 Group:          Development/Libraries
48 Requires:       %{name}-devel = %{version}-%{release}
49
50 %description static
51 This is package with static libnslog library.
52
53 %description static -l pl.UTF-8
54 Statyczna biblioteka libnslog.
55
56 %prep
57 %setup -q
58
59 %build
60 export AR="%{__ar}"
61 export CC="%{__cc}"
62 export CFLAGS="%{rpmcflags}"
63 export LDFLAGS="%{rpmldflags}"
64
65 %{__make} -j1 \
66         Q= \
67         PREFIX=%{_prefix} \
68         COMPONENT_TYPE=lib-shared
69
70 %if %{with static_libs}
71 %{__make} -j1 \
72         Q= \
73         PREFIX=%{_prefix} \
74         COMPONENT_TYPE=lib-static
75 %endif
76
77 %install
78 rm -rf $RPM_BUILD_ROOT
79
80 export AR="%{__ar}"
81 export CC="%{__cc}"
82 export CFLAGS="%{rpmcflags}"
83 export LDFLAGS="%{rpmldflags}"
84
85 %{__make} install \
86         PREFIX=%{_prefix} \
87         LIBDIR=%{_lib} \
88         COMPONENT_TYPE=lib-shared \
89         DESTDIR=$RPM_BUILD_ROOT
90
91 %if %{with static_libs}
92 %{__make} install \
93         PREFIX=%{_prefix} \
94         LIBDIR=%{_lib} \
95         COMPONENT_TYPE=lib-static \
96         DESTDIR=$RPM_BUILD_ROOT
97 %endif
98
99 %clean
100 rm -rf $RPM_BUILD_ROOT
101
102 %post   -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
104
105 %files
106 %defattr(644,root,root,755)
107 %doc COPYING README
108 %attr(755,root,root) %{_libdir}/libnslog.so.*.*.*
109 %attr(755,root,root) %ghost %{_libdir}/libnslog.so.0
110
111 %files devel
112 %defattr(644,root,root,755)
113 %attr(755,root,root) %{_libdir}/libnslog.so
114 %{_includedir}/nslog
115 %{_pkgconfigdir}/libnslog.pc
116
117 %if %{with static_libs}
118 %files static
119 %defattr(644,root,root,755)
120 %{_libdir}/libnslog.a
121 %endif
This page took 0.153522 seconds and 3 git commands to generate.