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