]>
Commit | Line | Data |
---|---|---|
62723938 | 1 | Summary: DESIRE - statistics access library |
61ba1fd1 | 2 | Summary(pl.UTF-8): DESIRE - biblioteka, statystyka dostępu |
62723938 | 3 | Name: desire |
4 | Version: 3.1 | |
dbc451ad | 5 | Release: 2 |
96c38956 | 6 | License: BSD-like |
62723938 | 7 | Group: Libraries |
d878d18e | 8 | Source0: http://www.spelio.net.ru/soft/%{name}-%{version}.tar.gz |
e728be64 | 9 | # Source0-md5: 86fde160bb54f868a6a9ba2bc2925ec2 |
62723938 | 10 | Patch0: %{name}-QnD.patch |
11 | Patch1: %{name}-DESTDIR.patch | |
96c38956 | 12 | URL: http://www.spelio.net.ru/soft/#DESIRE |
62723938 | 13 | BuildRequires: autoconf |
96c38956 | 14 | BuildRequires: automake |
6a136b8e | 15 | BuildRequires: db3-devel |
734407c2 | 16 | BuildRequires: fhs-compliance |
be8755c6 AF |
17 | BuildRequires: gd-devel >= 2.0.1 |
18 | BuildRequires: gd-static >= 2.0.1 | |
62723938 | 19 | BuildRequires: libstrfunc-devel |
6a136b8e | 20 | BuildRequires: libtool |
62723938 | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
dbc451ad | 23 | %define _cgidir /srv/httpd/cgi-bin |
62723938 | 24 | %define _logdir /var/log/desire |
25 | ||
26 | %description | |
96c38956 JB |
27 | Package includes main library (libdesire) and display library, |
28 | libddraw, customizable at run time. | |
29 | ||
61ba1fd1 JR |
30 | %description -l pl.UTF-8 |
31 | Pakiet zawiera główną bibliotekę (libdesire) i bibliotekę do | |
32 | rysowania, libddraw, konfigurowalną w locie. | |
62723938 | 33 | |
34 | %package devel | |
35 | Summary: Development part of the desire library | |
61ba1fd1 | 36 | Summary(pl.UTF-8): Część biblioteki desire przeznaczona dla developerów |
62723938 | 37 | Group: Development/Libraries |
de36d265 | 38 | Requires: %{name} = %{version}-%{release} |
62723938 | 39 | |
40 | %description devel | |
41 | This package contains the files needed for development of programs | |
42 | linked against desire. | |
43 | ||
61ba1fd1 JR |
44 | %description devel -l pl.UTF-8 |
45 | Ten pakiet zawiera pliki potrzebne do kompilowania programów z | |
46 | biblioteką desire. | |
96c38956 | 47 | |
62723938 | 48 | %package static |
49 | Summary: Static desire library | |
61ba1fd1 | 50 | Summary(pl.UTF-8): Statyczna biblioteka desire |
62723938 | 51 | Group: Development/Libraries |
de36d265 | 52 | Requires: %{name}-devel = %{version}-%{release} |
62723938 | 53 | |
54 | %description static | |
55 | This package contains static desire library. | |
56 | ||
61ba1fd1 JR |
57 | %description static -l pl.UTF-8 |
58 | Ten pakiet zawiera statyczną bibliotekę desire. | |
96c38956 | 59 | |
62723938 | 60 | %package progs |
61 | Summary: Utility programs that use desire | |
61ba1fd1 | 62 | Summary(pl.UTF-8): Narzędzia które używają desire |
62723938 | 63 | Group: Applications |
de36d265 | 64 | Requires: %{name} = %{version}-%{release} |
18bc09b8 | 65 | Requires: webserver = apache |
62723938 | 66 | |
67 | %description progs | |
96c38956 JB |
68 | These are utility programs supplied with desire: |
69 | - Proxy (Squid, OOPS) accounting convertor and graphics generator | |
70 | - Cisco ip accounting converter and graphics generator | |
71 | - Helper utilities | |
72 | ||
61ba1fd1 JR |
73 | %description progs -l pl.UTF-8 |
74 | Tutaj są programy dostarczone z desire: | |
96c38956 JB |
75 | - Konwerter i generator graficznych statystyk z Proxy (Squid, OOPS) |
76 | - Konwerter i generator grafik z Cisco | |
77 | - programy pomocnicze | |
62723938 | 78 | |
79 | %prep | |
e9d5e36c | 80 | %setup -q |
81 | %patch0 -p1 | |
62723938 | 82 | %patch1 -p1 |
83 | ||
84 | %build | |
be8755c6 | 85 | rm -f ltmain.sh aclocal.m4 |
26ccf624 | 86 | %{__libtoolize} |
95bf5019 | 87 | %{__aclocal} |
5d3e20b7 | 88 | %{__autoconf} |
62723938 | 89 | %configure |
90 | %{__make} | |
91 | ||
92 | %install | |
93 | rm -rf $RPM_BUILD_ROOT | |
6a136b8e | 94 | install -d $RPM_BUILD_ROOT%{_cgidir}/{cistat,proxy_stats} \ |
95 | $RPM_BUILD_ROOT%{_logdir}/{calls,traffic,dialup/Usres,proxy/Domains} | |
62723938 | 96 | |
97 | %{__make} install \ | |
ef9c9df5 | 98 | DESTDIR=$RPM_BUILD_ROOT |
62723938 | 99 | |
62723938 | 100 | install depend/cistat/html/* $RPM_BUILD_ROOT%{_cgidir}/cistat |
101 | install depend/proxy_stats/html/* $RPM_BUILD_ROOT%{_cgidir}/proxy_stats | |
3e869980 PG |
102 | install conf/* $RPM_BUILD_ROOT%{_sysconfdir} |
103 | touch $RPM_BUILD_ROOT%{_sysconfdir}/DOMAINS | |
62723938 | 104 | |
105 | %clean | |
106 | rm -rf $RPM_BUILD_ROOT | |
107 | ||
ef9c9df5 | 108 | %post -p /sbin/ldconfig |
109 | %postun -p /sbin/ldconfig | |
62723938 | 110 | |
111 | %files | |
112 | %defattr(644,root,root,755) | |
d79ad4a3 | 113 | %doc AUTHORS ChangeLog |
62723938 | 114 | %attr(755,root,root) %{_libdir}/*.so.* |
115 | ||
116 | %files devel | |
117 | %defattr(644,root,root,755) | |
118 | %{_libdir}/*.so | |
119 | %{_includedir}/* | |
120 | ||
121 | %files static | |
122 | %defattr(644,root,root,755) | |
123 | %{_libdir}/lib*.a | |
124 | ||
125 | %files progs | |
126 | %defattr(644,root,root,755) | |
127 | %{_logdir} | |
128 | %{_sysconfdir}/* | |
129 | %attr(755,root,root) %{_bindir}/* | |
130 | %attr(755,root,root) %{_cgidir}/proxy_stats | |
131 | %attr(755,root,root) %{_cgidir}/cistat |