File domainkeys.spec of Package domainkeys

#
# Spec file for package domainkeys (Version 0.69)
#
# Copyright (c) 2008-2009 Exata T.I., Maringa, PR, Brasil.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org
#

Name:           domainkeys
Version:        0.69
Release:        1
License:        Yahoo! DomainKeys Public License
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  openssl-devel
Group:          System/Libraries
Summary:        DomainKey Implementor's Tools and Library for email servers & clients
URL:            http://domainkeys.sourceforge.net
Source0:        lib%{name}-%{version}.tar.bz2


%description
A general purpose set of tools, C library and CPAN modules to help DomainKeys developers.
The goal is that these tools and library can be easily adopted by all MTAs, LDAs and possibly 
MUAs. This project is about conforming to the DomainKeys standard.


%package -n lib%{name}-devel
Group:          Development/Languages/C and C++
Summary:        Development tools for %{name}


%description -n lib%{name}-devel
A general purpose set of tools, C library and CPAN modules to help DomainKeys developers.
The goal is that these tools and library can be easily adopted by all MTAs, LDAs and possibly 
MUAs. This project is about conforming to the DomainKeys standard.


%prep
%setup -q -n lib%{name}-%{version}
%{__sed} -i 's/CFLAGS=/CFLAGS=%{optflags} -fPIC /' Makefile
echo "-lresolv" > dns.lib


%build
make %{?_smp_mflags}


%install

# install directories.
#------------------------------------------------------------------------------------
%{__install} -d %{buildroot}%{_includedir}
%{__install} -d %{buildroot}%{_libdir}
%{__install} -d %{buildroot}%{_bindir}

# install files.
#------------------------------------------------------------------------------------
%{__install} domainkeys.h dktrace.h %{buildroot}%{_includedir}
%{__install} libdomainkeys.a %{buildroot}%{_libdir}
%{__install} dknewkey dktest %{buildroot}%{_bindir}


%files
%defattr(-,root,root)
%doc README CHANGES *.html
%defattr(0755,root,root)
%{_bindir}/dknewkey
%{_bindir}/dktest


%files -n lib%{name}-devel
%defattr(0644,root,root)
%{_libdir}/libdomainkeys.a
%{_includedir}/domainkeys.h
%{_includedir}/dktrace.h


%changelog
openSUSE Build Service is sponsored by