xonclock/xonclock.spec

Name: xonclock
Summary: On-screen analog clock
Version: 0.0.9.2
Release: 1
License: GPL
Group: Applications/Multimedia
URL: http://xonclock.sourceforge.net/
Description: Xonclock is a simple on-screen analog clock.

CentOS 7 x86_64

The build could not start because the following file is missing: xonclock-0.0.9.2.tar.gz

Build Status

CentOS 6 x86_64

The build could not start because the following file is missing: xonclock-0.0.9.2.tar.gz

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dries
# Upstream: <gclion$mail,ru>


%{?el4:%define _without_modxorg 1}
%{?el3:%define _without_modxorg 1}
%{?el2:%define _without_modxorg 1}
%{?fc4:%define _without_modxorg 1}
%{?fc3:%define _without_modxorg 1}
%{?fc2:%define _without_modxorg 1}
%{?fc1:%define _without_modxorg 1}

Summary: On-screen analog clock
Name: xonclock
Version: 0.0.9.2
Release: 1%{?dist}
License: GPL
Group: Applications/Multimedia
URL: http://xonclock.sourceforge.net/

Source: http://dl.sf.net/xonclock/xonclock-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: libtiff-devel, libjpeg-devel, libpng-devel, desktop-file-utils
%{!?_without_modxorg:BuildRequires: freetype-devel, libX11-devel, libXext-devel, libXpm-devel, libXrender-devel, libXft-devel}
%{?_without_modxorg:BuildRequires: XFree86-devel}

%description
Xonclock is a simple on-screen analog clock.

%prep
%setup

%{__cat} <<EOF >%{name}.desktop
[Desktop Entry]
Name=Xonclock
Comment=On-screen analog clock
Exec=xonclock
Terminal=false
Type=Application
StartupNotify=true
Categories=Application;AudioVideo;
EOF

%build
%configure CFLAGS="-I/usr/include/freetype2"
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%{__make} install DESTDIR="%{buildroot}"

%{__install} -d -m0755 %{buildroot}%{_datadir}/applications/
desktop-file-install --vendor rpmforge             \
	--add-category X-Red-Hat-Base              \
	--dir %{buildroot}%{_datadir}/applications \
	%{name}.desktop

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc AUTHORS ChangeLog COPYING INSTALL NEWS README THANKS TODO
%doc %{_mandir}/man1/xonclock*
%{_bindir}/xonclock
%{_datadir}/xonclock/
%{_datadir}/applications/*xonclock.desktop

%changelog
* Sun Sep 16 2007 Dries Verachtert <dries@ulyssis.org> - 0.0.9.2-1
- Updated to release 0.0.9.2.

* Sun Aug 12 2007 Dries Verachtert <dries@ulyssis.org> - 0.0.9.1-1
- Updated to release 0.0.9.1.

* Tue Apr 17 2007 Dries Verachtert <dries@ulyssis.org> - 0.0.8.9-1
- Updated to release 0.0.8.9.

* Mon Mar 12 2007 Dries Verachtert <dries@ulyssis.org> - 0.0.8.8-1
- Updated to release 0.0.8.8.

* Sun Jan 07 2007 Dries Verachtert <dries@ulyssis.org> - 0.0.8.6-1
- Updated to release 0.0.8.6.

* Wed Dec 20 2006 Dries Verachtert <dries@ulyssis.org> - 0.0.8.5-1
- Initial package.