Fixes to the RPM spec file.
[doldaconnect.git] / contrib / doldaconnect.spec.in
CommitLineData
ad5772b6
FT
1# RPC specfile for Fedora
2Name: doldaconnect
3Version: @VERSION@
4Release: 1
5License: GPL v2+
6Group: Productivity/Networking/Other
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)
11
12%description
13Dolda Connect is a client program for the Direct Connect peer-to-peer
14filesharing network. It is written so that the user interface is
15separated from the actual filesharing program, so that the user
16interface can run on a different computer over the network, and can be
17shut down temporarily (or only started temporarily), and can be
18replaced altogether.
19
20The protocol with which the user interface talks with the actual
21client is also quite well defined, so that other kinds of clients can
22be written as well, such as an automatic downloader, a chatbot,
23etc. It can also be used in secure multiuser operation.
24
25%package libs
26Summary: %{name} libraries
27Group: Libraries
28
29%description libs
30Shared libraries for %{name}.
31
32%package devel
33Summary: Development files for %{name}.
34Group: Development/Libraries
35
36%description devel
37Header files and development libraries for %{name}.
38
cb530726
FT
39%package guile
40Summary: Guile module for %{name}.
41Group: Libraries
42
43%description guile
44Guile module for using the %{name} library in Scheme programs.
45
ad5772b6
FT
46%package -n doldacond
47Summary: The daemon in %{name}.
48Group: Daemons
49Requires(post,preun): /sbin/chkconfig
50Requires: rc-scripts
51
52%description -n doldacond
53Daemon for %{name} that does all the actual work of filesharing.
54
55%prep
56%setup
57
58%build
cb530726 59echo "rpm" >source
8b866abb 60%configure --disable-rpath --with-guile \
ad5772b6
FT
61 --enable-gtk2ui --enable-guishell --with-pam \
62 --with-krb5 --enable-gnomeapplet
63%{__make}
64
65%install
66rm -rf "$RPM_BUILD_ROOT"
67mkdir "$RPM_BUILD_ROOT"
68make install DESTDIR="$RPM_BUILD_ROOT"
69rm -f "$RPM_BUILD_ROOT"%{_libdir}/gaim/*.a
cb530726
FT
70rm -f "$RPM_BUILD_ROOT"%{_libdir}/libdolcon-guile.a
71rm -f "$RPM_BUILD_ROOT"%{_libdir}/libdolcon-guile.la
ad5772b6
FT
72
73%find_lang %{name}
74
75%clean
76rm -rf "$RPM_BUILD_ROOT"
77
78%post libs -p /sbin/ldconfig
79%postun libs -p /sbin/ldconfig
80
81%files
82%defattr(-,root,root)
83%{_bindir}/dolcon
84%{_bindir}/dolconf
85%{_bindir}/dolcon-launch
86%{_bindir}/doldacond-shell
87%{_libdir}/bonobo/servers/*.server
88%{_libexecdir}/dolcon-trans-applet
89%{_desktopdir}/dolcon.desktop
90%{_iconsdir}/*
cb530726
FT
91%{_datadir}/locale/*/LC_MESSAGES/doldaconnect.mo
92%{_mandir}/man1/dolcon.1.gz
ad5772b6
FT
93%doc AUTHORS ChangeLog README doc/INSTALL doc/gui-shell doc/TODO doc/protorev
94
95%files libs
96%defattr(-,root,root)
97%{_libdir}/libdcui.so.1
98%{_libdir}/libdcui.so.1.1.0
99
100%files devel
101%defattr(-,root,root)
cb530726
FT
102%{_libdir}/libdcui.so
103%{_libdir}/libdcui.la
104%{_libdir}/libdcui.a
ad5772b6
FT
105%dir %{_includedir}/doldaconnect
106%{_includedir}/doldaconnect/*.h
107
cb530726
FT
108%files guile
109%defattr(-,root,root)
110%{_libdir}/libdolcon-guile.so
111%dir %{_datadir}/guile/site/dolcon
112%{_datadir}/guile/site/dolcon/ui.scm
113%{_datadir}/guile/site/dolcon/util.scm
114%{_bindir}/autodl
115%{_bindir}/chatlog
116%{_bindir}/dcruncmd
117%{_bindir}/hubmgr
118
ad5772b6 119%files -n doldacond
8b866abb
FT
120%dir %{_sysconfdir}
121%config(noreplace) %{_sysconfdir}/*
ad5772b6
FT
122%{_bindir}/doldacond
123%{_bindir}/locktouch
124%{_bindir}/tthsum
125%{_libexecdir}/speedrec
cb530726
FT
126%{_mandir}/man5/doldacond.conf.5.gz
127%{_mandir}/man8/doldacond.8.gz
ad5772b6
FT
128
129%changelog
130* Tue Oct 16 2007 Fredrik Tolf <fredrik@dolda2000.com>
131- Initial spec files. Quite a lot taken from the PLD specfile.