]>
Commit | Line | Data |
---|---|---|
d9686636 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static library | |
a9f7cd23 | 4 | |
d9686636 | 5 | Summary: Implementation of W3C DOM |
89960186 | 6 | Summary(pl.UTF-8): Implementacja W3C DOM |
d9686636 | 7 | Name: libdom |
ec4e2f91 | 8 | Version: 0.3.2 |
f4771f8e | 9 | Release: 1 |
d9686636 | 10 | License: MIT |
11 | Group: Libraries | |
12 | Source0: http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-src.tar.gz | |
ec4e2f91 | 13 | # Source0-md5: 0b121c2cacaae95c6d753b5ca8ff1e7c |
d9686636 | 14 | URL: http://www.netsurf-browser.org/projects/libdom/ |
89960186 | 15 | BuildRequires: expat-devel >= 1.95 |
ec4e2f91 | 16 | BuildRequires: libhubbub-devel >= 0.3.4 |
e57f53fb | 17 | BuildRequires: libparserutils-devel >= 0.2.3 |
1d1af7e2 | 18 | BuildRequires: libwapcaplet-devel >= 0.4.0 |
89960186 | 19 | BuildRequires: libxml2-devel >= 2.0 |
ec4e2f91 | 20 | BuildRequires: netsurf-buildsystem >= 1.6 |
89960186 | 21 | BuildRequires: pkgconfig |
ec4e2f91 | 22 | Requires: libhubbub >= 0.3.4 |
e57f53fb | 23 | Requires: libparserutils >= 0.2.3 |
c0d8a859 | 24 | Requires: libwapcaplet >= 0.4.0 |
d9686636 | 25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
27 | %description | |
28 | LibDOM is an implementation of the W3C DOM, written in C. It is | |
29 | currently in development for use with NetSurf and is intended to be | |
30 | suitable for use in other projects too. | |
31 | ||
89960186 JB |
32 | %description -l pl.UTF-8 |
33 | LibDOM to implementacja W3C DOM, napisana w C. Jest rozwijana do | |
34 | wykorzystania w ramach projektu NetSurf, ale także z myślą o | |
35 | możliwości użycia w innych projektach. | |
36 | ||
d9686636 | 37 | %package devel |
38 | Summary: libdom library headers | |
39 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libdom | |
40 | Group: Development/Libraries | |
41 | Requires: %{name} = %{version}-%{release} | |
16a44712 JB |
42 | Requires: expat-devel >= 1.95 |
43 | Requires: libhubbub-devel >= 0.3.1 | |
d9686636 | 44 | |
45 | %description devel | |
89960186 JB |
46 | This package contains the include files and other resources you can |
47 | use to incorporate libdom into applications. | |
d9686636 | 48 | |
49 | %description devel -l pl.UTF-8 | |
50 | Pliki nagłówkowe pozwalające na używanie biblioteki libdom w swoich | |
51 | programach. | |
52 | ||
53 | %package static | |
89960186 JB |
54 | Summary: libdom static library |
55 | Summary(pl.UTF-8): Statyczna biblioteka libdom | |
d9686636 | 56 | Group: Development/Libraries |
57 | Requires: %{name}-devel = %{version}-%{release} | |
58 | ||
59 | %description static | |
89960186 | 60 | This is package with static libdom library. |
d9686636 | 61 | |
62 | %description static -l pl.UTF-8 | |
63 | Statyczna biblioteka libdom. | |
64 | ||
65 | %prep | |
66 | %setup -q | |
67 | ||
68 | %build | |
e57f53fb | 69 | export AR="%{__ar}" |
a9f7cd23 ER |
70 | export CC="%{__cc}" |
71 | export CFLAGS="%{rpmcflags}" | |
72 | export LDFLAGS="%{rpmldflags}" | |
73 | ||
89960186 JB |
74 | %{__make} \ |
75 | Q= \ | |
a9f7cd23 | 76 | PREFIX=%{_prefix} \ |
89960186 | 77 | LIBDIR=%{_lib} \ |
a9f7cd23 | 78 | COMPONENT_TYPE=lib-shared |
d9686636 | 79 | |
d9686636 | 80 | %if %{with static_libs} |
89960186 JB |
81 | %{__make} \ |
82 | Q= \ | |
a9f7cd23 | 83 | PREFIX=%{_prefix} \ |
89960186 | 84 | LIBDIR=%{_lib} \ |
a9f7cd23 | 85 | COMPONENT_TYPE=lib-static |
d9686636 | 86 | %endif |
87 | ||
88 | %install | |
c8590f8b JB |
89 | rm -rf $RPM_BUILD_ROOT |
90 | ||
e57f53fb WF |
91 | export AR="%{__ar}" |
92 | export CC="%{__cc}" | |
93 | export CFLAGS="%{rpmcflags}" | |
94 | export LDFLAGS="%{rpmldflags}" | |
95 | ||
89960186 JB |
96 | %{__make} install \ |
97 | Q= \ | |
d9686636 | 98 | PREFIX=%{_prefix} \ |
89960186 | 99 | LIBDIR=%{_lib} \ |
d9686636 | 100 | COMPONENT_TYPE=lib-shared \ |
a9f7cd23 | 101 | DESTDIR=$RPM_BUILD_ROOT |
d9686636 | 102 | |
103 | %if %{with static_libs} | |
89960186 JB |
104 | %{__make} install \ |
105 | Q= \ | |
d9686636 | 106 | PREFIX=%{_prefix} \ |
89960186 | 107 | LIBDIR=%{_lib} \ |
d9686636 | 108 | COMPONENT_TYPE=lib-static \ |
a9f7cd23 | 109 | DESTDIR=$RPM_BUILD_ROOT |
d9686636 | 110 | %endif |
111 | ||
112 | %clean | |
113 | rm -rf $RPM_BUILD_ROOT | |
114 | ||
115 | %post -p /sbin/ldconfig | |
116 | %postun -p /sbin/ldconfig | |
117 | ||
118 | %files | |
119 | %defattr(644,root,root,755) | |
89960186 | 120 | %doc COPYING README |
e1de32bc | 121 | %attr(755,root,root) %{_libdir}/libdom.so.*.*.* |
89960186 | 122 | %attr(755,root,root) %ghost %{_libdir}/libdom.so.0 |
d9686636 | 123 | |
124 | %files devel | |
125 | %defattr(644,root,root,755) | |
89960186 | 126 | %attr(755,root,root) %{_libdir}/libdom.so |
d9686636 | 127 | %{_includedir}/dom |
e1de32bc | 128 | %{_pkgconfigdir}/libdom.pc |
d9686636 | 129 | |
130 | %if %{with static_libs} | |
131 | %files static | |
132 | %defattr(644,root,root,755) | |
e1de32bc | 133 | %{_libdir}/libdom.a |
d9686636 | 134 | %endif |