]> git.pld-linux.org Git - packages/coova-chilli.git/blame - coova-chilli.spec
- S: haserl
[packages/coova-chilli.git] / coova-chilli.spec
CommitLineData
a169e907
SP
1Summary: CoovaChilli - Software access controller
2Name: coovachilli
463c8afa 3Version: 1.2.4
a169e907
SP
4Release: 0.1
5License: GPL
6Group: Applications
7Source0: http://ap.coova.org/chilli/coova-chilli-%{version}.tar.gz
463c8afa 8# Source0-md5: 6d942a731da07b029a1be0b58d7917d6
1b9882ce 9Patch0: %{name}-strncpy.patch
40ee09e9 10Patch1: %{name}-link.patch
1cdf5957 11URL: http://coova.org/
f31fa88a 12BuildRequires: autoconf
13BuildRequires: automake
14BuildRequires: libtool
520968ae 15BuildRequires: perl-base
a169e907 16BuildRequires: rpmbuild(macros) >= 1.228
0f5345b2 17Suggests: haserl
a169e907
SP
18Requires(post,preun): /sbin/chkconfig
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
22Coova-Chilli is a fork of the ChilliSpot project - an open source
23captive portal or wireless LAN access point controller. It supports
24web based login (Universal Access Method, or UAM), standard for public
25HotSpots, and it supports Wireless Protected Access (WPA), the
26standard for secure roamable networks. Authentication, Authorization
27and Accounting (AAA) is handled by your favorite radius server. Read
28more at http://coova.org/ and http://www.chillispot.org/.
29
009a61d0 30%package devel
31Summary: Header files for coovachili library
32Summary(pl.UTF-8): Pliki nagłówkowe biblioteki coovachilli
33Group: Development/Libraries
34Requires: %{name} = %{version}-%{release}
35
36%description devel
37Header files for coovachilli library.
38
39%description devel -l pl.UTF-8
40Pliki nagłówkowe biblioteki coovachilli.
41
42%package static
43Summary: Static coovachilli library
44Summary(pl.UTF-8): Statyczna biblioteka coovachilli
45Group: Development/Libraries
46Requires: %{name}-devel = %{version}-%{release}
47
48%description static
49Static coovachilli library.
50
51%description static -l pl.UTF-8
52Statyczna biblioteka coovachilli.
53
a169e907
SP
54%prep
55%setup -q -n coova-chilli-%{version}
ab8156c5 56%patch0 -p1
40ee09e9 57%patch1 -p1
ab8156c5 58
a169e907 59%build
f31fa88a 60%{__libtoolize}
61%{__aclocal}
62%{__autoconf}
63%{__autoheader}
64%{__automake}
a169e907
SP
65%configure
66%{__make}
67
68%install
69rm -rf $RPM_BUILD_ROOT
70
71install -d $RPM_BUILD_ROOT/etc/rc.d
72
73%{__make} install \
74 DESTDIR=$RPM_BUILD_ROOT
75
009a61d0 76mv $RPM_BUILD_ROOT/etc/init.d $RPM_BUILD_ROOT/etc/rc.d
77
a169e907
SP
78%clean
79rm -rf $RPM_BUILD_ROOT
80
81%post
6ef11f53
SP
82/sbin/chkconfig --add chilli
83%service chilli restart
a169e907
SP
84
85%preun
86if [ "$1" = "0" ]; then
6ef11f53
SP
87 %service -q chilli stop
88 /sbin/chkconfig --del chilli
a169e907
SP
89fi
90
91%files
92%defattr(644,root,root,755)
93%attr(755,root,root) %{_sbindir}/*
94%attr(755,root,root) %{_libdir}/*.so*
009a61d0 95%attr(755,root,root) %ghost %{_libdir}/libbstring.so.0
96%attr(755,root,root) %{_libdir}/libbstring.so.0.0.0
97%attr(755,root,root) %ghost %{_libdir}/libchilli.so.0
98%attr(755,root,root) %{_libdir}/libchilli.so.0.0.0
99%attr(754,root,root) /etc/rc.d/init.d/chilli
a169e907 100%doc AUTHORS COPYING ChangeLog INSTALL README doc/dictionary.chillispot doc/hotspotlogin.cgi
6ef11f53 101%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/chilli.conf
c63be05f 102%dir %{_sysconfdir}/chilli
a169e907 103%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/chilli/*
a169e907 104%attr(755,root,root)%{_sysconfdir}/chilli/www/config.sh
6ef11f53
SP
105%dir %{_sysconfdir}/chilli/www
106%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/chilli/www/*
a169e907
SP
107%{_mandir}/man1/*.1*
108%{_mandir}/man5/*.5*
109%{_mandir}/man8/*.8*
009a61d0 110
111%files devel
112%defattr(644,root,root,755)
113%{_libdir}/*.la
114%{_libdir}/libbstring.so
115%{_libdir}/libchilli.so
116%{_includedir}/chilli
117
118%files static
119%defattr(644,root,root,755)
120%{_libdir}/*.a
This page took 0.075235 seconds and 4 git commands to generate.