forked from bevhost/phplib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phplib.spec
69 lines (53 loc) · 1.59 KB
/
phplib.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
Summary: php library
Name: phplib
Version: 1.0
Release: 13
License: GNU Library or Lesser General Public License (LGPL)
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-root
Requires: php-pdo
Requires: php-mbstring
Group: System Environment/Daemons
Source: https://github.com/bevhost/%{name}/archive/%{version}.tar.gz
Packager: David Beveridge <[email protected]>
%description
A library that provides session managent, authentication, permission
control, tables, forms, form elements, templating and sql query builder.
Compatible with a wide range of databases including MySQL, ODBC, Oracle,
Postgres, MSSQL, Sybase, SQLite, PDO etc.
%prep
%setup -q
%build
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/share/phplib/local
mkdir -p $RPM_BUILD_ROOT/usr/share/phplib/examples
install -m 750 setup $RPM_BUILD_ROOT/usr/share/phplib/
install -m 644 setup.py $RPM_BUILD_ROOT/usr/share/phplib/
install -m 644 README $RPM_BUILD_ROOT/usr/share/phplib/
install -m 644 inc/* $RPM_BUILD_ROOT/usr/share/phplib/
install -m 644 examples/* $RPM_BUILD_ROOT/usr/share/phplib/examples/
cp -a local $RPM_BUILD_ROOT/usr/share/phplib/
%post
%clean
rm -rf $RPM_BUILD_ROOT
%files
/usr/share/phplib/*
%changelog
* Sat Jul 04 2020 dave
- Change source to github
* Mon Apr 28 2014 marado
Added php dependencies
- version 0.9
* Sat Jul 07 2012 dave
- version 0.8
* Fri May 18 2012 dave
- version 0.7
* Mon Jun 28 2010 dave
- version 0.6
* Wed Feb 06 2010 dave
- version 0.5
* Sat Jan 16 2010 David Beveridge <[email protected]>
- version 0.4
* Mon Jun 01 2009 David Beveridge <[email protected]>
- initial build