Search
j0ke.net Open Build Service
>
Projects
>
server:mail
>
dcc
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 4
[-]
[+]
Added
dcc.spec
@@ -0,0 +1,53 @@ +Name: dcc +Summary: the Distributed Checksum Clearinghouse +Version: 1.3.90 +Release: 0 +License: Other (semi-free) +Group: Productivity/Networking/Email/Utilities +Source: %{name}-%{version}.tar.Z +BuildRoot: %{_tmppath}/build-root-%{name} +#Packager: Mathias Homann <admin@eregion.de> +#Distribution: SUSE 10.0 +Prefix: /usr +Url: http://www.dcc-servers.net/dcc/ + +%description +The Distributed Checksum Clearinghouse or DCC is a cooperative, distributed system intended to detect "bulk" mail or mail sent to many people. It allows individuals receiving a single mail message to determine that many other people have received essentially identical copies of the message and so reject or discard the message. + +Source for the server, client, and utilities is available at Rhyolite Software, LLC, http://www.rhyolite.com/dcc/ It is free for organizations that do not sell spam or virus filtering services. + +%prep +rm -rf $RPM_BUILD_ROOT +mkdir $RPM_BUILD_ROOT + +%setup + +%build +CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" \ +./configure --disable-dccm --with-installroot=$RPM_BUILD_ROOT --bindir=%{prefix}/bin --mandir=%{prefix}/share/man --disable-sys-inst +make -j 2 + +%install +make DESTDIR=$RPM_BUILD_ROOT install + +cd $RPM_BUILD_ROOT + +find . -type d -fprint $RPM_BUILD_DIR/file.list.%{name}.dirs +find . -type f -fprint $RPM_BUILD_DIR/file.list.%{name}.files.tmp +sed '/\/man\//s/$/.gz/g' $RPM_BUILD_DIR/file.list.%{name}.files.tmp > $RPM_BUILD_DIR/file.list.%{name}.files +find . -type l -fprint $RPM_BUILD_DIR/file.list.%{name}.libs +sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' $RPM_BUILD_DIR/file.list.%{name}.dirs > $RPM_BUILD_DIR/file.list.%{name} +sed 's,^\.,\%attr(-\,root\,root) ,' $RPM_BUILD_DIR/file.list.%{name}.files >> $RPM_BUILD_DIR/file.list.%{name} +sed 's,^\.,\%attr(-\,root\,root) ,' $RPM_BUILD_DIR/file.list.%{name}.libs >> $RPM_BUILD_DIR/file.list.%{name} + +%clean +rm -rf $RPM_BUILD_ROOT +rm -rf $RPM_BUILD_DIR/file.list.%{name} +rm -rf $RPM_BUILD_DIR/file.list.%{name}.libs +rm -rf $RPM_BUILD_DIR/file.list.%{name}.files +rm -rf $RPM_BUILD_DIR/file.list.%{name}.files.tmp +rm -rf $RPM_BUILD_DIR/file.list.%{name}.dirs + +%files -f ../file.list.%{name} + +%defattr(-,root,root,0755)