Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:worldcitizen
FreeSMS
FreeSMS.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File FreeSMS.spec of Package FreeSMS
# # spec file for package FreeSMS # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: FreeSMS %if 0%{?suse_version} BuildRequires: apache2-devel BuildRequires: unzip Requires: ImageMagick Requires: apache2 Requires: apache2-mod_php5 Requires: mysql Requires: php >= 4.2.0 Requires: php5-mysql %endif %if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version} BuildRequires: httpd-devel BuildRequires: unzip Requires: ImageMagick Requires: httpd Requires: httpd-mod_php5 Requires: mysql Requires: php >= 4.2.0 Requires: php5-mysql %endif %if 0%{?mandriva_version} BuildRequires: apache-devel BuildRequires: unzip Requires: apache-base Requires: apache-conf Requires: apache-mod_php Requires: imagemagick Requires: mysql Requires: php >= 4.2.0 Requires: php5-mysql %endif Version: 2.1.2 Release: 0.0 # %if 0%{?suse_version} %define apxs /usr/sbin/apxs2 %else %define apxs /usr/sbin/apxs %endif Summary: Web application for managing an educational facility License: PHP-3.01 Group: Productivity/Networking/Web/Utilities %define apache_libexecdir %(%{apxs} -q LIBEXECDIR) %define apache_sysconfdir %(%{apxs} -q SYSCONFDIR) # %define FreeSMS_src_dir FreeSMS %define FreeSMS_dir /srv/www/FreeSMS Url: http://sourceforge.net/projects/freesms/ Source0: %{name}_2_1_2.zip Source1: %{name}.conf.default Source2: %{name}.conf.vhost Source3: %{name}.conf.nonsuse BuildRoot: %{_tmppath}/%{name}-%{version}-build # BuildArch: noarch %description FreeSMS (Free Student Management System) is a Web application for managing an educational facility. It manages teachers and students and provides marketing, registration, course management, attendance, and a student evaluation system, and manages courses within a class environment %prep %setup -q -n %{FreeSMS_src_dir} %build %install %if 0%{?suse_version} mkdir -p %{buildroot}/%{apache_sysconfdir}/conf.d cp -avL %{SOURCE1} %{buildroot}/%{apache_sysconfdir}/conf.d/FreeSMS.conf mkdir -p %{buildroot}/%{apache_sysconfdir}/vhosts.d/conf.d cp -avL %{SOURCE2} %{buildroot}/%{apache_sysconfdir}/vhosts.d/conf.d/FreeSMS.conf %else mkdir -p %{buildroot}/%{apache_sysconfdir}/../conf.d cp -avL %{SOURCE3} %{buildroot}/%{apache_sysconfdir}/../conf.d/FreeSMS.conf %endif mkdir -p %{buildroot}/%{FreeSMS_dir} cp -avL * %{buildroot}/%{FreeSMS_dir}/ # find %{buildroot}%{FreeSMS_dir} -name "* *"|while read file; do echo "$file"; mv "$file" "`echo "$file"| awk ' BEGIN {OFS="_"} $1=$1 '`"; done # find %{buildroot}%{FreeSMS_dir} -type d | \ sed "s@%{buildroot}@%dir @" > files.FreeSMS find %{buildroot}%{FreeSMS_dir} -type f | \ sed "s@%{buildroot}@@;/\/templates\/\|\.conf$/s@^@%config (noreplace) @" >> files.FreeSMS cat files.FreeSMS %files -f files.FreeSMS %defattr(-,root,root) %if 0%{?suse_version} %dir %{apache_sysconfdir}/conf.d %config (noreplace) %{apache_sysconfdir}/conf.d/FreeSMS.conf %dir %{apache_sysconfdir}/vhosts.d/conf.d %config (noreplace) %{apache_sysconfdir}/vhosts.d/conf.d/FreeSMS.conf %else %dir %{apache_sysconfdir}/../conf.d %config (noreplace) %{apache_sysconfdir}/../conf.d/FreeSMS.conf %endif %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor