Skip to content

Instantly share code, notes, and snippets.

@gmambro
Last active October 24, 2015 11:58
Show Gist options
  • Save gmambro/339f9376cb0865651e60 to your computer and use it in GitHub Desktop.
Save gmambro/339f9376cb0865651e60 to your computer and use it in GitHub Desktop.
%define real_name limesurvey
%define limedir %{_var}/www/limesurvey
%define _binaries_in_noarch_packages_terminate_build 0
Name: limesurvey
Version: 2.06.150911
Release: 1%{?dist}
Summary: The limesurvey RPM
Group: System Environment/Base
License: GPLv2+
URL: http://www.limesurvey.org
Source0: limesurvey206plus-build150911.tar.gz
BuildArch: noarch
Requires: httpd, mysql, php >= 5.3
Requires: php-gd, php-mbstring, php-mysql, php-xml, php-gettext
Requires: httpd
%description
Limesurvey is an open source, web-based survey application that is
easy to setup and use.
%prep
%setup -q -n %{real_name}
%build
%install
mkdir -p ${RPM_BUILD_ROOT}%{limedir}
mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/limesurvey
cp -a ./* ${RPM_BUILD_ROOT}%{limedir}
# not needed
%{__rm} -f ${RPM_BUILD_ROOT}%{limedir}/phpci.yml
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-, root, apache, -)
%{limedir}/admin
%{limedir}/application
%{limedir}/docs
%{limedir}/fonts
%{limedir}/framework
%{limedir}/images
%{limedir}/index.php
%{limedir}/installer
%{limedir}/locale
%{limedir}/plugins
%{limedir}/README
%{limedir}/scripts
%{limedir}/styles
%{limedir}/styles-public
%attr(0775,apache,apache) %{limedir}/templates
%{limedir}/themes
%{limedir}/third_party
%attr(0755,apache,apache) %{limedir}/tmp
%attr(0775,apache,apache) %{limedir}/upload
%changelog
* Fri Sep 17 2015 Gabriele Mambrini <g.mambrini@gmail.com>
- updated to 2.06 build150911
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment