File inadyn.spec of Package inadyn

#
# spec file for package inadyn
#
# 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/
#

# norootforbuild

Name:           inadyn
URL:            http://www.inatech.eu/inadyn/
Version:        1.98.1
Release:        1
License:        GPL
Group:          System/Daemons
Summary:        Tool for setting EXIF GPS data 
Source:         %{name}-%{version}.tar.bz2
Source1:        %{name}.initrd
Source2:        %{name}.conf
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires:  make c++_compiler

%description
INADYN is a free DynDNS client. It gives the possibility to have your own fixed hostname registered on the internet, although your IP might be changing. It checks periodically whether the IP address stored by the DNS server is the real current IP address of the machine that is running INADYN.

%prep
%setup

%build
export CFLAGS="%{optflags}"
make
gzip man/*

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man8
mkdir -p %{buildroot}%{_mandir}/man5
mkdir -p %{buildroot}/etc/init.d
### ORIG ### install -m 755 bin/linux/inadyn %{buildroot}%{_bindir}/
install -m 755 src/inadyn %{buildroot}%{_bindir}/
install -m 755 %{SOURCE1} %{buildroot}/etc/init.d/inadyn
install -m 644 %{SOURCE2} %{buildroot}/etc/
install -m 644 man/*.5.gz %{buildroot}%{_mandir}/man5/
install -m 644 man/*.8.gz %{buildroot}%{_mandir}/man8/

%clean
rm -fr %buildroot

%files 
%defattr(-,root,root)
### ORIG ### %doc readme.html
%doc README
%{_bindir}/inadyn
%{_mandir}/man5/*
%{_mandir}/man8/*
/etc/inadyn.conf
/etc/init.d/inadyn

%changelog
* Thu Jan 28 2010 - Radomir Cernoch <radomir.cernoch@gmail.com> - 1.96.2
- new package
openSUSE Build Service is sponsored by