]>
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 |
8e63aa7f | 8 | Version: 0.4.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 | |
8e63aa7f | 13 | # Source0-md5: 715c8018dbf0ed8b61a1afcc8cb13ed9 |
d9686636 | 14 | URL: http://www.netsurf-browser.org/projects/libdom/ |
89960186 | 15 | BuildRequires: expat-devel >= 1.95 |
8e63aa7f WF |
16 | BuildRequires: libhubbub-devel >= 0.3.8 |
17 | BuildRequires: libparserutils-devel >= 0.2.5 | |
f6de4658 | 18 | BuildRequires: libwapcaplet-devel >= 0.4.3 |
89960186 | 19 | BuildRequires: libxml2-devel >= 2.0 |
8e63aa7f | 20 | BuildRequires: netsurf-buildsystem >= 1.10 |
89960186 | 21 | BuildRequires: pkgconfig |
8e63aa7f WF |
22 | Requires: libhubbub >= 0.3.8 |
23 | Requires: libparserutils >= 0.2.5 | |
f6de4658 | 24 | Requires: libwapcaplet >= 0.4.3 |
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 | 42 | Requires: expat-devel >= 1.95 |
899e263f JB |
43 | Requires: libhubbub-devel >= 0.3.8 |
44 | Requires: libwapcaplet-devel >= 0.4.3 | |
d9686636 | 45 | |
46 | %description devel | |
89960186 JB |
47 | This package contains the include files and other resources you can |
48 | use to incorporate libdom into applications. | |
d9686636 | 49 | |
50 | %description devel -l pl.UTF-8 | |
51 | Pliki nagłówkowe pozwalające na używanie biblioteki libdom w swoich | |
52 | programach. | |
53 | ||
54 | %package static | |
89960186 JB |
55 | Summary: libdom static library |
56 | Summary(pl.UTF-8): Statyczna biblioteka libdom | |
d9686636 | 57 | Group: Development/Libraries |
58 | Requires: %{name}-devel = %{version}-%{release} | |
59 | ||
60 | %description static | |
89960186 | 61 | This is package with static libdom library. |
d9686636 | 62 | |
63 | %description static -l pl.UTF-8 | |
64 | Statyczna biblioteka libdom. | |
65 | ||
66 | %prep | |
67 | %setup -q | |
68 | ||
69 | %build | |
e57f53fb | 70 | export AR="%{__ar}" |
a9f7cd23 ER |
71 | export CC="%{__cc}" |
72 | export CFLAGS="%{rpmcflags}" | |
73 | export LDFLAGS="%{rpmldflags}" | |
74 | ||
89960186 JB |
75 | %{__make} \ |
76 | Q= \ | |
a9f7cd23 | 77 | PREFIX=%{_prefix} \ |
89960186 | 78 | LIBDIR=%{_lib} \ |
a9f7cd23 | 79 | COMPONENT_TYPE=lib-shared |
d9686636 | 80 | |
d9686636 | 81 | %if %{with static_libs} |
89960186 JB |
82 | %{__make} \ |
83 | Q= \ | |
a9f7cd23 | 84 | PREFIX=%{_prefix} \ |
89960186 | 85 | LIBDIR=%{_lib} \ |
a9f7cd23 | 86 | COMPONENT_TYPE=lib-static |
d9686636 | 87 | %endif |
88 | ||
89 | %install | |
c8590f8b JB |
90 | rm -rf $RPM_BUILD_ROOT |
91 | ||
e57f53fb WF |
92 | export AR="%{__ar}" |
93 | export CC="%{__cc}" | |
94 | export CFLAGS="%{rpmcflags}" | |
95 | export LDFLAGS="%{rpmldflags}" | |
96 | ||
89960186 JB |
97 | %{__make} install \ |
98 | Q= \ | |
d9686636 | 99 | PREFIX=%{_prefix} \ |
89960186 | 100 | LIBDIR=%{_lib} \ |
d9686636 | 101 | COMPONENT_TYPE=lib-shared \ |
a9f7cd23 | 102 | DESTDIR=$RPM_BUILD_ROOT |
d9686636 | 103 | |
104 | %if %{with static_libs} | |
89960186 JB |
105 | %{__make} install \ |
106 | Q= \ | |
d9686636 | 107 | PREFIX=%{_prefix} \ |
89960186 | 108 | LIBDIR=%{_lib} \ |
d9686636 | 109 | COMPONENT_TYPE=lib-static \ |
a9f7cd23 | 110 | DESTDIR=$RPM_BUILD_ROOT |
d9686636 | 111 | %endif |
112 | ||
113 | %clean | |
114 | rm -rf $RPM_BUILD_ROOT | |
115 | ||
116 | %post -p /sbin/ldconfig | |
117 | %postun -p /sbin/ldconfig | |
118 | ||
119 | %files | |
120 | %defattr(644,root,root,755) | |
89960186 | 121 | %doc COPYING README |
e1de32bc | 122 | %attr(755,root,root) %{_libdir}/libdom.so.*.*.* |
89960186 | 123 | %attr(755,root,root) %ghost %{_libdir}/libdom.so.0 |
d9686636 | 124 | |
125 | %files devel | |
126 | %defattr(644,root,root,755) | |
89960186 | 127 | %attr(755,root,root) %{_libdir}/libdom.so |
d9686636 | 128 | %{_includedir}/dom |
e1de32bc | 129 | %{_pkgconfigdir}/libdom.pc |
d9686636 | 130 | |
131 | %if %{with static_libs} | |
132 | %files static | |
133 | %defattr(644,root,root,755) | |
e1de32bc | 134 | %{_libdir}/libdom.a |
d9686636 | 135 | %endif |