X-Git-Url: http://git.pld-linux.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Eyescale-CMake.spec;h=ba125cb95a2a78af2255aee2a00467e8854fccc8;hb=HEAD;hp=87745ea8b7475c623b46694cc1547b986f25acf7;hpb=adb2660fef172a672e3b80edb88faf31d4e2e286;p=packages%2FEyescale-CMake.git diff --git a/Eyescale-CMake.spec b/Eyescale-CMake.spec index 87745ea..64f6a43 100644 --- a/Eyescale-CMake.spec +++ b/Eyescale-CMake.spec @@ -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 -Version: 2016.04 -%define gitref 0e519bfbbf74bb30a17c75d5c4c4d0266f5d272b -Release: 1 +Version: 2018.02 +Release: 2 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/ +BuildRequires: rpmbuild(macros) >= 1.745 +BuildRequires: sed >= 4.0 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 -%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 -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