]> git.pld-linux.org Git - packages/Eyescale-CMake.git/commitdiff
- common for Eyescale project to avoid patching each one for cmake 3.1 auto/th/Eyescale-CMake-0-0.20141214.1
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 20 Dec 2014 18:22:36 +0000 (19:22 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 20 Dec 2014 18:22:36 +0000 (19:22 +0100)
- added cmake patch needed for compatibility with cmake 3.1

Eyescale-CMake.spec [new file with mode: 0644]
Eyescale-cmake.patch [new file with mode: 0644]

diff --git a/Eyescale-CMake.spec b/Eyescale-CMake.spec
new file mode 100644 (file)
index 0000000..b0d1356
--- /dev/null
@@ -0,0 +1,46 @@
+Summary:       CMake common macros for Eyescale projects
+Summary(pl.UTF-8):     Wspólne makra CMake dla projektów Eyescale
+Name:          Eyescale-CMake
+Version:       0
+%define        snap    20141214
+%define        gitref  217fc77e74fa316bcaea12dc0df2919c08ce2231
+Release:       0.%{snap}.1
+License:       BSD
+Group:         Development/Tools
+Source0:       https://github.com/Eyescale/CMake/archive/%{gitref}/Eyescale-CMake-%{gitref}.tar.gz
+# Source0-md5: 6a8afcf8f1f96dad07ae9e163a1b6786
+Patch0:                Eyescale-cmake.patch
+URL:           https://github.com/Eyescale/CMake/
+Requires:      cmake >= 2.8
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+CMake common macros for Eyescale projects (like Lunchbox, Collage or
+Equalizer).
+
+%description -l pl.UTF-8
+Wspólne makra CMake dla projektów Eyescale (takich jak Lunchbox,
+Collage czy Equalizer).
+
+%prep
+%setup -q -c
+%{__mv} CMake-* common
+%patch0 -p1
+
+%{__rm} common/.gitignore
+%{__mv} common/{CHANGES.md,LICENSE.txt,README.md} .
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_datadir}
+
+cp -a common $RPM_BUILD_ROOT%{_datadir}/Eyescale-CMake
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES.md LICENSE.txt README.md
+%{_datadir}/Eyescale-CMake
diff --git a/Eyescale-cmake.patch b/Eyescale-cmake.patch
new file mode 100644 (file)
index 0000000..7de42d2
--- /dev/null
@@ -0,0 +1,54 @@
+--- CMake/common/CppcheckTargets.cmake.orig    2014-10-03 15:04:16.000000000 +0200
++++ CMake/common/CppcheckTargets.cmake 2014-12-20 18:25:39.845494349 +0100
+@@ -83,6 +83,7 @@
+     get_target_property(_cppcheck_sources "${_name}" SOURCES)
+     set(_files)
++    if(_cppcheck_sources)
+     foreach(_source ${_cppcheck_sources})
+       get_source_file_property(_cppcheck_lang "${_source}" LANGUAGE)
+       get_source_file_property(_cppcheck_loc "${_source}" LOCATION)
+@@ -90,6 +91,7 @@
+         list(APPEND _files "${_cppcheck_loc}")
+       endif()
+     endforeach()
++    endif()
+     if(NOT _files) # nothing to check
+       return()
+--- CMake/common/CpplintTargets.cmake.orig     2014-10-03 15:04:16.000000000 +0200
++++ CMake/common/CpplintTargets.cmake  2014-12-20 17:39:11.122277997 +0100
+@@ -82,6 +82,7 @@
+     get_target_property(_cpplint_sources "${_name}" SOURCES)
+     set(_files)
+     #set(_exclude_pattern ".*moc_.*\\.cxx|Buildyard/Build")
++    if(_cpplint_sources)
+     foreach(_source ${_cpplint_sources})
+       get_source_file_property(_cpplint_lang "${_source}" LANGUAGE)
+       get_source_file_property(_cpplint_loc "${_source}" LOCATION)
+@@ -89,6 +90,7 @@
+         list(APPEND _files "${_cpplint_loc}")
+       endif("${_cpplint_lang}" MATCHES "CXX" AND NOT ${_cpplint_loc} MATCHES ${add_cpplint_EXCLUDE_PATTERN})
+     endforeach(_source ${_cpplint_sources})
++    endif()
+     if(NOT _files) # nothing to check
+       return()
+--- CMake/common/clangcheckTargets.cmake.orig  2014-10-03 15:04:16.000000000 +0200
++++ CMake/common/clangcheckTargets.cmake       2014-12-20 13:41:11.706210588 +0100
+@@ -40,6 +40,7 @@
+   set(_exclude_pattern ".*moc_.*\\.cxx$") # Qt moc files
+   get_target_property(_clangcheck_sources "${_name}" SOURCES)
++  if(_clangcheck_sources)
+   set(_files)
+   foreach(_source ${_clangcheck_sources})
+     get_source_file_property(_clangcheck_lang "${_source}" LANGUAGE)
+@@ -50,6 +51,7 @@
+       list(APPEND _files "${_clangcheck_loc}")
+     endif()
+   endforeach()
++  endif()
+   if(NOT _files) # nothing to check
+     return()
This page took 0.211344 seconds and 4 git commands to generate.