[packages/php-ufpdf] rename to php-ufpdf
glen
glen at pld-linux.org
Sun Apr 28 15:09:08 CEST 2013
commit 9d559d59903d501fade4da4450336c0522a301ef
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Apr 28 16:06:08 2013 +0300
rename to php-ufpdf
ufpdf.spec => php-ufpdf.spec | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/ufpdf.spec b/php-ufpdf.spec
similarity index 75%
rename from ufpdf.spec
rename to php-ufpdf.spec
index ea8279d..1ab6e7c 100644
--- a/ufpdf.spec
+++ b/php-ufpdf.spec
@@ -1,25 +1,25 @@
%define sver %(echo %{version} | tr -d .)
Summary: PHP class which allows to generate PDF files with pure PHP
Summary(pl.UTF-8): Klasa PHP pozwalająca na generowanie plikow PDF w czystym PHP
-Name: ufpdf
+Name: php-ufpdf
Version: 0.1
Release: 1
License: GPL
Group: Libraries
-Source0: http://www.acko.net/files/%{name}.zip
+Source0: http://www.acko.net/files/ufpdf.zip
# Source0-md5: 1ae3792810334c15dcec3773b4d5bf54
# http://www.fpdf.de/downloads/addons/69/
-Source1: %{name}-draw.php
+Source1: ufpdf-draw.php
# Source1-md5: c8ff16105021bb1edc2023a3c9e4be19
URL: http://acko.net/node/56
+BuildRequires: sed >= 4.0
BuildRequires: unzip
-Requires: fpdf
-Requires: php-common
+Requires: php(core)
+Requires: php-fpdf
+Obsoletes: ufpdf < 0.1-2
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _phpsharedir %{_datadir}/php
-
%description
FPDF is a PHP class which allows to generate PDF files with pure PHP,
that is to say without using the PDFlib library. F from FPDF stands
@@ -39,13 +39,13 @@ wejściowych w UTF-8.
%prep
%setup -q -n %{name}
+sed -i -e 's#fpdf.php#fpdf/fpdf.php#g' ufpdf.php
+
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_phpsharedir}/%{name}
-
-sed -e 's#fpdf.php#fpdf/fpdf.php#g' ufpdf.php > $RPM_BUILD_ROOT%{_phpsharedir}/%{name}/ufpdf.php
-
-install %{SOURCE1} $RPM_BUILD_ROOT%{_phpsharedir}/%{name}/udraw.php
+install -d $RPM_BUILD_ROOT%{php_data_dir}/ufpdf
+cp -p ufpdf.php $RPM_BUILD_ROOT%{php_data_dir}/ufpdf/ufpdf.php
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{php_data_dir}/ufpdf/udraw.php
%clean
rm -rf $RPM_BUILD_ROOT
@@ -53,4 +53,4 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc README.txt ufpdf-test.php tools/*.php
-%{_phpsharedir}/%{name}
+%{php_data_dir}/ufpdf
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-ufpdf.git/commitdiff/6963007ba8aff0f0b3136d0ec7ce7f8e77685a46
More information about the pld-cvs-commit
mailing list