summaryrefslogtreecommitdiffstats
path: root/copr
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2016-04-14 16:00:14 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2016-04-14 16:00:14 +0200
commit36e9937f3a1bddd8bdd54f7f8abe393763f3b426 (patch)
tree80a7063660e2111e9624a440d6fb164d6ede7fb2 /copr
parent66acb1b1055aceba187a387b50f78885c8d11208 (diff)
Enable Centos 5 build in Fedora Copr v2
Diffstat (limited to 'copr')
-rw-r--r--copr/testdisk.spec12
1 files changed, 6 insertions, 6 deletions
diff --git a/copr/testdisk.spec b/copr/testdisk.spec
index 487401a..d994d5a 100644
--- a/copr/testdisk.spec
+++ b/copr/testdisk.spec
@@ -17,7 +17,7 @@ BuildRequires: libjpeg-devel
BuildRequires: ncurses-devel >= 5.2
BuildRequires: ntfs-3g-devel
BuildRequires: zlib-devel
-%if "%{el5}" != "1"
+%if 0%{?rhel} != 5
BuildRequires: libuuid-devel
BuildRequires: qt5-linguist
BuildRequires: qt5-qtbase-devel
@@ -55,7 +55,7 @@ Linux Raid, Linux Swap, LVM, LVM2, NSS, ReiserFS, UFS, XFS.
PhotoRec is a signature based file recovery utility. It handles more than
440 file formats including JPG, MSOffice, OpenOffice documents.
-%if "%{el5}" != "1"
+%if 0%{?rhel} != 5
%package -n qphotorec
Summary: Signature based file carver. Recover lost files
Group: Applications/System
@@ -72,7 +72,7 @@ OpenOffice documents.
%build
autoreconf -vif -I config -W all
-%if "%{el5}" == "1"
+%if 0%{?rhel} == 5
%configure
%else
%configure --docdir=%{_pkgdocdir}
@@ -85,7 +85,7 @@ make DESTDIR="%{buildroot}" install
%clean
rm -rf %{buildroot}
-%if "%{el5}" != "1"
+%if 0%{?rhel} != 5
%check
desktop-file-validate %{buildroot}/%{_datadir}/applications/qphotorec.desktop
@@ -105,7 +105,7 @@ fi
%files
%defattr(644,root,root,755)
-%if "%{el5}" == "1"
+%if 0%{?rhel} == 5
%doc /usr/share/doc/testdisk/AUTHORS
%doc /usr/share/doc/testdisk/ChangeLog
%doc /usr/share/doc/testdisk/NEWS
@@ -127,7 +127,7 @@ fi
%{_mandir}/zh_CN/man8/photorec.8*
%{_mandir}/zh_CN/man8/testdisk.8*
-%if "%{el5}" != "1"
+%if 0%{?rhel} != 5
%files -n qphotorec
%attr(755,root,root) %{_bindir}/qphotorec
%{_mandir}/man8/qphotorec.8*