From e3e44ce312e701f18228c157848f782867cb97e4 Mon Sep 17 00:00:00 2001 From: Dan HorĂ¡k Date: Dec 25 2015 15:54:05 +0000 Subject: use %global instead of %define --- diff --git a/codeblocks.spec b/codeblocks.spec index 7d68621..a0c47b3 100644 --- a/codeblocks.spec +++ b/codeblocks.spec @@ -1,8 +1,8 @@ -#define svndate 20131225 -%define svnrev 9501 -%define snapshot 0%{?svndate} +#global svndate 20131225 +%global svnrev 9501 +%global snapshot 0%{?svndate} %if %{snapshot} -%define svnrelease .%{svndate}svn%{svnrev} +%global svnrelease .%{svndate}svn%{svnrev} %endif Name: codeblocks @@ -56,9 +56,9 @@ Patch13: codeblocks-wxtreeitemid.patch # backported change for astyle 2.05 (F >= 22) Patch14: codeblocks-13.12-astyle-2.05.patch -%define pkgdatadir %{_datadir}/%{name} -%define pkglibdir %{_libdir}/%{name} -%define plugindir %{pkglibdir}/plugins +%global pkgdatadir %{_datadir}/%{name} +%global pkglibdir %{_libdir}/%{name} +%global plugindir %{pkglibdir}/plugins %if 0%{?rhel} && 0%{?rhel} <= 6 %filter_provides_in %{plugindir}