Updated spec files for the new library version.
[doldaconnect.git] / contrib / doldaconnect.spec.in
... / ...
CommitLineData
1# RPC specfile for Fedora
2Name: doldaconnect
3Version: @VERSION@
4Release: 1
5License: GPL v2+
6Group: Applications/Internet
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)
11Requires: %{name}-libs = %{version}-%{release}
12Requires: %{name}-data = %{version}-%{release}
13Requires: doldacond = %{version}-%{release}
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
31Requires: krb5-libs >= 1.5
32
33%description libs
34Shared libraries for %{name}.
35
36%package devel
37Summary: Development files for %{name}.
38Group: Development/Libraries
39Requires: %{name}-libs = %{version}-%{release}
40
41%description devel
42Header files and development libraries for %{name}.
43
44%package guile
45Summary: Guile module for %{name}.
46Group: Libraries
47Requires: %{name}-libs = %{version}-%{release}
48Requires: guile >= 1.8.0
49
50%description guile
51Guile module for using the %{name} library in Scheme programs.
52
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
80%package -n doldacond
81Summary: The daemon in %{name}.
82Group: Daemons
83Requires(post,preun): /sbin/chkconfig
84Requires: initscripts
85Requires: krb5-libs >= 1.5
86Requires: gdbm >= 1.8.0
87
88%description -n doldacond
89Daemon for %{name} that does all the actual work of filesharing.
90
91%prep
92%setup
93
94%build
95echo "rpm" %{release} >source
96%configure --disable-rpath --with-guile \
97 --enable-gtk2ui --enable-guishell --with-pam \
98 --with-krb5 --enable-gnomeapplet --without-keyutils
99%{__make}
100
101%install
102rm -rf "$RPM_BUILD_ROOT"
103mkdir "$RPM_BUILD_ROOT"
104make install DESTDIR="$RPM_BUILD_ROOT"
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
107rm -f "$RPM_BUILD_ROOT"%{_libdir}/gaim/*.a
108rm -f "$RPM_BUILD_ROOT"%{_libdir}/libdolcon-guile.a
109rm -f "$RPM_BUILD_ROOT"%{_libdir}/libdolcon-guile.la
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
125%{_desktopdir}/dolcon.desktop
126%{_mandir}/man1/dolcon.1.gz
127
128%files applet
129%{_libdir}/bonobo/servers/*.server
130%{_libexecdir}/dolcon-trans-applet
131
132%files data
133%{_iconsdir}/*
134%{_datadir}/locale/*/LC_MESSAGES/doldaconnect.mo
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.3
140%{_libdir}/libdcui.so.3.0.0
141
142%files devel
143%defattr(-,root,root)
144%{_libdir}/libdcui.so
145%{_libdir}/libdcui.la
146%{_libdir}/libdcui.a
147%dir %{_includedir}/doldaconnect
148%{_includedir}/doldaconnect/*.h
149
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
161%files -n doldacond
162%dir %{_sysconfdir}
163%config(noreplace) %{_sysconfdir}/*
164%{_bindir}/doldacond
165%{_bindir}/locktouch
166%{_bindir}/tthsum
167%{_libexecdir}/speedrec
168%{_mandir}/man5/doldacond.conf.5.gz
169%{_mandir}/man8/doldacond.8.gz
170
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
182%changelog
183* Tue Oct 16 2007 Fredrik Tolf <fredrik@dolda2000.com>
184- Initial spec file. Quite a lot taken from the PLD specfile.