File mlmmj.spec of Package mlmmj

#
# spec file for package mlmmj (Version 1.2.17.1)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           mlmmj
License:        MIT License (or similar)
Group:          Productivity/Networking/Email/Mailinglists
Version:        1.2.17.1
Release:        1
Url:            http://mlmmj.org/
Summary:        Mail Server Independent Reimplementation of the EZMLM Mailing List
Source0:        http://mlmmj.mmj.dk/files/%name-%version.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  fdupes recode

%description
This is an attempt at implementing a mailing list manager with the same
functionality as EZMLM, but with the MIT/X11 license and no mail server
dependency.

%prep
%setup -q

%build
%configure
make CFLAGS="$RPM_OPT_FLAGS -fstack-protector" %{?jobs:-j%jobs}

%install
make DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT/usr/share/%name/contrib
cp -a listtexts/{da,de,nl,it,fr,es,cz} $RPM_BUILD_ROOT/usr/share/%name/text.skel
find $RPM_BUILD_ROOT/usr/share/%name/text.skel -type f -exec recode latin1..utf8 {} \;
cp -a contrib/* $RPM_BUILD_ROOT/usr/share/%name/contrib
rm -rf  $RPM_BUILD_ROOT/usr/share/%name/contrib/recievestrip/.deps 
%fdupes -s $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README* FAQ UPGRADE LICENSE AUTHORS ChangeLog TUNABLES
%_bindir/*
%_mandir/man1/*
%_datadir/%name

%changelog