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