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