| 00d3d70 by ken.sedgwick at 2009-03-14 | 1 | # This version needs to match the tarball and unpacked directory name. |
| 61a08c9 by Zach Copley at 2009-04-04 | 2 | %define LACVER 0.7.3 |
| 00d3d70 by ken.sedgwick at 2009-03-14 | 3 | |
| 83b084e by ken.sedgwick at 2009-03-01 | 4 | BuildRequires: php-pear |
| 5 | BuildRequires: httpd-devel |
|
| 6 | ||
| 3567b9d by Evan Prodromou at 2009-08-26 | 7 | Name: statusnet |
| 00d3d70 by ken.sedgwick at 2009-03-14 | 8 | Version: %{LACVER} |
| 83b084e by ken.sedgwick at 2009-03-01 | 9 | Release: 1%{?dist} |
| 10 | License: GAGPL v3 or later |
|
| 3567b9d by Evan Prodromou at 2009-08-26 | 11 | Source: statusnet-%{version}.tar.gz |
| 83b084e by ken.sedgwick at 2009-03-01 | 12 | Group: Applications/Internet |
| e3a5325 by Evan Prodromou at 2009-08-26 | 13 | Summary: StatusNet, the Open Source microblogging platform |
| 83b084e by ken.sedgwick at 2009-03-01 | 14 | BuildArch: noarch |
| 15 | ||
| 16 | Requires: httpd |
|
| 17 | Requires: php >= 5 |
|
| 18 | Requires: php-pear-Mail-Mime |
|
| 19 | Requires: php-curl |
|
| 20 | Requires: php-mysql |
|
| 21 | Requires: php-mbstring |
|
| 22 | Requires: php-gettext |
|
| 7fa6bb0 by ken.sedgwick at 2009-03-01 | 23 | Requires: php-xml |
| 24 | Requires: php-gd |
|
| 83b084e by ken.sedgwick at 2009-03-01 | 25 | |
| 26 | BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
| 27 | ||
| 28 | %define apache_serverroot %(/usr/sbin/apxs -q DATADIR) |
|
| 29 | %define apache_sysconfdir %(/usr/sbin/apxs -q SYSCONFDIR) |
|
| 30 | %define wwwpath %{apache_serverroot}/%{name} |
|
| 31 | %define confpath %{_sysconfdir}/%{name} |
|
| 32 | ||
| 33 | %description |
|
| e3a5325 by Evan Prodromou at 2009-08-26 | 34 | From the ABOUT file: StatusNet (pronounced "luh-KAWN-ih-kuh") is a Free |
| 83b084e by ken.sedgwick at 2009-03-01 | 35 | and Open Source microblogging platform. It helps people in a |
| 36 | community, company or group to exchange short (140 character) messages |
|
| 37 | over the Web. Users can choose which people to "follow" and receive |
|
| 38 | only their friends' or colleagues' status messages. It provides a |
|
| 39 | similar service to sites like Twitter, Jaiku, and Plurk. |
|
| 40 | ||
| 41 | ||
| 42 | %prep |
|
| 43 | %setup -q |
|
| 44 | ||
| 45 | %build |
|
| 46 | ||
| 47 | ||
| 48 | %install |
|
| 49 | mkdir -p %{buildroot}%{wwwpath} |
|
| 50 | cp -a * %{buildroot}%{wwwpath} |
|
| 51 | ||
| 3567b9d by Evan Prodromou at 2009-08-26 | 52 | mkdir -p %{buildroot}%{_datadir}/statusnet |
| 53 | cp -a db %{buildroot}%{_datadir}/statusnet/db |
|
| 83b084e by ken.sedgwick at 2009-03-01 | 54 | |
| 3567b9d by Evan Prodromou at 2009-08-26 | 55 | mkdir -p %{buildroot}%{_datadir}/statusnet/avatar |
| 00d3d70 by ken.sedgwick at 2009-03-14 | 56 | |
| 83b084e by ken.sedgwick at 2009-03-01 | 57 | mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d |
| 3567b9d by Evan Prodromou at 2009-08-26 | 58 | cat > %{buildroot}%{_sysconfdir}/httpd/conf.d/statusnet.conf <<"EOF" |
| e3a5325 by Evan Prodromou at 2009-08-26 | 59 | Alias /statusnet/ "/var/www/statusnet/" |
| 83b084e by ken.sedgwick at 2009-03-01 | 60 | |
| 3567b9d by Evan Prodromou at 2009-08-26 | 61 | <Directory "/var/www/statusnet"> |
| 83b084e by ken.sedgwick at 2009-03-01 | 62 | Options Indexes FollowSymLinks |
| 63 | AllowOverride All |
|
| 64 | Order allow,deny |
|
| 65 | Allow from all |
|
| 66 | </Directory> |
|
| 67 | EOF |
|
| 68 | ||
| 69 | %clean |
|
| 70 | rm -rf %buildroot |
|
| 71 | ||
| 72 | %files |
|
| 73 | %defattr(-,root,root) |
|
| 74 | %dir %{wwwpath} |
|
| 75 | %{wwwpath}/* |
|
| 3567b9d by Evan Prodromou at 2009-08-26 | 76 | %{_datadir}/statusnet/* |
| 77 | %attr(-,apache,apache) %dir %{_datadir}/statusnet/avatar |
|
| 83b084e by ken.sedgwick at 2009-03-01 | 78 | %doc COPYING README doc-src/* |
| 3567b9d by Evan Prodromou at 2009-08-26 | 79 | %config(noreplace) %{_sysconfdir}/httpd/conf.d/statusnet.conf |
| 83b084e by ken.sedgwick at 2009-03-01 | 80 | |
| 81 | %changelog |
|
| e3a5325 by Evan Prodromou at 2009-08-26 | 82 | * Wed Apr 03 2009 Zach Copley <zach@status.net> - 0.7.3 |
| 61a08c9 by Zach Copley at 2009-04-04 | 83 | - Changed version number to 0.7.3. |
| 84 | ||
| 00d3d70 by ken.sedgwick at 2009-03-14 | 85 | * Fri Mar 13 2009 Ken Sedgwick <ksedgwic@bonsai.com> - 0.7.2.1-1 |
| 3567b9d by Evan Prodromou at 2009-08-26 | 86 | - Factored statusnet version to the first line of the file. |
| 00d3d70 by ken.sedgwick at 2009-03-14 | 87 | |
| e3a5325 by Evan Prodromou at 2009-08-26 | 88 | * Wed Mar 03 2009 Zach Copley <zach@status.net> - 0.7.2 |
| 00d3d70 by ken.sedgwick at 2009-03-14 | 89 | - Changed version number to 0.7.2. |
| 90 | ||
| 83b084e by ken.sedgwick at 2009-03-01 | 91 | * Sat Feb 28 2009 Ken Sedgwick <ken@bonsai.com> - 0.7.1-1 |
| 92 | - Modified RPM for Fedora. |
|
| 93 | ||
| 94 | * Thu Feb 13 2009 tuukka.pasanen@ilmi.fi |
|
| 3567b9d by Evan Prodromou at 2009-08-26 | 95 | - packaged statusnet version 0.7.1 |
| 83b084e by ken.sedgwick at 2009-03-01 | 96 | |
| 97 | * Wed Feb 04 2009 tuukka.pasanen@ilmi.fi |
|
| 3567b9d by Evan Prodromou at 2009-08-26 | 98 | - packaged statusnet version 0.7.0 using the buildservice spec file wizard |

