]> git.pld-linux.org Git - packages/apr-compat.git/blob - apr-compat.spec
- rel 2
[packages/apr-compat.git] / apr-compat.spec
1 Summary:        Apache Portable Runtime
2 Summary(pl):    Apache Portable Runtime - przeno¶na biblioteka uruchomieniowa
3 Name:           apr
4 Version:        1.1.1
5 Release:        2
6 Epoch:          1
7 License:        Apache v2.0
8 Group:          Libraries
9 Source0:        http://www.apache.org/dist/apr/%{name}-%{version}.tar.gz
10 # Source0-md5:  e153fda2df2338250548448c7a6e3d59
11 Patch0:         %{name}-link.patch
12 Patch1:         %{name}-metuxmpm.patch
13 # EPOLL PATCH: TO BE DROPPED AFTER AC
14 Patch2:         %{name}-no-epoll.patch
15 URL:            http://apr.apache.org/
16 BuildRequires:  autoconf >= 2.13
17 BuildRequires:  automake
18 BuildRequires:  libtool >= 1.3.3
19 BuildRequires:  perl-base
20 BuildRequires:  python
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %define         _includedir     /usr/include/apr
24 %define         _datadir        /usr/share/apr
25
26 %description
27 The mission of the Apache Portable Runtime (APR) project is to create
28 and maintain software libraries that provide a predictable and
29 consistent interface to underlying platform-specific implementations.
30 The primary goal is to provide an API to which software developers may
31 code and be assured of predictable if not identical behaviour
32 regardless of the platform on which their software is built, relieving
33 them of the need to code special-case conditions to work around or
34 take advantage of platform-specific deficiencies or features.
35
36 %description -l pl
37 Celem projektu APR (Apache Portable Runtime) jest stworzenie i
38 utrzymywanie bibliotek dostarczaj±cych przewidywalnego i spójnego
39 interfejsu do le¿±cych u podstaw implementacji zale¿nych od platformy.
40 G³ównym celem jest dostarczenie API, którego mog± u¿ywaæ programi¶ci
41 maj±c pewno¶æ, ¿e zachowuje siê w sposób przewidywalny, je¶li nie
42 identyczny, niezale¿nie od platformy na jakiej oprogramowanie jest
43 budowane oraz bez potrzeby kodowania specjalnych warunków do
44 obchodzenia lub wykorzystywania specyficznych dla platform ró¿nic lub
45 mo¿liwo¶ci.
46
47 %package devel
48 Summary:        Header files and development documentation for apr
49 Summary(pl):    Pliki nag³ówkowe i dokumentacja programisty do apr
50 Group:          Development/Libraries
51 Requires:       %{name} = %{epoch}:%{version}-%{release}
52 Requires:       libuuid-devel
53
54 %description devel
55 Header files and development documentation for apr.
56
57 %description devel -l pl
58 Pliki nag³ówkowe i dokumentacja programisty do apr.
59
60 %package static
61 Summary:        Static apr library
62 Summary(pl):    Statyczna biblioteka apr
63 Group:          Development/Libraries
64 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
65
66 %description static
67 Static apr library.
68
69 %description static -l pl
70 Statyczna biblioteka apr.
71
72 %prep
73 %setup -q
74 %patch0 -p1
75 %patch1 -p1
76 %patch2 -p1
77
78 %build
79 install /usr/share/automake/config.* build
80 ./buildconf
81 %configure \
82         --with-devrandom=/dev/urandom \
83 %ifarch %{ix86}
84 %ifnarch i386
85         --enable-nonportable-atomics \
86 %endif
87 %endif
88         --enable-threads
89 %{__make}
90
91 %install
92 rm -rf $RPM_BUILD_ROOT
93
94 %{__make} install \
95         DESTDIR=$RPM_BUILD_ROOT
96
97 ln -sf %{_bindir}/libtool $RPM_BUILD_ROOT%{_datadir}/libtool
98
99 mv -f $RPM_BUILD_ROOT%{_datadir}/build-1 $RPM_BUILD_ROOT%{_datadir}/build
100 install build/{*apr*.m4,*.awk,*.sh,config.*} $RPM_BUILD_ROOT%{_datadir}/build
101 ln -sf build $RPM_BUILD_ROOT%{_datadir}/build-1
102
103 %{__perl} -pi -e 's@^(APR_SOURCE_DIR=).*@$1"%{_datadir}"@' $RPM_BUILD_ROOT%{_bindir}/apr-config
104 %{__perl} -pi -e 's@^(apr_builddir|apr_builders)=.*@$1=%{_datadir}/build-1@' \
105         $RPM_BUILD_ROOT%{_datadir}/build/apr_rules.mk
106
107 %clean
108 rm -rf $RPM_BUILD_ROOT
109
110 %post   -p /sbin/ldconfig
111 %postun -p /sbin/ldconfig
112
113 %files
114 %defattr(644,root,root,755)
115 %doc CHANGES docs/*.html
116 %attr(755,root,root) %{_libdir}/lib*.so.*.*
117
118 %files devel
119 %defattr(644,root,root,755)
120 %attr(755,root,root) %{_bindir}/*
121 %attr(755,root,root) %{_libdir}/lib*.so
122 %{_libdir}/lib*.la
123 %{_libdir}/apr.exp
124 %{_includedir}
125 %dir %{_datadir}
126 %dir %{_datadir}/build
127 %{_datadir}/build/*.mk
128 %{_datadir}/build/*.m4
129 %{_datadir}/build/*.awk
130 %attr(755,root,root) %{_datadir}/build/config.*
131 %attr(755,root,root) %{_datadir}/build/*.sh
132 %attr(755,root,root) %{_datadir}/build/libtool
133 %{_datadir}/build-1
134 %{_pkgconfigdir}/apr-1.pc
135
136 %files static
137 %defattr(644,root,root,755)
138 %{_libdir}/lib*.a
This page took 0.131818 seconds and 4 git commands to generate.