]>
Commit | Line | Data |
---|---|---|
592944db | 1 | Summary: Direct Connect Hub |
c81e34d1 | 2 | Summary(pl.UTF-8): Serwer Direct Connect |
592944db | 3 | Name: dchub |
5cea99be | 4 | Version: 0.5.2 |
d8208272 | 5 | Release: 8 |
592944db | 6 | License: GPL |
7 | Group: Applications/Communications | |
6fe92417 | 8 | Source0: http://ac2i.homelinux.com/dctc/%{name}-%{version}.tar.gz |
5cea99be AA |
9 | # Source0-md5: 673a43cde95bce2c2acba2cfab83d527 |
10 | Patch0: %{name}-configdir.patch | |
11 | Patch1: %{name}-init.patch | |
655eb505 | 12 | Patch2: %{name}-crcdir.patch |
65bf7e48 | 13 | Patch3: %{name}-pic.patch |
6fe92417 | 14 | URL: http://ac2i.homelinux.com/dctc/ |
5cea99be AA |
15 | BuildRequires: autoconf |
16 | BuildRequires: automake | |
65bf7e48 | 17 | BuildRequires: glib2-devel >= 2.0 |
b5e2cd20 JB |
18 | BuildRequires: libgcrypt-devel >= 1.1.12 |
19 | BuildRequires: libxml2-devel | |
20 | BuildRequires: perl-devel | |
a7bfde9a | 21 | BuildRequires: pkgconfig |
51175287 | 22 | BuildRequires: python-devel |
9905e57e | 23 | BuildRequires: rpmbuild(macros) >= 1.268 |
6fe92417 | 24 | Requires(post,preun): /sbin/chkconfig |
51175287 | 25 | Requires: perl-Locale-gettext |
846b2d68 | 26 | Requires: rc-scripts |
592944db | 27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
29 | %description | |
5cea99be | 30 | dchub is a hub of direct connect file sharing network. |
592944db | 31 | |
b187845e JR |
32 | %description -l pl.UTF-8 |
33 | dchub jest hubem sieci direct connect służącej do wymiany plików. | |
592944db | 34 | |
35 | %prep | |
36 | %setup -q | |
5cea99be AA |
37 | %patch0 -p1 |
38 | %patch1 -p1 | |
655eb505 | 39 | %patch2 -p1 |
65bf7e48 | 40 | %patch3 -p1 |
592944db | 41 | |
42 | %build | |
5cea99be AA |
43 | %{__aclocal} |
44 | %{__autoconf} | |
45 | %{__automake} | |
46 | %configure | |
c680ecbc | 47 | |
592944db | 48 | %{__make} |
49 | ||
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
c13429cd ER |
52 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name},/etc/rc.d/init.d,/var/lib/%{name}} |
53 | install dchub.init $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/%{name} | |
592944db | 54 | |
55 | %{__make} install \ | |
56 | DESTDIR=$RPM_BUILD_ROOT | |
57 | ||
c13429cd | 58 | install plugin/AUTOSTART $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/AUTOSTART |
5cea99be | 59 | |
5cea99be AA |
60 | # delete unnecesary files |
61 | rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/Makefile | |
62 | rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/*.c | |
63 | rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/*.h | |
64 | rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/scripts/po | |
65 | ||
846b2d68 JB |
66 | %clean |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
5cea99be | 69 | %post |
9905e57e ER |
70 | /sbin/chkconfig --add dchub |
71 | %service dchub restart | |
5cea99be | 72 | |
a600676e | 73 | %preun |
6fe92417 | 74 | if [ "$1" = "0" ]; then |
a600676e | 75 | /sbin/chkconfig --del dchub |
9905e57e | 76 | %service dchub stop |
5cea99be AA |
77 | fi |
78 | ||
592944db | 79 | %files |
80 | %defattr(644,root,root,755) | |
8110666c JB |
81 | %doc AUTHORS ChangeLog NEWS README TODO |
82 | %doc Documentation/{Global,commands,configuration_file,ext_prog,hub_cluster.postv0.4.0,plugin,protocol_extension,scripts,user_file} | |
83 | %lang(de) %doc Documentation/*.de | |
84 | %lang(fr) %doc Documentation/*.fr | |
85 | %lang(nl) %doc Documentation/*.nl | |
5cea99be | 86 | %dir %{_sysconfdir}/%{name} |
51175287 | 87 | %attr(754,root,root) /etc/rc.d/init.d/%{name} |
592944db | 88 | %attr(755,root,root) %{_bindir}/* |
8110666c | 89 | %dir %{_libdir}/%{name} |
5cea99be AA |
90 | %dir %{_libdir}/%{name}/tools |
91 | %attr(755,root,root) %{_libdir}/%{name}/tools/* | |
ba553211 | 92 | %dir %{_libdir}/%{name}/extprog |
51175287 | 93 | %config(noreplace) %verify(not md5 mtime size) %{_libdir}/%{name}/extprog/AUTOSTART |
5cea99be | 94 | %attr(755,root,root) %{_libdir}/%{name}/extprog/[CDPdm]* |
ba553211 | 95 | %dir %{_libdir}/%{name}/plugins |
51175287 | 96 | %config(noreplace) %verify(not md5 mtime size) %{_libdir}/%{name}/plugins/AUTOSTART |
5cea99be | 97 | %attr(755,root,root) %{_libdir}/%{name}/plugins/*.so |
8110666c | 98 | %dir %{_libdir}/%{name}/scripts |
5cea99be | 99 | %attr(755,root,root) %{_libdir}/%{name}/scripts/*.pl |
51175287 | 100 | %config(noreplace) %verify(not md5 mtime size) %{_libdir}/%{name}/scripts/dchub_scripts.conf |
8110666c JB |
101 | %dir %{_libdir}/%{name}/scripts/i18n |
102 | %lang(de) %{_libdir}/%{name}/scripts/i18n/de | |
103 | %lang(fr) %{_libdir}/%{name}/scripts/i18n/fr | |
104 | %lang(hu) %{_libdir}/%{name}/scripts/i18n/hu | |
105 | %lang(sv) %{_libdir}/%{name}/scripts/i18n/sv | |
655eb505 AA |
106 | %dir %{_datadir}/%{name} |
107 | %{_datadir}/%{name}/* | |
c24730d4 | 108 | %dir /var/lib/%{name} |