This repository has been archived by the owner on Jan 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathfDOMDocument.spec
62 lines (50 loc) · 2.46 KB
/
fDOMDocument.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
%define _pearDir /usr/share/pear/
%define _sourcedir src/
Summary: fDOMDocument - An Extension to PHP's standard DOM to add various convenience methods and exceptions by default
Name: fDOMDocument
Version: 1.1.0
Release: 1
Group: System Environment/Libraries
License: Arne Blankerts
Vendor: Arne Blankerts
URL: https://github.com/theseer/
#Source:
Provides: fDOMDocument-%{version}%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: php-common, php-dom
%description
fDOMDocument - An Extension to PHP's standard DOM to add various convenience methods and exceptions by default
%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
install -m 755 -d $RPM_BUILD_ROOT%{_pearDir}TheSeer
install -m 755 -d $RPM_BUILD_ROOT%{_pearDir}TheSeer/fDOMDocument
install -m 755 -d $RPM_BUILD_ROOT%{_pearDir}TheSeer/fDOMDocument/fDOMFilter
cp %{_sourcedir}fDOMDocument.php $RPM_BUILD_ROOT%{_pearDir}TheSeer/fDOMDocument/fDOMDocument.php
cp %{_sourcedir}fDOMDocumentFragment.php $RPM_BUILD_ROOT%{_pearDir}TheSeer/fDOMDocument/fDOMDocumentFragment.php
cp %{_sourcedir}fDOMElement.php $RPM_BUILD_ROOT%{_pearDir}TheSeer/fDOMDocument/fDOMElement.php
cp %{_sourcedir}fDOMException.php $RPM_BUILD_ROOT%{_pearDir}TheSeer/fDOMDocument/fDOMException.php
cp %{_sourcedir}fDOMFilter.php $RPM_BUILD_ROOT%{_pearDir}TheSeer/fDOMDocument/fDOMFilter.php
cp %{_sourcedir}fDOMNode.php $RPM_BUILD_ROOT%{_pearDir}TheSeer/fDOMDocument/fDOMNode.php
cp %{_sourcedir}fDOMXPath.php $RPM_BUILD_ROOT%{_pearDir}TheSeer/fDOMDocument/fDOMXPath.php
cp %{_sourcedir}fDOMFilter/xhtml.php $RPM_BUILD_ROOT%{_pearDir}TheSeer/fDOMDocument/fDOMFilter/xhtml.php
phpab -o $RPM_BUILD_ROOT%{_pearDir}TheSeer/fDOMDocument/autoload.php TheSeer/fDOMDocument
%post
%files
%defattr(-,root,root)
%dir %{_pearDir}TheSeer/fDOMDocument
%dir %{_pearDir}TheSeer/fDOMDocument/fDOMFilter
%{_pearDir}TheSeer/fDOMDocument/*
%{_pearDir}TheSeer/fDOMDocument/fDOMFilter/*
%{_pearDir}TheSeer/fDOMDocument/autoload.php
%{_pearDir}TheSeer/fDOMDocument/fDOMDocument.php
%{_pearDir}TheSeer/fDOMDocument/fDOMDocumentFragment.php
%{_pearDir}TheSeer/fDOMDocument/fDOMElement.php
%{_pearDir}TheSeer/fDOMDocument/fDOMException.php
%{_pearDir}TheSeer/fDOMDocument/fDOMFilter.php
%{_pearDir}TheSeer/fDOMDocument/fDOMNode.php
%{_pearDir}TheSeer/fDOMDocument/fDOMXPath.php
%{_pearDir}TheSeer/fDOMDocument/fDOMFilter/xhtml.php
%changelog
* Tue Jul 04 2011 Maik 'M4ikT' Thieme <[email protected]> 1.1.0
- Initial package release