Rex Dieter c7f345
#define snaptag .20080527svn811390
Rex Dieter 9428c3
%define beta 0.9.88
Rex Dieter 9428c3
%define beta_tag rc3
Lorenzo Villani a555ed
Rex Dieter 594350
# trim changelog included in binary rpms
Rex Dieter 594350
%global _changelog_trimtime %(date +%s -d "1 year ago")
Rex Dieter 594350
Lorenzo Villani a555ed
Name:           automoc
Lorenzo Villani a555ed
Version:        1.0
Fedora Release Engineering 0a1499
Release:        0.30.%{?beta_tag}%{?dist}
Lorenzo Villani 1686be
Summary:        Automatic moc for Qt 4
Lorenzo Villani a555ed
Group:          Development/Tools
Lorenzo Villani a555ed
License:        BSD
Lorenzo Villani a555ed
URL:            http://www.kde.org
Rex Dieter 9428c3
Source0:        ftp://ftp.kde.org/pub/kde/stable/automoc4/%{beta}/automoc4-%{beta}.tar.bz2
Lorenzo Villani a555ed
Rex Dieter 29094f
## upstream patches
Rex Dieter 29094f
Patch1: 0001-fix-make-clean-it-s-SET_directory_properties-and-not.patch
Rex Dieter 29094f
Patch2: 0002-automoc-did-not-understand-.mm-files-objc.patch
Rex Dieter 29094f
Patch3: 0003-support-for-Objective-C-i.e.-mm-files-is-enough-to-i.patch
Rex Dieter 29094f
Patch4: 0004-auto-detect-case-insensitive-filesystem-on-OSX.patch
Rex Dieter 29094f
Patch5: 0005-add-a-ctest-config-file-see-http-my.cdash.org-index..patch
Rex Dieter 29094f
Patch6: 0006-support-for-nightly-builds-at-http-my.cdash.org-inde.patch
Rex Dieter 29094f
Patch7: 0007-rename-AutomocNightly.cmake-to-Automoc4Nightly-to-ma.patch
Rex Dieter 29094f
Patch8: 0008-chaneg-nightly-time.patch
Rex Dieter 29094f
Patch9: 0009-remove-the-warnings-again.patch
Rex Dieter 29094f
Patch10: 0010-add-some-comments.patch
Rex Dieter 29094f
Patch11: 0011-adapt-this-to-the-new-enhanced-KDECTestNightly.cmake.patch
Rex Dieter 29094f
Patch12: 0012-support-installing-in-the-nightly-build.patch
Rex Dieter 29094f
Patch13: 0013-add-documentation.patch
Rex Dieter 29094f
Patch14: 0014-first-attempt-at-cpack-ing-a-KDE-package-works-on-OS.patch
Rex Dieter 29094f
Patch15: 0015-put-the-apple-specific-stuff-in-here.patch
Rex Dieter 29094f
Patch16: 0016-move-the-cpack-bits-into-a-separate-cmake-file.patch
Rex Dieter 29094f
Patch17: 0017-Compile-and-link-on-Mac.patch
Rex Dieter 29094f
Patch18: 0018-Fix-framework-detection-on-Mac-where-Qt-is-installed.patch
Rex Dieter 29094f
Patch19: 0019-kdesupport-automoc-krazy2-fixes.patch
Rex Dieter 29094f
Patch20: 0020-Hack-the-hack.patch
Rex Dieter 29094f
Patch21: 0021-fix-stupid-typo.patch
Rex Dieter 29094f
Patch22: 0022-CMake-2.6.4-is-required-because-older-versions-don-t.patch
Rex Dieter 29094f
Patch23: 0023-Reverting-r1140777-as-causing-some-nasty-cmake-funky.patch
Rex Dieter 29094f
Patch24: 0024-add-cmake_policy-PUSH-POP-to-save-and-restore-the-or.patch
Rex Dieter 29094f
Patch25: 0025-allow-duplicate-target-names-also-in-the-automoc-mac.patch
Rex Dieter 29094f
Patch26: 0026-Fix-cmake_policy-call.patch
Rex Dieter 29094f
Patch27: 0027-add-some-changes-to-build-automoc-statically.patch
Rex Dieter 29094f
Patch28: 0028-AutoMoc-lazyInit-expects-the-app-to-get-6-parameter-.patch
Rex Dieter 29094f
Patch29: 0029-Fix-missing-include-dirs-current-source-and-build-di.patch
Rex Dieter 29094f
Patch30: 0030-Don-t-attempt-to-read-the-DEFINITIONS-property.patch
Rex Dieter 29094f
Patch31: 0031-Don-t-attempt-to-add-dependencies-which-do-not-exist.patch
Rex Dieter 29094f
Patch32: 0032-set-cmake_min_req-to-enable-newer-policies.patch
Rex Dieter 29094f
Patch33: 0033-cmake-2.8.9-sets-CMP0003-to-NEW-clean-up.patch
Rex Dieter 29094f
Rex Dieter c7f345
Provides: automoc4 = %{beta}
Rex Dieter c7f345
Rex Dieter 29094f
Requires:       cmake >= 2.8.9
Rex Dieter 29094f
BuildRequires:  cmake >= 2.8.9
Lorenzo Villani 1686be
BuildRequires:  qt4-devel
Lorenzo Villani 1686be
BuildRequires:  kde-filesystem
Lorenzo Villani a555ed
Lorenzo Villani a555ed
%description
Lorenzo Villani 1686be
This package contains the automoc4 binary which is used to run moc on the
Lorenzo Villani 1686be
right source files in a Qt 4 or KDE 4 application.
Lorenzo Villani 1686be
Moc is the meta object compiler which is a widely used tool with Qt and
Lorenzo Villani 1686be
creates standard C++ files to provide syntactic sugar of the signal/slots
Lorenzo Villani 1686be
mechanism.
Lorenzo Villani a555ed
Lorenzo Villani a555ed
Lorenzo Villani a555ed
%prep
Rex Dieter 29094f
%autosetup -p1 -n automoc4-%{beta}
Lorenzo Villani a555ed
Lorenzo Villani a555ed
Lorenzo Villani a555ed
%build
Rex Dieter 29094f
mkdir %{_target_platform}
Lorenzo Villani a555ed
pushd %{_target_platform}
Lorenzo Villani a555ed
%{cmake_kde4} ..
Lorenzo Villani a555ed
popd
Lorenzo Villani a555ed
Rex Dieter b24997
make %{?_smp_mflags} -C %{_target_platform}
Lorenzo Villani a555ed
Lorenzo Villani a555ed
Lorenzo Villani a555ed
%install
Lorenzo Villani a555ed
rm -rf %{buildroot}
Lorenzo Villani a555ed
make install DESTDIR=%{buildroot} -C %{_target_platform}
Lorenzo Villani a555ed
Lorenzo Villani a555ed
Lorenzo Villani a555ed
Lorenzo Villani a555ed
%files
Lorenzo Villani a555ed
%defattr(-,root,root,-)
Lorenzo Villani a555ed
%{_bindir}/automoc4
Rex Dieter 870654
%{_kde4_libdir}/automoc4/
Lorenzo Villani a555ed
Lorenzo Villani a555ed
Lorenzo Villani a555ed
%changelog
Fedora Release Engineering 0a1499
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-0.30.rc3
Fedora Release Engineering 0a1499
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Fedora Release Engineering 0a1499
Fedora Release Engineering f90a71
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-0.29.rc3
Fedora Release Engineering f90a71
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
Fedora Release Engineering f90a71
Fedora Release Engineering afa45c
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-0.28.rc3
Fedora Release Engineering afa45c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
Fedora Release Engineering afa45c
Fedora Release Engineering 4f2113
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-0.27.rc3
Fedora Release Engineering 4f2113
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
Fedora Release Engineering 4f2113
Rex Dieter c28c52
* Wed Nov 30 2016 Rex Dieter <rdieter@fedoraproject.org> - 1.0-0.26.fc3
Rex Dieter c28c52
- rebuild
Rex Dieter c28c52
Dennis Gilmore 9457fd
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-0.25.rc3
Dennis Gilmore 9457fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
Dennis Gilmore 9457fd
Rex Dieter 29094f
* Tue Sep 01 2015 Rex Dieter <rdieter@fedoraproject.org> 1.0-0.24.rc3
Rex Dieter 29094f
- pull in latest upstream fixes
Rex Dieter 29094f
Dennis Gilmore 324c87
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.23.rc3
Dennis Gilmore 324c87
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
Dennis Gilmore 324c87
Kalev Lember 09d020
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 1.0-0.22.rc3
Kalev Lember 09d020
- Rebuilt for GCC 5 C++11 ABI change
Kalev Lember 09d020
Peter Robinson b78a88
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.21.rc3
Peter Robinson b78a88
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
Peter Robinson b78a88
Dennis Gilmore 67c4e1
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.20.rc3
Dennis Gilmore 67c4e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
Dennis Gilmore 67c4e1
Dennis Gilmore b2a2cf
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.19.rc3
Dennis Gilmore b2a2cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
Dennis Gilmore b2a2cf
Dennis Gilmore 09f157
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.18.rc3
Dennis Gilmore 09f157
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
Dennis Gilmore 09f157
Dennis Gilmore 80bdd6
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.17.rc3
Dennis Gilmore 80bdd6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
Dennis Gilmore 80bdd6
Dennis Gilmore 343fd8
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.16.rc3
Dennis Gilmore 343fd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
Dennis Gilmore 343fd8
Dennis Gilmore 0ede75
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.15.rc3
Dennis Gilmore 0ede75
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
Dennis Gilmore 0ede75
Rex Dieter 27795b
* Sun Feb 14 2010 Rex Dieter 
Rex Dieter 27795b
- rebuild
Rex Dieter 27795b
Jesse Keating ab6e5e
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.13.rc3
Jesse Keating ab6e5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
Jesse Keating ab6e5e
Jesse Keating 548326
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.12.rc3
Jesse Keating 548326
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
Jesse Keating 548326
Rex Dieter 9428c3
* Thu Jan 22 2009 Rex Dieter <rdieter@fedoraproject.org> 1.0-0.11.rc3
Rex Dieter 9428c3
- automoc4-0.9.88 (1.0-rc3)
Rex Dieter 9428c3
Lorenzo Villani 1686be
* Sat Nov 22 2008 Lorenzo Villani <lvillani@binaryhelix.net> - 1.0-0.10.rc2
Lorenzo Villani 1686be
- fix package summary and descriptions (as requested by Richard Hughes)
Lorenzo Villani 1686be
- match cmake minimum required version with the contents of CMakeLists.txt
Lorenzo Villani 1686be
  (paranoid fix)
Lorenzo Villani 1686be
Lorenzo Villani c147c1
* Thu Sep  4 2008 Lorenzo Villani <lvillani@binaryhelix.net> - 1.0-0.9.rc2
Lorenzo Villani c147c1
- automoc4-0.9.87 (1.0-rc2)
Lorenzo Villani c147c1
Rex Dieter a876fe
* Wed Jul 23 2008 Rex Dieter <rdieter@fedoraproject.org> 1.0-0.8.rc1
Rex Dieter a876fe
- automoc4-0.9.84 (1.0-rc1)
Rex Dieter a876fe
Rex Dieter fa62f7
* Mon Jun 30 2008 Rex Dieter <rdieter@fedoraproject.org> 1.0-0.7.beta2
Rex Dieter a876fe
- automoc4-0.9.83 (1.0-beta2)
Rex Dieter b24997
- drop lib64 patch
Rex Dieter c7f345
Lorenzo Villani 2e491d
* Thu Jun 10 2008 Lorenzo Villani <lvillani@binaryhelix.net> - 1.0-0.5.20080527svn811390
Lorenzo Villani 614191
- Leave automoc4.files.in in _libdir
Lorenzo Villani 614191
- Same applies to Automoc4Config.cmake
Lorenzo Villani 614191
Lorenzo Villani a555ed
* Thu May 29 2008 Lorenzo Villani <lvillani@binaryhelix.net> - 1.0-0.3.20080527svn811390
Lorenzo Villani a555ed
- Added 'cmake' to Requires
Lorenzo Villani a555ed
Lorenzo Villani a555ed
* Wed May 28 2008 Lorenzo Villani <lvillani@binaryhelix.net> - 1.0-0.2.20080527svn811390
Lorenzo Villani a555ed
- Patched to make it build on other systems than i386 (thanks to Rex Dieter)
Lorenzo Villani a555ed
Lorenzo Villani a555ed
* Tue May 27 2008 Lorenzo Villani <lvillani@binaryhelix.net> - 1.0-0.1.20080527svn811390
Lorenzo Villani a555ed
- Initial release