]> git.pld-linux.org Git - packages/dcd.git/blob - dcd.spec
3856c01de35bd23471ba5c02156cbff05bf0a667
[packages/dcd.git] / dcd.spec
1 Summary:        DConnect Daemon - Hub D****ct Connect for Linux
2 Summary(pl):    DConnect Daemon - Hub D****ct Connecta dla Linuksa
3 Name:           dcd
4 Version:        0.0.2
5 Release:        1
6 License:        GPL v2
7 Group:          Networking/Daemons
8 Source0:        ftp://pollux.ds.pg.gda.pl/Linux/DConnect/sources/stable/%{name}-%{version}.tar.gz
9 Patch0:         %{name}-ac_fixes.patch
10 URL:            http://www.dc.ds.pg.gda.pl/
11 BuildRequires:  autoconf
12 BuildRequires:  automake
13 BuildRequires:  libtool
14 BuildRequires:  libwrap-devel
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 This is Linux D*** Connect Hub implementation for Linux. It works in
19 daemon mode and utilizes threads.
20
21 %description -l pl
22 Pakiet zawiera Linuksow± implementacjê huba D*** Connecta, który
23 pracuje jako demon i u¿ywa w±tków.
24
25 %prep
26 %setup -q
27 %patch0 -p1
28
29 %build
30 rm -f missinf
31 libtoolize --copy --force
32 aclocal
33 autoconf
34 automake -a -c -f
35 %configure
36
37 %{__make}
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d}
42
43 %{__make} install DESTDIR=$RPM_BUILD_ROOT
44
45 install contrib/PLD/dcd.init $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/dcd
46 install contrib/dcd.sysconfig $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/dcd
47
48 gzip -nf9 README BUGS AUTHORS NEWS TODO doc/*.txt
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %post
54 /sbin/chkconfig --add dcd
55 if [ -f /var/lock/subsys/dcd ]; then
56         /etc/rc.d/init.d/dcd restart 1>&2
57 else
58         echo "Run \"/etc/rc.d/init.d/dcd start\" to start DConnect Daemon."
59 fi
60
61 %preun
62 if [ "$1" = "0" ]; then
63         if [ -f /var/lock/subsys/dcd ]; then
64                 /etc/rc.d/init.d/dcd stop 1>&2
65         fi
66         /sbin/chkconfig --del dcd
67 fi
68
69 %files
70 %defattr(644,root,root,755)
71 %doc *.gz doc/*.gz doc/*.html
72 %config(noreplace) %{_sysconfdir}/dcd/dchub.conf
73 %config(noreplace) /etc/sysconfig/dcd
74 %attr(755,root,root) %{_sbindir}/dcd
75 %attr(754,root,root) /etc/rc.d/init.d/dcd
This page took 0.059692 seconds and 3 git commands to generate.