]>
Commit | Line | Data |
---|---|---|
c321bc05 | 1 | Summary: CoovaChilli - Software access controller for hotspots |
2 | Name: coova-chilli | |
89748371 | 3 | Version: 1.2.5 |
a169e907 SP |
4 | Release: 0.1 |
5 | License: GPL | |
6 | Group: Applications | |
906972d1 | 7 | Source0: http://ap.coova.org/chilli/%{name}-%{version}.tar.gz |
89748371 | 8 | # Source0-md5: 1b890cb043b4340e1f15c2b2cff742d3 |
c321bc05 | 9 | Patch0: link.patch |
906972d1 | 10 | Patch1: config.patch |
1cdf5957 | 11 | URL: http://coova.org/ |
f31fa88a | 12 | BuildRequires: autoconf |
13 | BuildRequires: automake | |
14 | BuildRequires: libtool | |
520968ae | 15 | BuildRequires: perl-base |
a169e907 SP |
16 | BuildRequires: rpmbuild(macros) >= 1.228 |
17 | Requires(post,preun): /sbin/chkconfig | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
61ab2d1e | 20 | %define skip_post_check_so libchilli.so.0.0.0 |
21 | ||
a169e907 SP |
22 | %description |
23 | Coova-Chilli is a fork of the ChilliSpot project - an open source | |
24 | captive portal or wireless LAN access point controller. It supports | |
25 | web based login (Universal Access Method, or UAM), standard for public | |
26 | HotSpots, and it supports Wireless Protected Access (WPA), the | |
27 | standard for secure roamable networks. Authentication, Authorization | |
28 | and Accounting (AAA) is handled by your favorite radius server. Read | |
29 | more at http://coova.org/ and http://www.chillispot.org/. | |
30 | ||
906972d1 | 31 | %package captive-portal |
32 | Summary: Default captive portal for Coova | |
33 | Group: Applications | |
34 | Requires: %{name} = %{version}-%{release} | |
35 | Requires: haserl | |
36 | ||
37 | %description captive-portal | |
38 | Default captive portal for Coova. | |
39 | ||
ea447473 | 40 | %package -n python-coova-chilli |
41 | Summary: Python library for CoovaChilli | |
42 | Group: Development/Libraries | |
43 | Requires: %{name} = %{version}-%{release} | |
44 | Requires: python-libs | |
45 | Requires: python-modules | |
46 | Requires: python-pycairo | |
47 | Requires: python-pygobject | |
48 | Requires: python-pygtk-gtk | |
49 | ||
50 | %description -n python-coova-chilli | |
51 | Python library for CoovaChilli. | |
52 | ||
009a61d0 | 53 | %package devel |
54 | Summary: Header files for coovachili library | |
55 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki coovachilli | |
56 | Group: Development/Libraries | |
57 | Requires: %{name} = %{version}-%{release} | |
58 | ||
59 | %description devel | |
60 | Header files for coovachilli library. | |
61 | ||
62 | %description devel -l pl.UTF-8 | |
63 | Pliki nagłówkowe biblioteki coovachilli. | |
64 | ||
65 | %package static | |
66 | Summary: Static coovachilli library | |
67 | Summary(pl.UTF-8): Statyczna biblioteka coovachilli | |
68 | Group: Development/Libraries | |
69 | Requires: %{name}-devel = %{version}-%{release} | |
70 | ||
71 | %description static | |
72 | Static coovachilli library. | |
73 | ||
74 | %description static -l pl.UTF-8 | |
75 | Statyczna biblioteka coovachilli. | |
76 | ||
a169e907 | 77 | %prep |
906972d1 | 78 | %setup -q |
ab8156c5 | 79 | %patch0 -p1 |
906972d1 | 80 | %patch1 -p1 |
ab8156c5 | 81 | |
a169e907 | 82 | %build |
f31fa88a | 83 | %{__libtoolize} |
84 | %{__aclocal} | |
85 | %{__autoconf} | |
86 | %{__autoheader} | |
87 | %{__automake} | |
a169e907 SP |
88 | %configure |
89 | %{__make} | |
90 | ||
91 | %install | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
94 | install -d $RPM_BUILD_ROOT/etc/rc.d | |
95 | ||
96 | %{__make} install \ | |
97 | DESTDIR=$RPM_BUILD_ROOT | |
98 | ||
906972d1 | 99 | mv $RPM_BUILD_ROOT%{_sysconfdir}/init.d $RPM_BUILD_ROOT/etc/rc.d |
009a61d0 | 100 | |
ea447473 | 101 | %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir} |
102 | %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
103 | %py_postclean | |
104 | ||
906972d1 | 105 | install -d $RPM_BUILD_ROOT%{_datadir}/coova-chilli |
106 | rm $RPM_BUILD_ROOT%{_sysconfdir}/chilli/wwwsh | |
107 | mv $RPM_BUILD_ROOT%{_sysconfdir}/chilli/www $RPM_BUILD_ROOT%{_datadir}/coova-chilli/www | |
108 | ||
a169e907 SP |
109 | %clean |
110 | rm -rf $RPM_BUILD_ROOT | |
111 | ||
112 | %post | |
6ef11f53 SP |
113 | /sbin/chkconfig --add chilli |
114 | %service chilli restart | |
a169e907 SP |
115 | |
116 | %preun | |
117 | if [ "$1" = "0" ]; then | |
6ef11f53 SP |
118 | %service -q chilli stop |
119 | /sbin/chkconfig --del chilli | |
a169e907 SP |
120 | fi |
121 | ||
122 | %files | |
123 | %defattr(644,root,root,755) | |
265deb78 | 124 | %attr(755,root,root) %{_sbindir}/chilli |
009a61d0 | 125 | %attr(755,root,root) %ghost %{_libdir}/libbstring.so.0 |
126 | %attr(755,root,root) %{_libdir}/libbstring.so.0.0.0 | |
127 | %attr(755,root,root) %ghost %{_libdir}/libchilli.so.0 | |
128 | %attr(755,root,root) %{_libdir}/libchilli.so.0.0.0 | |
129 | %attr(754,root,root) /etc/rc.d/init.d/chilli | |
a169e907 | 130 | %doc AUTHORS COPYING ChangeLog INSTALL README doc/dictionary.chillispot doc/hotspotlogin.cgi |
6ef11f53 | 131 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/chilli.conf |
c63be05f | 132 | %dir %{_sysconfdir}/chilli |
265deb78 | 133 | %attr(755,root,root) %{_sbindir}/chilli_opt |
134 | %attr(755,root,root) %{_sbindir}/chilli_query | |
135 | %attr(755,root,root) %{_sbindir}/chilli_radconfig | |
136 | %attr(755,root,root) %{_sbindir}/chilli_response | |
a169e907 | 137 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/chilli/* |
a169e907 SP |
138 | %{_mandir}/man1/*.1* |
139 | %{_mandir}/man5/*.5* | |
140 | %{_mandir}/man8/*.8* | |
009a61d0 | 141 | |
906972d1 | 142 | %files captive-portal |
143 | %defattr(644,root,root,755) | |
144 | %attr(755,root,root) %{_datadir}/coova-chilli/www/*.sh | |
145 | %{_datadir}/coova-chilli/www/*.chi | |
146 | %{_datadir}/coova-chilli/www/*.gif | |
147 | %{_datadir}/coova-chilli/www/*.html | |
148 | %{_datadir}/coova-chilli/www/*.jpg | |
149 | %{_datadir}/coova-chilli/www/*.js | |
150 | %{_datadir}/coova-chilli/www/*.png | |
151 | %{_datadir}/coova-chilli/www/*.tmpl | |
152 | ||
ea447473 | 153 | %files -n python-%{name} |
906972d1 | 154 | %defattr(644,root,root,755) |
155 | %{_libdir}/python/CoovaChilliLib.py | |
ea447473 | 156 | |
009a61d0 | 157 | %files devel |
158 | %defattr(644,root,root,755) | |
159 | %{_libdir}/*.la | |
160 | %{_libdir}/libbstring.so | |
161 | %{_libdir}/libchilli.so | |
162 | %{_includedir}/chilli | |
163 | ||
164 | %files static | |
165 | %defattr(644,root,root,755) | |
166 | %{_libdir}/*.a |