File dtcltiny.spec of Package dtcltiny

Name: 		dtcltiny
Summary: 	A SRCP based digital model train control program
Summary(de):	SRCP basierte Lokomotivsteuerung für eine digitale Modelleisenbahn
Version:	0.4.4
Release: 1.%{?dist}
Source: %{name}-%{version}.tar.bz2
#Patch0: follownextroute.diff
#Patch1: activateroute.diff
#Patch2: requestentry.diff
Group:          Amusements/Games/Other
License:	GPL-2.0+
URL:		http://dtcltiny.sourceforge.net/
Prefix:		/usr
#Requires:	libqt5-qtbase
BuildRequires:	glibc-devel make libqt5-qtbase-devel libqt5-qttools-devel automake
BuildRoot:	%{_tmppath}/%{name}-%{version}-buildroot

%description
dtcltiny is a Qt based SRCP-client to control digital modeltrains.
dtcltiny needs a Simple Railroad Command Protocol (SRCP) server
(e.g. srcpd) as a link to the physical layout of the model.

Authors:
--------
  Markus Pfeiffer
  Guido Scholz

%description -l de
dtcltiny ist eine grafischer SRCP-Client zur Steuerung von Lokomotiven
auf einer digitalen Modelleisenbahn. dtcltiny benötigt einen
SRCP-konformen Server (z.B. srcpd) mit Protokollversion 0.8.4.

Autoren:
--------
  Markus Pfeiffer
  Guido Scholz

%prep
%setup
#%patch0 -p1
#%patch1 -p1
#%patch2 -p1

%build
CFLAGS=$RPM_OPT_FLAGS \
%configure --prefix=%{_prefix} --with-doc-dir=%{_docdir}
make %{?_smp_mflags}

%install
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
mkdir $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install-strip

install -d $RPM_BUILD_ROOT%{_datadir}/applications
install -p -m 644 %{name}.SuSE.desktop "$RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop"

for i in AUTHORS COPYING README TODO NEWS ChangeLog ; do
  install -p -m 644 $i "$RPM_BUILD_ROOT%{_docdir}/%{name}/$i"
done

%clean
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
# %doc README AUTHORS COPYING ChangeLog TODO NEWS
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/pixmaps/%{name}*
%{_datadir}/applications/%{name}.desktop
%docdir %{_mandir}/man1/*
%{_mandir}/man1/*
%docdir %{_mandir}/de/man1/*
%{_mandir}/de/man1/*
%docdir %{_docdir}/%{name}
%{_docdir}/%{name}

%changelog
* Sun Jun 12 2016 Guido Scholz <guido-scholz@gmx.net> 0.4.4-1
- Version updated

* Wed May 25 2016 Guido Scholz <guido-scholz@gmx.net> 0.4.3-1
- Version updated

* Mon Apr 25 2016 Guido Scholz <guido-scholz@gmx.net> 0.4.2-1
- Version updated

* Sat Apr 16 2016 Guido Scholz <guido-scholz@gmx.net> 0.4.1-1
- Version updated

* Sat Apr 16 2016 Guido Scholz <guido-scholz@gmx.net> 0.4.0-4
- Switch to Qt5

* Wed Apr 13 2016 Guido Scholz <guido-scholz@gmx.net> 0.4.0-3
- Add patch for all updates

* Wed Mar 30 2016 Guido Scholz <guido-scholz@gmx.net> 0.4.0-1
- Version updated

* Mon Dec 29 2008 Guido Scholz <guido.scholz@bayernline.de> 0.3.7-1
- Version updated

* Sun Jul 29 2007 Guido Scholz <guido.scholz@bayernline.de>
- Version updated
- Updated package dependencies

* Sun Feb 27 2005 Guido Scholz <guido.scholz@bayernline.de>
- Changed rpm package group

* Wed Nov 03 2004 Guido Scholz <guido.scholz@bayernline.de>
- Update to version 0.3.6-qt3-03

* Thu Oct 28 2004 Guido Scholz <guido.scholz@bayernline.de>
- Update to version 0.3.6-qt3-02

* Tue Oct 19 2004 Guido Scholz <guido.scholz@bayernline.de>
- Update to Qt3 port