SPECS: template-php-package.spec (NEW) - based on pear template
glen
glen at pld-linux.org
Tue Jun 17 07:22:55 CEST 2008
Author: glen Date: Tue Jun 17 05:22:55 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- based on pear template
---- Files affected:
SPECS:
template-php-package.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/template-php-package.spec
diff -u /dev/null SPECS/template-php-package.spec:1.1
--- /dev/null Tue Jun 17 07:22:55 2008
+++ SPECS/template-php-package.spec Tue Jun 17 07:22:50 2008
@@ -0,0 +1,79 @@
+# $Revision$, $Date$
+Summary: -
+Name: template
+Version: _
+Release: 0.1
+License: - (enter GPL/GPL v2/GPL v3/LGPL/BSD/BSD-like/other license name here)
+Group: Development/Languages/PHP
+Source0: %{name}-%{version}.tar.gz
+# Source0-md5: -
+URL: -
+BuildRequires: rpmbuild(macros) >= 1.461
+Requires: php-common
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _appdir %{php_data_dir}/%{name}
+
+# _phpdocdir / php_docdir / phpdoc_dir ?
+%define _phpdocdir %{_docdir}/phpdoc
+
+%description
+...
+
+%package tests
+Summary: Tests for ...
+Summary(pl.UTF-8): Testy dla ...
+Group: Development/Languages/PHP
+Requires: %{name} = %{version}-%{release}
+AutoProv: no
+AutoReq: no
+
+%description tests
+Tests for ...
+
+%description tests -l pl.UTF-8
+Testy dla ...
+
+%package phpdoc
+Summary: Online manual for %{name}
+Summary(pl.UTF-8): Dokumentacja online do %{name}
+Group: Documentation
+
+%description phpdoc
+Documentation for %{name}.
+
+%description phpdoc -l pl.UTF-8
+Dokumentacja do %{name}.
+
+%prep
+%setup -q
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_appdir}
+
+install -d $RPM_BUILD_ROOT%{_phpdocdir}/%{name}
+cp -a doc/* $RPM_BUILD_ROOT%{_phpdocdir}/%{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+
+%files tests
+%defattr(644,root,root,755)
+
+%files phpdoc
+%defattr(644,root,root,755)
+%{_phpdocdir}/%{name}
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2008/06/17 05:22:50 glen
+- based on pear template
================================================================
More information about the pld-cvs-commit
mailing list