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