Fixes to the RPM spec file.
[doldaconnect.git] / contrib / doldaconnect.spec.in
1 # RPC specfile for Fedora
2 Name:           doldaconnect
3 Version:        @VERSION@
4 Release:        1
5 License:        GPL v2+
6 Group:          Productivity/Networking/Other
7 Summary:        Direct Connect client
8 Source0:        http://www.dolda2000.com/~fredrik/doldaconnect/%{name}-%{version}.tar.gz
9 URL:            http://www.dolda2000.com/~fredrik/doldaconnect/
10 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
11
12 %description
13 Dolda Connect is a client program for the Direct Connect peer-to-peer
14 filesharing network. It is written so that the user interface is
15 separated from the actual filesharing program, so that the user
16 interface can run on a different computer over the network, and can be
17 shut down temporarily (or only started temporarily), and can be
18 replaced altogether.
19
20 The protocol with which the user interface talks with the actual
21 client is also quite well defined, so that other kinds of clients can
22 be written as well, such as an automatic downloader, a chatbot,
23 etc. It can also be used in secure multiuser operation.
24
25 %package libs
26 Summary:        %{name} libraries
27 Group:          Libraries
28
29 %description libs
30 Shared libraries for %{name}.
31
32 %package devel
33 Summary:        Development files for %{name}.
34 Group:          Development/Libraries
35
36 %description devel
37 Header files and development libraries for %{name}.
38
39 %package guile
40 Summary:        Guile module for %{name}.
41 Group:          Libraries
42
43 %description guile
44 Guile module for using the %{name} library in Scheme programs.
45
46 %package -n doldacond
47 Summary:        The daemon in %{name}.
48 Group:          Daemons
49 Requires(post,preun):   /sbin/chkconfig
50 Requires:       rc-scripts
51
52 %description -n doldacond
53 Daemon for %{name} that does all the actual work of filesharing.
54
55 %prep
56 %setup
57
58 %build
59 echo "rpm" >source
60 %configure --disable-rpath --with-guile \
61                 --enable-gtk2ui --enable-guishell --with-pam \
62                 --with-krb5 --enable-gnomeapplet
63 %{__make}
64
65 %install
66 rm -rf "$RPM_BUILD_ROOT"
67 mkdir "$RPM_BUILD_ROOT"
68 make install DESTDIR="$RPM_BUILD_ROOT"
69 rm -f "$RPM_BUILD_ROOT"%{_libdir}/gaim/*.a
70 rm -f "$RPM_BUILD_ROOT"%{_libdir}/libdolcon-guile.a
71 rm -f "$RPM_BUILD_ROOT"%{_libdir}/libdolcon-guile.la
72
73 %find_lang %{name}
74
75 %clean
76 rm -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}/*
91 %{_datadir}/locale/*/LC_MESSAGES/doldaconnect.mo
92 %{_mandir}/man1/dolcon.1.gz
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)
102 %{_libdir}/libdcui.so
103 %{_libdir}/libdcui.la
104 %{_libdir}/libdcui.a
105 %dir %{_includedir}/doldaconnect
106 %{_includedir}/doldaconnect/*.h
107
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
119 %files -n doldacond
120 %dir %{_sysconfdir}
121 %config(noreplace) %{_sysconfdir}/*
122 %{_bindir}/doldacond
123 %{_bindir}/locktouch
124 %{_bindir}/tthsum
125 %{_libexecdir}/speedrec
126 %{_mandir}/man5/doldacond.conf.5.gz
127 %{_mandir}/man8/doldacond.8.gz
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.