Skip to content

Instantly share code, notes, and snippets.

@renepardon
Created August 11, 2011 14:19
Show Gist options
  • Save renepardon/1139761 to your computer and use it in GitHub Desktop.
Save renepardon/1139761 to your computer and use it in GitHub Desktop.
Experiencing with .spec files for .rpm building
%if 0%{?rhel} || 0%{?centos_version}
# RedHat | CentOS
BuildRequires: php-devel >= 5.2
Requires: php5 >= 5.2
%else
%if 0%{?fedora}
# Fedora
BuildRequires: php5-dev >= 5.2
Requires: php5 >= 5.2
%endif
%else
# SUSE
BuildRequires: php5-devel >= 5.2
Requires: php5 >= 5.2
%endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment