-
Notifications
You must be signed in to change notification settings - Fork 8
/
slc.spec
48 lines (38 loc) · 1.16 KB
/
slc.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
%define name slc
%define install_dir /var/www/phpwebsite/mod/slc
Summary: Student Legal Clinic Tracker
Name: %{name}
Version: %{version}
Release: %{release}
License: GPL
Group: Development/PHP
URL: http://phpwebsite.appstate.edu
Source: %{name}-%{version}-%{release}.tar.bz2
Requires: php >= 5.0.0, php-gd >= 5.0.0, phpwebsite
Prefix: /var/www/phpwebsite
BuildArch: noarch
%description
Student Legal Clinic Tracker
%prep
%setup -n %{name}-%{version}-%{release}
%post
/usr/bin/curl -L -k http://127.0.0.1/apc/clear
%install
mkdir -p "$RPM_BUILD_ROOT%{install_dir}"
cp -r * "$RPM_BUILD_ROOT%{install_dir}"
# Default Deletes for clean RPM
rm -Rf "$RPM_BUILD_ROOT%{install_dir}/docs/"
rm -Rf "$RPM_BUILD_ROOT%{install_dir}/.hg/"
rm -f "$RPM_BUILD_ROOT%{install_dir}/.hgtags"
rm -f "$RPM_BUILD_ROOT%{install_dir}/build.xml"
rm -f "$RPM_BUILD_ROOT%{install_dir}/slc.spec"
rm -f "$RPM_BUILD_ROOT%{install_dir}/phpdox.xml"
rm -f "$RPM_BUILD_ROOT%{install_dir}/cache.properties"
%clean
rm -rf "$RPM_BUILD_ROOT%{install_dir}"
%files
%defattr(-,root,root)
%{install_dir}
%changelog
* Mon Jun 18 2012 Jeff Tickle <[email protected]>
- Initial RPM for SLC