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