rpms/php-laconica/F-9 import.log, NONE, 1.1 laconica-README.fedora, NONE, 1.1 php-laconica.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Rakesh Pandit rakesh at fedoraproject.org
Sun Oct 5 08:39:52 UTC 2008


Author: rakesh

Update of /cvs/pkgs/rpms/php-laconica/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv10428/F-9

Modified Files:
	.cvsignore sources 
Added Files:
	import.log laconica-README.fedora php-laconica.spec 
Log Message:
import initial package



--- NEW FILE import.log ---
php-laconica-0_5_0-3_fc9:F-9:php-laconica-0.5.0-3.fc9.src.rpm:1223195191


--- NEW FILE laconica-README.fedora ---
First time changes
1. MySql Changes

>mysql -uroot -p -e 'create database <database_name>';
Replace <database_name> with database name.

>mysql -uroot -p -e "grant all privileges on laconica.* to
> laconica at localhost identified by '<password>'";
Replace '<password>' with password

>mysql -uroot -p <database_name> < db/laconica.sql

2. Please don't forget to update config.php and dataobject.ini after
changing database name and password.

a. Changes needed to config.php:
 #can add the paths here
 define('INSTALLDIR', dirname(__FILE__));
 set_include_path(get_include_path() . PATH_SEPARATOR . INSTALLDIR . '/usr/share/php/laconica/');

 The rest of the settings in config.php are somewhat
 self-explanatory. These are the ones I changed for my installation:

 $config['site']['name'] = 'site_name';
 $config['site']['server'] = 'example.com';
 $config['site']['path'] = 'laconica';
 $config['site']['fancy'] = true;
 $config['site']['theme'] = 'stoica';
 $config['site']['email'] = 'email_id at domain.com';
 $config['site']['broughtby'] = '<name>';
 $config['site']['broughtbyurl'] = 'http://example.com/';
 $config['db']['database'] = 'mysql://<database_name>:<password>@localhost/laconica';
 $config['db']['ini_laconica'] = $config['db']['schema_location'].'/path/to/stoica.ini';

b. Changes needed to dataobject.ini:
database = mysql://<database_name>:<password>@localhost/laconica 
schema_location = /var/www/example.com/docs/laconica/classes   # Path to schema 
class_location = /var/www/example.com/docs/laconica/classes    # Path to class
require_prefix = /var/www/example.com/docs/laconica/classes    # prefix


3. Create avatar and file folder in /var/www/example.com/ Change
permissions to avatar folder

sudo chown -R apache avatar
sudo chmod -R ug+rw avatar


--- NEW FILE php-laconica.spec ---
%define realname laconica
%global pkgdir        %{_datadir}/php/%{realname}
%global cfgdir        %{_sysconfdir}/%{realname}

Name:           php-laconica
Version:        0.5.0
Release:        3%{?dist}
Summary:        PHP tool for microblogging      

Group:          Applications/Internet
License:        AGPLv3
URL:            http://laconi.ca/
Source0:        http://laconi.ca/%{realname}-%{version}.tar.gz
Source1:        laconica-README.fedora
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
Requires:       php, php-mysql, mysql, httpd
Requires:       php-pear-Validate, php-xmpphp, php-oauth
Requires:       php-pear-Auth-OpenID, php-pear-DB-DataObject
Requires:       perl-Text-Markdown, php-pear-Mail
Provides:       laconica = %{version}

%description
Laconica is an open source microblogging tool written in PHP. All data
is stored in a MySQL database. Laconica was created as a direct
response of a need to create an open source, distributed alternative
to Twitter. Laconica implements the OpenMicroBlogging standard.

When the package has finished installing, you will need to perform
some additional configuration steps; these are described in README.Fedora

%prep
%setup -qn %{realname}-%{version}
cp %{SOURCE1} ./doc/README.fedora

%build
# Empty build


%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{pkgdir} $RPM_BUILD_ROOT%{cfgdir} 

cp -a -r classes lib actions theme js $RPM_BUILD_ROOT%{pkgdir}
cp -a -r db index.php htaccess.sample dataobject.ini config.php.sample $RPM_BUILD_ROOT%{cfgdir}

rm $RPM_BUILD_ROOT%{pkgdir}/classes/stoica.links.ini

%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc COPYING doc
%{pkgdir}
%dir %{cfgdir}
%config(noreplace) %{cfgdir}/*

%changelog
* Sun Oct 05 2008 Rakesh Pandit <rakesh at fedoraproject.org> 0.5.0-3
 - Peter Lemenkov patch applied, removing %%{docdir}
 - Added Provides: laconica

* Mon Sep 29 2008 Rakesh Pandit <rakesh at fedoraproject.org> 0.5.0-2
 - preserving timestamp with `cp -a`, fixed doc section

* Mon Sep 01 2008 Rakesh Pandit <rakesh at fedoraproject.org> 0.5.0-1
 - updated to 0.5.0

* Mon Jul 14 2008 Rakesh Pandit <rakesh at fedoraproject.org> 0.4.1-1
 - Initial package


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/php-laconica/F-9/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	1 Oct 2008 19:01:30 -0000	1.1
+++ .cvsignore	5 Oct 2008 08:39:22 -0000	1.2
@@ -0,0 +1 @@
+laconica-0.5.0.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/php-laconica/F-9/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	1 Oct 2008 19:01:30 -0000	1.1
+++ sources	5 Oct 2008 08:39:22 -0000	1.2
@@ -0,0 +1 @@
+c427521f2df6ce6c7962e8da19d57850  laconica-0.5.0.tar.gz




More information about the fedora-extras-commits mailing list