Subversion Repositories php-qbpwcf

Rev

Rev 389 | Rev 394 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3 liveuser 1
Name:           php-qbpwcf
2
 
3
#版本號不能含有"-"的符號
391 liveuser 4
Version:        alpha.v20260709
3 liveuser 5
 
6
#發行版次。初始值一般都應該是 1o/o{?dist}。每次新發行同版本軟體的軟體包就遞增一個數字。若上游發行新的版本,就對應修改 Version 標籤,然後把 Release 發行版次重設回 1 
7
Release:        1%{?dist}
8
Summary:        PHP libary for quick build php website based on Fedora Linux(a.k.a. ,Low code platform library).
9
 
10
License:        GPL-3.0-or-later
11
 
12
#專案的網站
13
URL:            https://sourceforge.net/projects/qbpwc
14
 
15
#原始碼檔案的下載位置
16
Source0:        https://lib.qbpwcf.org/%{name}-%{version}.tar.zst 
17
 
18
#編譯該程式需要有哪些套件有安裝
47 liveuser 19
BuildRequires:  php,php-cli,php-json,php-soap,php-xml,uuid,net-tools,php-tcpdf,php-gd,php-process,nmap,httpd,mod_ssl,faad2-libs,libkadm5,php-pear,php-pear-Auth-SASL,php-pear-Net-SMTP,php-pear-Net-Socket,php-pecl-krb5
3 liveuser 20
 
21
#安裝該軟體需要有哪些套件 
243 liveuser 22
Requires:       php,php-cli,php-json,php-soap,php-xml,uuid,net-tools,php-tcpdf,php-gd,php-process,nmap,httpd,mod_ssl,faad2-libs,libkadm5,php-pear,php-pear-Auth-SASL,php-pear-Net-SMTP,php-pear-Net-Socket,php-pecl-krb5,mariadb,mariadb-server,phpMyAdmin,NetworkManager,liberation-mono-fonts
3 liveuser 23
 
355 liveuser 24
#跟處理器架構無關
25
BuildArch:      noarch
26
 
3 liveuser 27
#don't generate debug files
28
%global _enable_debug_package 0
29
%global debug_package %{nil}
30
%global __os_install_post /usr/lib/rpm/brp-compress %{nil}
31
 
32
%description
323 liveuser 33
PHP libary for quick build php not only web-based application on Fedora Linux(a.k.a. ,Low code platform library).
3 liveuser 34
 
35
#prep contains a shell script for preparing the sources for building.
36
#It is often just the single macro autosetup, which, in this case, simply extracts the source.
37
%prep
38
%autosetup
39
 
40
%build
41
%configure
42
 
43
#不需要編譯,所以不用 marco make_build
44
#make_buid
45
 
46
%install
47
 
48
#don't generate debug files
49
export DONT_STRIP=1
50
 
51
#makefile 中的 install 規則,要可以接收 "DESTDIR=" 跟 "INSTALL=" 開頭的參數.
52
%make_install
53
 
54
%files
55
 
358 liveuser 56
#files will place to /usr/lib(64)/
57
/usr/lib/*
58
/usr/lib64/*
113 liveuser 59
 
3 liveuser 60
#files will place to /usr/bin/
61
%{_bindir}/*
62
 
95 liveuser 63
#files will place to /usr/share/
64
%{_datadir}/*
65
 
3 liveuser 66
#file will place to /etc/
67
%{_sysconfdir}/*
68
 
69
#file will place to /var/
70
%{_localstatedir}/*
212 liveuser 71
 
72
#fix permission and owner of qbpwcf home path
216 liveuser 73
%attr(771, qbpwcf, qbpwcf) %{_localstatedir}/qbpwcf/home
74
%attr(771, qbpwcf, qbpwcf) %{_localstatedir}/qbpwcf/home/php
75
%attr(771, qbpwcf, qbpwcf) %{_localstatedir}/qbpwcf/home/php/session
212 liveuser 76
 
381 liveuser 77
%license License
78
%doc README Release_Note
3 liveuser 79
 
80
%changelog
381 liveuser 81
%autochangelog