Rex Dieter 002e63
#define snaptag .20080527svn811390
Lukas Tinkl c822e3
%define beta 0.9.88
Lukas Tinkl c822e3
%define beta_tag rc3
Lorenzo Villani a5f7ab
Lorenzo Villani a5f7ab
Name:           automoc
Lorenzo Villani a5f7ab
Version:        1.0
Lukas Tinkl c822e3
Release:        0.11.%{?beta_tag}%{?dist}
Lukas Tinkl 979caa
Summary:        Automatic moc for Qt 4
Lorenzo Villani a5f7ab
Group:          Development/Tools
Lorenzo Villani a5f7ab
License:        BSD
Lorenzo Villani a5f7ab
URL:            http://www.kde.org
Lukas Tinkl 979caa
Source0:        ftp://ftp.kde.org/pub/kde/stable/automoc4/%{beta}/automoc4-%{beta}.tar.bz2
Lorenzo Villani a5f7ab
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Lorenzo Villani a5f7ab
Rex Dieter 002e63
Provides: automoc4 = %{beta}
Lorenzo Villani a5f7ab
Lukas Tinkl c822e3
Requires:       cmake >= 2.4.5
Lukas Tinkl c822e3
BuildRequires:  cmake >= 2.4.5
Lukas Tinkl 979caa
BuildRequires:  qt4-devel
Lukas Tinkl c822e3
BuildRequires:  kde-filesystem
Lorenzo Villani a5f7ab
Lorenzo Villani a5f7ab
%description
Lukas Tinkl 979caa
This package contains the automoc4 binary which is used to run moc on the
Lukas Tinkl 979caa
right source files in a Qt 4 or KDE 4 application.
Lukas Tinkl 979caa
Moc is the meta object compiler which is a widely used tool with Qt and
Lukas Tinkl 979caa
creates standard C++ files to provide syntactic sugar of the signal/slots
Lukas Tinkl 979caa
mechanism.
Lorenzo Villani a5f7ab
Lorenzo Villani a5f7ab
Lorenzo Villani a5f7ab
%prep
Rex Dieter 002e63
%setup -q -n automoc4-%{beta}
Lorenzo Villani a5f7ab
Lorenzo Villani a5f7ab
Lorenzo Villani a5f7ab
%build
Lorenzo Villani a5f7ab
mkdir -p %{_target_platform}
Lorenzo Villani a5f7ab
pushd %{_target_platform}
Lorenzo Villani a5f7ab
%{cmake_kde4} ..
Lorenzo Villani a5f7ab
popd
Lorenzo Villani a5f7ab
Rex Dieter 002e63
make %{?_smp_mflags} -C %{_target_platform}
Lorenzo Villani a5f7ab
Lorenzo Villani a5f7ab
Lorenzo Villani a5f7ab
%install
Lorenzo Villani a5f7ab
rm -rf %{buildroot}
Lorenzo Villani a5f7ab
make install DESTDIR=%{buildroot} -C %{_target_platform}
Lorenzo Villani a5f7ab
Lorenzo Villani a5f7ab
Lorenzo Villani a5f7ab
%clean
Lorenzo Villani a5f7ab
rm -rf %{buildroot}
Lorenzo Villani a5f7ab
Lorenzo Villani a5f7ab
Lorenzo Villani a5f7ab
%files
Lorenzo Villani a5f7ab
%defattr(-,root,root,-)
Lorenzo Villani a5f7ab
%{_bindir}/automoc4
Kevin Kofler b66f92
%{_kde4_libdir}/automoc4/
Lorenzo Villani a5f7ab
Lorenzo Villani a5f7ab
Lorenzo Villani a5f7ab
%changelog
Lukas Tinkl 979caa
* Thu Jan 22 2009 Rex Dieter <rdieter@fedoraproject.org> 1.0-0.11.rc3
Lukas Tinkl 979caa
- automoc4-0.9.88 (1.0-rc3)
Lukas Tinkl 979caa
Lukas Tinkl 979caa
* Sat Nov 22 2008 Lorenzo Villani <lvillani@binaryhelix.net> - 1.0-0.10.rc2
Lukas Tinkl 979caa
- fix package summary and descriptions (as requested by Richard Hughes)
Lukas Tinkl 979caa
- match cmake minimum required version with the contents of CMakeLists.txt
Lukas Tinkl 979caa
  (paranoid fix)
Lukas Tinkl 979caa
Lukas Tinkl 979caa
* Thu Sep  4 2008 Lorenzo Villani <lvillani@binaryhelix.net> - 1.0-0.9.rc2
Lukas Tinkl 979caa
- automoc4-0.9.87 (1.0-rc2)
Lukas Tinkl c822e3
Kevin Kofler b66f92
* Wed Jul 23 2008 Rex Dieter <rdieter@fedoraproject.org> 1.0-0.8.rc1
Kevin Kofler b66f92
- automoc4-0.9.84 (1.0-rc1)
Kevin Kofler b66f92
Rex Dieter 002e63
* Mon Jun 30 2008 Rex Dieter <rdieter@fedoraproject.org> 1.0-0.7.beta2
Kevin Kofler b66f92
- automoc4-0.9.83 (1.0-beta2)
Rex Dieter 002e63
- drop lib64 patch
Rex Dieter 002e63
Rex Dieter 002e63
* Thu Jun 10 2008 Lorenzo Villani <lvillani@binaryhelix.net> - 1.0-0.5.20080527svn811390
Rex Dieter 002e63
- Leave automoc4.files.in in _libdir
Rex Dieter 002e63
- Same applies to Automoc4Config.cmake
Rex Dieter 002e63
Lorenzo Villani a5f7ab
* Thu May 29 2008 Lorenzo Villani <lvillani@binaryhelix.net> - 1.0-0.3.20080527svn811390
Lorenzo Villani a5f7ab
- Added 'cmake' to Requires
Lorenzo Villani a5f7ab
Lorenzo Villani a5f7ab
* Wed May 28 2008 Lorenzo Villani <lvillani@binaryhelix.net> - 1.0-0.2.20080527svn811390
Lorenzo Villani a5f7ab
- Patched to make it build on other systems than i386 (thanks to Rex Dieter)
Lorenzo Villani a5f7ab
Lorenzo Villani a5f7ab
* Tue May 27 2008 Lorenzo Villani <lvillani@binaryhelix.net> - 1.0-0.1.20080527svn811390
Lorenzo Villani a5f7ab
- Initial release