Updated mustconnect and cnl to the new dc_connect API.
[doldaconnect.git] / contrib / doldaconnect.spec.in
CommitLineData
ad5772b6
FT
1# RPC specfile for Fedora
2Name: doldaconnect
3Version: @VERSION@
4Release: 1
5License: GPL v2+
f5b0faaa 6Group: Applications/Internet
ad5772b6
FT
7Summary: Direct Connect client
8Source0: http://www.dolda2000.com/~fredrik/doldaconnect/%{name}-%{version}.tar.gz
9URL: http://www.dolda2000.com/~fredrik/doldaconnect/
10BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
f5b0faaa
FT
11Requires: %{name}-libs = %{version}-%{release}
12Requires: %{name}-data = %{version}-%{release}
13Requires: doldacond = %{version}-%{release}
ad5772b6
FT
14
15%description
16Dolda Connect is a client program for the Direct Connect peer-to-peer
17filesharing network. It is written so that the user interface is
18separated from the actual filesharing program, so that the user
19interface can run on a different computer over the network, and can be
20shut down temporarily (or only started temporarily), and can be
21replaced altogether.
22
23The protocol with which the user interface talks with the actual
24client is also quite well defined, so that other kinds of clients can
25be written as well, such as an automatic downloader, a chatbot,
26etc. It can also be used in secure multiuser operation.
27
28%package libs
29Summary: %{name} libraries
30Group: Libraries
f5b0faaa 31Requires: krb5-libs >= 1.5
ad5772b6
FT
32
33%description libs
34Shared libraries for %{name}.
35
36%package devel
37Summary: Development files for %{name}.
38Group: Development/Libraries
f5b0faaa 39Requires: %{name}-libs = %{version}-%{release}
ad5772b6
FT
40
41%description devel
42Header files and development libraries for %{name}.
43
cb530726
FT
44%package guile
45Summary: Guile module for %{name}.
46Group: Libraries
f5b0faaa
FT
47Requires: %{name}-libs = %{version}-%{release}
48Requires: guile >= 1.8.0
cb530726
FT
49
50%description guile
51Guile module for using the %{name} library in Scheme programs.
52
f5b0faaa
FT
53%package applet
54Summary: GNOME applet for %{name}
55Group: Applications/Internet
56Requires: %{name}-libs = %{version}-%{release}
57Requires: %{name}-data = %{version}-%{release}
58
59%description applet
60A GNOME applet for checking the status of transfers in %{name}.
61
62%package data
63Summary: Common data files for %{name}
64Group: Applications/Internet
65
66%description data
67This package contains common data files for other %{name} packages.
68
69%package -n dolcon
70Summary: The Gtk client in %{name}.
71Group: Applications/Internet
72Requires: %{name}-libs = %{version}-%{release}
73Requires: %{name}-data = %{version}-%{release}
74Conflicts: %{name}
75
76%description -n dolcon
77This package contains only the Gtk client for %{name}, so that it can
78be used without using a local server.
79
ad5772b6
FT
80%package -n doldacond
81Summary: The daemon in %{name}.
82Group: Daemons
83Requires(post,preun): /sbin/chkconfig
f5b0faaa
FT
84Requires: initscripts
85Requires: krb5-libs >= 1.5
86Requires: gdbm >= 1.8.0
ad5772b6
FT
87
88%description -n doldacond
89Daemon for %{name} that does all the actual work of filesharing.
90
91%prep
92%setup
93
94%build
f5b0faaa 95echo "rpm" %{release} >source
8b866abb 96%configure --disable-rpath --with-guile \
ad5772b6 97 --enable-gtk2ui --enable-guishell --with-pam \
f5b0faaa 98 --with-krb5 --enable-gnomeapplet --without-keyutils
ad5772b6
FT
99%{__make}
100
101%install
102rm -rf "$RPM_BUILD_ROOT"
103mkdir "$RPM_BUILD_ROOT"
104make install DESTDIR="$RPM_BUILD_ROOT"
f5b0faaa
FT
105install -D -m 644 contrib/pam.d-doldacond "$RPM_BUILD_ROOT"%{_sysconfdir}/pam.d/doldacond
106install -D contrib/fedora-init.d-doldacond "$RPM_BUILD_ROOT"%{_initrddir}/doldacond
ad5772b6 107rm -f "$RPM_BUILD_ROOT"%{_libdir}/gaim/*.a
cb530726
FT
108rm -f "$RPM_BUILD_ROOT"%{_libdir}/libdolcon-guile.a
109rm -f "$RPM_BUILD_ROOT"%{_libdir}/libdolcon-guile.la
ad5772b6
FT
110
111%find_lang %{name}
112
113%clean
114rm -rf "$RPM_BUILD_ROOT"
115
116%post libs -p /sbin/ldconfig
117%postun libs -p /sbin/ldconfig
118
119%files
120%defattr(-,root,root)
121%{_bindir}/dolcon
122%{_bindir}/dolconf
123%{_bindir}/dolcon-launch
124%{_bindir}/doldacond-shell
f5b0faaa
FT
125%{_desktopdir}/dolcon.desktop
126%{_mandir}/man1/dolcon.1.gz
127
128%files applet
ad5772b6
FT
129%{_libdir}/bonobo/servers/*.server
130%{_libexecdir}/dolcon-trans-applet
f5b0faaa
FT
131
132%files data
ad5772b6 133%{_iconsdir}/*
cb530726 134%{_datadir}/locale/*/LC_MESSAGES/doldaconnect.mo
ad5772b6
FT
135%doc AUTHORS ChangeLog README doc/INSTALL doc/gui-shell doc/TODO doc/protorev
136
137%files libs
138%defattr(-,root,root)
139%{_libdir}/libdcui.so.1
140%{_libdir}/libdcui.so.1.1.0
141
142%files devel
143%defattr(-,root,root)
cb530726
FT
144%{_libdir}/libdcui.so
145%{_libdir}/libdcui.la
146%{_libdir}/libdcui.a
ad5772b6
FT
147%dir %{_includedir}/doldaconnect
148%{_includedir}/doldaconnect/*.h
149
cb530726
FT
150%files guile
151%defattr(-,root,root)
152%{_libdir}/libdolcon-guile.so
153%dir %{_datadir}/guile/site/dolcon
154%{_datadir}/guile/site/dolcon/ui.scm
155%{_datadir}/guile/site/dolcon/util.scm
156%{_bindir}/autodl
157%{_bindir}/chatlog
158%{_bindir}/dcruncmd
159%{_bindir}/hubmgr
160
ad5772b6 161%files -n doldacond
8b866abb
FT
162%dir %{_sysconfdir}
163%config(noreplace) %{_sysconfdir}/*
ad5772b6
FT
164%{_bindir}/doldacond
165%{_bindir}/locktouch
166%{_bindir}/tthsum
167%{_libexecdir}/speedrec
cb530726
FT
168%{_mandir}/man5/doldacond.conf.5.gz
169%{_mandir}/man8/doldacond.8.gz
ad5772b6 170
f5b0faaa
FT
171%post -n doldacond
172/sbin/chkconfig --add doldacond
173
174%preun -n doldacond
175%service doldacond stop
176/sbin/chkconfig --del doldacond
177
178%files -n dolcon
179%{_bindir}/dolcon
180%{_mandir}/man1/dolcon.1.gz
181
ad5772b6
FT
182%changelog
183* Tue Oct 16 2007 Fredrik Tolf <fredrik@dolda2000.com>
f5b0faaa 184- Initial spec file. Quite a lot taken from the PLD specfile.