]> git.pld-linux.org Git - packages/php-pear-Text_Wiki.git/commitdiff
- initial import
authorAdam Gołębiowski <adamg@pld-linux.org>
Sat, 6 Dec 2003 22:00:34 +0000 (22:00 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    php-pear-Text_Wiki-path_fix.patch -> 1.1
    php-pear-Text_Wiki.spec -> 1.1

php-pear-Text_Wiki-path_fix.patch [new file with mode: 0644]
php-pear-Text_Wiki.spec [new file with mode: 0644]

diff --git a/php-pear-Text_Wiki-path_fix.patch b/php-pear-Text_Wiki-path_fix.patch
new file mode 100644 (file)
index 0000000..8842a40
--- /dev/null
@@ -0,0 +1,21 @@
+diff -burN Text_Wiki-0.6.orig/Text_Wiki.php Text_Wiki-0.6/Text_Wiki.php
+--- Text_Wiki-0.6.orig/Text_Wiki.php   2003-12-06 18:31:59.000000000 +0100
++++ Text_Wiki-0.6/Text_Wiki.php        2003-12-06 18:39:56.000000000 +0100
+@@ -18,7 +18,7 @@
+ //
+ // $Id$
+-require_once 'Text_Wiki/Rule.php';
++require_once 'Text/Wiki/Rule.php';
+ /**
+@@ -291,7 +291,7 @@
+     function Text_Wiki($options = array())
+     {
+         // set the default path for 
+-        $this->_default_path = dirname(__FILE__) . '/Text_Wiki/rules/';
++        $this->_default_path = dirname(__FILE__) . '/Wiki/rules/';
+         
+         if (isset($options) && is_array($options)) {
+             foreach ($options as $key => $val) {
diff --git a/php-pear-Text_Wiki.spec b/php-pear-Text_Wiki.spec
new file mode 100644 (file)
index 0000000..58855bf
--- /dev/null
@@ -0,0 +1,61 @@
+# ToDo:
+# - pl-ize me (summary/description)
+# - en summary shouldn't be the same as description
+%include       /usr/lib/rpm/macros.php
+%define         _class          Text
+%define         _subclass      Wiki
+%define                _status         alpha
+%define                _pearname       %{_class}_%{_subclass}
+
+Summary:       %{_pearname} - Abstracts parsing and rendering rules for Wiki markup in structured plain text.
+#Summary(pl):  %{_pearname} -
+Name:          php-pear-%{_pearname}
+Version:       0.6
+Release:       1
+License:       PHP 2.02
+Group:         Development/Languages/PHP
+Source0:       http://pear.php.net/get/%{_pearname}-%{version}.tgz
+# Source0-md5: 2a0b6e7dd0568e0bc9246ebefe8f48e8
+Patch0:                %{name}-path_fix.patch
+URL:           http://pear.php.net/package/Class_Subclass/
+BuildRequires: rpm-php-pearprov >= 4.0.2-98
+Requires:      php-pear
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Abstracts parsing and rendering rules for Wiki markup in structured
+plain text.
+
+This class has in PEAR status: %{_status}.
+
+#%description -l pl
+#
+#
+#Ta klasa ma w PEAR status: %{_status}.
+
+%prep
+%setup -q -c
+#cd %{_pearname}-%{version}
+%patch0 -p0
+
+# it looks like %%doc gets confused when it has to process file containing
+# space in its name
+mv %{_pearname}-%{version}/%{_pearname}/docs/{"free links.wiki.txt",free_links.wiki.txt}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/%{_subclass}/rules
+
+install %{_pearname}-%{version}/Text_Wiki.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/Wiki.php
+install %{_pearname}-%{version}/%{_pearname}/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/%{_subclass}/Wiki.php
+install %{_pearname}-%{version}/%{_pearname}/rules/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/%{_subclass}/rules
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc %{_pearname}-%{version}/%{_pearname}/{docs,tests}
+%{php_pear_dir}/%{_class}/*.php
+%{php_pear_dir}/%{_class}/%{_subclass}
This page took 0.034843 seconds and 4 git commands to generate.