]> git.pld-linux.org Git - packages/apr-compat.git/blob - apr-compat.spec
28cbef4e9e3a82cc43d4243b71b56410fa6d5a43
[packages/apr-compat.git] / apr-compat.spec
1 %define snap    20030913101709
2 Summary:        Apache Portable Runtime
3 Summary(pl):    Apache Portable Runtime - przeno¶na biblioteka uruchomieniowa
4 Name:           apr
5 Version:        0.9.4
6 Release:        0.%{snap}.2
7 Epoch:          1
8 License:        GPL
9 Group:          Libraries
10 # http://www.apache.org/dist/apr/%{name}-%{version}.tar.gz
11 Source0:        http://cvs.apache.org/snapshots/apr/%{name}_%{snap}.tar.gz
12 # Source0-md5:  d14874964cd7f686594534d9e949eaee
13 Patch0:         %{name}-link.patch
14 URL:            http://apr.apache.org/
15 BuildRequires:  autoconf >= 2.13
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 dostarcaj±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}
70 %patch -p1 -b .orig
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#$RPM_BUILD_DIR/%{name}#%{_datadir}#g" $RPM_BUILD_ROOT%{_bindir}/*
89 %{__perl} -pi -e "s#$RPM_BUILD_DIR/%{name}.*#%{_datadir}/build#g" $RPM_BUILD_ROOT%{_datadir}/build/*
90
91 %clean
92 rm -rf $RPM_BUILD_ROOT
93
94 %post   -p /sbin/ldconfig
95 %postun -p /sbin/ldconfig
96
97 %files
98 %defattr(644,root,root,755)
99 %doc CHANGES STATUS docs/*.html
100 %attr(755,root,root) %{_libdir}/lib*.so.*.*
101
102 %files devel
103 %defattr(644,root,root,755)
104 %attr(755,root,root) %{_bindir}/*
105 %attr(755,root,root) %{_libdir}/lib*.so
106 %{_libdir}/lib*.la
107 %{_libdir}/apr.exp
108 %{_includedir}
109 %dir %{_datadir}
110 %dir %{_datadir}/build
111 %{_datadir}/build/*.mk
112 %{_datadir}/build/*.m4
113 %{_datadir}/build/*.awk
114 %attr(755,root,root) %{_datadir}/build/config.*
115 %attr(755,root,root) %{_datadir}/build/*.sh
116 %attr(755,root,root) %{_datadir}/build/libtool
117
118 %files static
119 %defattr(644,root,root,755)
120 %{_libdir}/lib*.a
This page took 0.099519 seconds and 2 git commands to generate.