]> git.pld-linux.org Git - packages/Eyescale-CMake.git/blobdiff - Eyescale-CMake.spec
- macros for __python=python2
[packages/Eyescale-CMake.git] / Eyescale-CMake.spec
index 87745ea8b7475c623b46694cc1547b986f25acf7..64f6a433a650267342cdf865d363110d7f2376f4 100644 (file)
@@ -1,14 +1,17 @@
 Summary:       CMake common macros for Eyescale projects
 Summary(pl.UTF-8):     Wspólne makra CMake dla projektów Eyescale
 Name:          Eyescale-CMake
 Summary:       CMake common macros for Eyescale projects
 Summary(pl.UTF-8):     Wspólne makra CMake dla projektów Eyescale
 Name:          Eyescale-CMake
-Version:       2016.04
-%define        gitref  0e519bfbbf74bb30a17c75d5c4c4d0266f5d272b
-Release:       1
+Version:       2018.02
+Release:       2
 License:       BSD
 Group:         Development/Tools
 License:       BSD
 Group:         Development/Tools
-Source0:       https://github.com/Eyescale/CMake/archive/%{gitref}/Eyescale-CMake-%{gitref}.tar.gz
-# Source0-md5: b121851bcee76d6e99abdacf54a4512c
+#Source0Download: https://github.com/Eyescale/CMake/releases
+Source0:       https://github.com/Eyescale/CMake/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 3c20d5ad6dbbe95ca1119ad36ae5f8e1
+Patch0:                libdir.patch
 URL:           https://github.com/Eyescale/CMake/
 URL:           https://github.com/Eyescale/CMake/
+BuildRequires: rpmbuild(macros) >= 1.745
+BuildRequires: sed >= 4.0
 Requires:      cmake >= 2.8
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Requires:      cmake >= 2.8
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -22,17 +25,18 @@ Wspólne makra CMake dla projektów Eyescale (takich jak Lunchbox,
 Collage czy Equalizer).
 
 %prep
 Collage czy Equalizer).
 
 %prep
-%setup -q -c
-%{__mv} CMake-* common
+%setup -q -n CMake-%{version}
+%patch0 -p1
 
 
-%{__rm} common/.gitignore
-%{__mv} common/{CHANGES.md,LICENSE.txt,README.md} .
+# python2 script (uses e.g. dict iteritems(), itervalues() methods)
+%{__sed} -i -e '1s,/usr/bin/python$,%{__python},' util/cpplint.py
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_datadir}
+install -d $RPM_BUILD_ROOT%{_datadir}/Eyescale-CMake
 
 
-cp -a common $RPM_BUILD_ROOT%{_datadir}/Eyescale-CMake
+cp -a * $RPM_BUILD_ROOT%{_datadir}/Eyescale-CMake
+%{__rm} $RPM_BUILD_ROOT%{_datadir}/Eyescale-CMake/{CHANGES.md,LICENSE.txt,README.md}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.111632 seconds and 4 git commands to generate.