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