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