Logoj0ke.net Open Build Service > Projects > Apache > libapr1 > Changes
Sign Up | Log In

Changes of Revision 6

[-] Added libapr1.spec
x
 
1
@@ -0,0 +1,343 @@
2
+#
3
+# spec file for package libapr1 (Version 1.2.12)
4
+#
5
+# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
6
+# This file and all modifications and additions to the pristine
7
+# package are under the same license as the package itself.
8
+#
9
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
10
+#
11
+
12
+
13
+
14
+Name:           libapr1
15
+%if %{?suse_version:1}0
16
+BuildRequires:  doxygen
17
+%endif
18
+Url:            http://apr.apache.org/
19
+License:        Other uncritical OpenSource License; The Apache Software License
20
+Group:          Development/Libraries/Other
21
+AutoReqProv:    on
22
+# bug437293
23
+%ifarch ppc64
24
+Obsoletes:      libapr1-64bit
25
+%endif
26
+%ifarch  %ix86 ppc
27
+Obsoletes:      libapr1-32bit
28
+%endif
29
+#
30
+Version:        1.3.3
31
+Release:        1
32
+Summary:        Apache Portable Runtime (APR) Library
33
+Source:         http://www.apache.org/dist/apr/apr-%{version}.tar.bz2
34
+Patch1:         string-compare.diff
35
+Patch2:         apr-1.2.8-pool-cleanups.patch
36
+Patch3:         apr-1.3.0-testshm-apr_shm_remove.patch
37
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
38
+%define aprver 1
39
+%define installbuilddir %{_libdir}/apr-%{aprver}/build
40
+%define includedir %{_includedir}/apr-%{aprver}
41
+
42
+%description
43
+The mission of the Apache Portable Runtime (APR) project is to create
44
+and maintain software libraries that provide a predictable and
45
+consistent interface to underlying platform-specific implementations.
46
+The primary goal is to provide an API to which software developers may
47
+code and be assured of predictable if not identical behaviour
48
+regardless of the platform on which their software is built, relieving
49
+them of the need to code special-case conditions to work around or take
50
+advantage of platform-specific deficiencies or features.
51
+
52
+The APR is used by both Open Source and Commercial projects, prominent
53
+examples being the Apache HTTP server.
54
+
55
+
56
+
57
+Authors:
58
+--------
59
+    Too many to list here -- see /usr/share/doc/packages/apache2/ABOUT_APACHE
60
+
61
+%package devel
62
+License:        Other uncritical OpenSource License; The Apache Software License
63
+Summary:        Apache Portable Runtime (APR) Library
64
+Group:          Development/Libraries/Other
65
+Requires:       libapr1 = %{version} glibc-devel
66
+AutoReqProv:    on
67
+# bug437293
68
+%ifarch ppc64
69
+Obsoletes:      libapr1-devel-64bit
70
+%endif
71
+%ifarch  %ix86 ppc
72
+Obsoletes:      libapr1-devel-32bit
73
+%endif
74
+#
75
+
76
+%description devel
77
+The mission of the Apache Portable Runtime (APR) project is to create
78
+and maintain software libraries that provide a predictable and
79
+consistent interface to underlying platform-specific implementations.
80
+The primary goal is to provide an API to which software developers may
81
+code and be assured of predictable if not identical behaviour
82
+regardless of the platform on which their software is built, relieving
83
+them of the need to code special-case conditions to work around or take
84
+advantage of platform-specific deficiencies or features.
85
+
86
+The APR is used by both Open Source and Commercial projects, prominent
87
+examples being the Apache HTTP server.
88
+
89
+
90
+
91
+Authors:
92
+--------
93
+    Too many to list here -- see /usr/share/doc/packages/apache2/ABOUT_APACHE
94
+
95
+%prep
96
+%setup -n apr-%{version}
97
+%patch1
98
+%if %{?build_with_memory_pool_debug:1}0
99
+#patch2 -p1
100
+%endif
101
+%patch3 -p1
102
+#
103
+# workaround for ugly bug 400488
104
+# Xen kernel on sles9 x86_64 is set up to behave different than all other kernels
105
+# skip sockets test on that platform
106
+ls -l /lib/modules/ ||:
107
+%if 0%{?sles_version} == 9
108
+%ifarch x86_64
109
+sed -i '/testsockets/ d' test/abts_tests.h
110
+#sed -i '/testatomic/ d' test/abts_tests.h
111
+%endif
112
+%endif
113
+#
114
+# this test fails on sles9-x86_64, not only in Xen though.
115
+# disable it for a moment to get packages for testing at least...
116
+%if 0%{?sles_version} == 9
117
+%ifarch x86_64
118
+sed -i '/testatomic/ d' test/abts_tests.h
119
+%endif
120
+%endif
121
+
122
+%build
123
+export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -DLDAP_DEPRECATED -fPIC"
124
+#
125
+rm -rf aclocal.m4 autom4te*.cache
126
+autoheader
127
+autoconf
128
+#
129
+# --enable-pool-debug[=yes|no|verbose|verbose-alloc|lifetime|owner|all]
130
+%configure \
131
+   --with-installbuilddir=%{installbuilddir} \
132
+   --includedir=%{includedir} \
133
+%if %{?build_with_memory_pool_debug:1}0
134
+   --enable-debug --enable-pool-debug=verbose \
135
+%endif
136
+%ifarch %ix86
137
+%ifnarch i386
138
+   --enable-nonportable-atomics=yes \
139
+%endif
140
+%endif
141
+   --with-devrandom=/dev/urandom \
142
+    --disable-static \
143
+    --with-pic 
144
+%{__make} %{?jobs:-j%jobs}
145
+%if %{?suse_version:1}0
146
+make dox
147
+%endif
148
+
149
+%install
150
+make install DESTDIR=$RPM_BUILD_ROOT
151
+%if %{?suse_version:1}0
152
+# Move docs to more convenient location
153
+mv docs/dox/html html
154
+%endif
155
+# Unpackaged files:
156
+%{__rm} -f $RPM_BUILD_ROOT/%{_libdir}/apr.exp
157
+%{__rm} -f %{buildroot}%{_libdir}/libapr-%{aprver}.la
158
+
159
+%check
160
+%ifnarch %arm
161
+make check
162
+%endif
163
+
164
+%clean
165
+if ! test -f /.buildenv; then
166
+   rm -rf $RPM_BUILD_ROOT
167
+fi
168
+
169
+%post -p /sbin/ldconfig
170
+
171
+%postun -p /sbin/ldconfig
172
+
173
+%files
174
+%defattr(-,root,root)
175
+%doc CHANGES
176
+%doc LICENSE
177
+%doc NOTICE
178
+%{_libdir}/libapr-%{aprver}.so.*
179
+
180
+%files devel
181
+%defattr(-,root,root)
182
+%doc docs/APRDesign.html
183
+%doc docs/canonical_filenames.html
184
+%doc docs/incomplete_types
185
+%doc docs/non_apr_programs
186
+%if %{?suse_version:1}0
187
+%doc --parents html
188
+%endif
189
+%doc emacs-mode
190
+%{includedir}
191
+%{_libdir}/libapr-%{aprver}.so
192
+%{_bindir}/apr-%{aprver}-config
193
+%{_libdir}/pkgconfig/apr-%{aprver}.pc
194
+%{_libdir}/apr-%{aprver}
195
+
196
+%changelog
197
+* Tue Apr 15 2008 schwab@suse.de
198
+- Don't use autoreconf.
199
+* Thu Apr 10 2008 ro@suse.de
200
+- added baselibs.conf file to build xxbit packages
201