File automoc4.spec of Package automoc4

#
# spec file for package automoc4 (Version 0.9.87)
#
# Copyright (c) 2008 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/
#


Url:            http://www.kde.org

Name:           automoc4
BuildRequires:  cmake kde4-filesystem libqt4-devel
Version:        0.9.87
Release:        23
License:        X11/MIT
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Group:          Development/Tools/Building
Summary:        CMake automatic MOC Generation
Source0:        %name-%version.tar.bz2
%if %suse_version > 1020
Requires:       libqt4 >= %(rpm -q --queryformat '%{VERSION}' libqt4)
%else
Requires:       qt >= %(rpm -q --queryformat '%{VERSION}' qt)
%endif

%description
automoc4 is a tool to add rules for generating Qt moc files
automatically to projects that use CMake as the buildsystem.



Authors:
--------
    Matthias Kretz

%prep
%setup -q

%build
  %cmake_kde4 -d build
  %make_jobs

%install
  cd build
  %makeinstall

%clean
rm -rf "$RPM_BUILD_ROOT"

%files
%defattr(-,root,root)
/usr/bin/automoc4
%_libdir/automoc4

%changelog
* Tue Sep 09 2008 dmueller@suse.de
- fix requires for old distros
* Mon Aug 11 2008 dmueller@suse.de
- update to 0.9.87:
  * automoc4_add_library macro added
* Fri Aug 08 2008 dmueller@suse.de
- fix build after last change
* Thu Aug 07 2008 wstephenson@suse.de
- update to 0.9.84
  * no significant change
* Fri Jun 20 2008 dmueller@suse.de
- update to released tarball
  * no significant change
* Tue May 27 2008 dmueller@suse.de
- update to 813373:
  * fix issues with building moc files in parallel
* Sat May 03 2008 dmueller@suse.de
- Initial package