[packages/php-fpdf] rename to php-fpdf
glen
glen at pld-linux.org
Sun Apr 28 14:50:58 CEST 2013
commit 39d2563eb8fd743ef0fada0d07ffb0ad482b88a6
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Apr 28 15:48:44 2013 +0300
rename to php-fpdf
fpdf.spec => php-fpdf.spec | 29 ++++++++++++-----------------
1 file changed, 12 insertions(+), 17 deletions(-)
---
diff --git a/fpdf.spec b/php-fpdf.spec
similarity index 69%
rename from fpdf.spec
rename to php-fpdf.spec
index ff4e213..fd4465c 100644
--- a/fpdf.spec
+++ b/php-fpdf.spec
@@ -1,26 +1,24 @@
%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: fpdf
+Name: php-fpdf
Version: 1.7
-Release: 2
-Epoch: 1
+Release: 1
License: Freeware
Group: Libraries
-Source0: http://fpdf.org/en/dl.php?v=17&f=tgz#/%{name}%{sver}.tgz
+Source0: http://fpdf.org/en/dl.php?v=17&f=tgz?/fpdf%{sver}.tgz
# Source0-md5: 39b27b785695211ab66a36264b149f2b
# http://www.fpdf.de/downloads/addons/69/
-Source1: %{name}-draw.php
+Source1: fpdf-draw.php
# Source1-md5: cd7711f7b39a0066ac20cb3f535ba973
-Source2: %{name}-verdana.tar.gz
+Source2: fpdf-verdana.tar.gz
# Source2-md5: 101cd6ae9867ade8cbb12973a35e83f8
URL: http://www.fpdf.org/
Requires: php(core)
+Obsoletes: fpdf < 1:1.7-3
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
@@ -33,17 +31,14 @@ tzn. bez użycia biblioteki PDFlib. F z FPDF oznacza "Free": można jej
używać w dowolny sposób i modyfikować w zależności od potrzeb.
%prep
-%setup -q -n %{name}%{sver} -a2
+%setup -q -n fpdf%{sver} -a2
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_phpsharedir}/%{name}
-
-cp -a fpdf.* font $RPM_BUILD_ROOT%{_phpsharedir}/%{name}
-
-install fpdf-verdana/*.* $RPM_BUILD_ROOT%{_phpsharedir}/%{name}/font
-
-install %{SOURCE1} $RPM_BUILD_ROOT%{_phpsharedir}/%{name}/draw.php
+install -d $RPM_BUILD_ROOT%{php_data_dir}/fpdf
+cp -a fpdf.* font $RPM_BUILD_ROOT%{php_data_dir}/fpdf
+cp -p fpdf-verdana/*.* $RPM_BUILD_ROOT%{php_data_dir}/fpdf/font
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{php_data_dir}/fpdf/draw.php
%clean
rm -rf $RPM_BUILD_ROOT
@@ -51,4 +46,4 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc doc tutorial *.htm *.txt
-%{_phpsharedir}/%{name}
+%{php_data_dir}/fpdf
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-fpdf.git/commitdiff/f470b5ecc16f75c30434c54d1f3640b164b7f776
More information about the pld-cvs-commit
mailing list