]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - scripts/laconica.spec
2e65b45496a4114f88aabd0c18df2496e3da6474
[quix0rs-gnu-social.git] / scripts / laconica.spec
1 BuildRequires:  php-pear
2 BuildRequires:  httpd-devel
3
4 Name:           laconica
5 Version:        0.7.1
6 Release:        1%{?dist}
7 License:        GAGPL v3 or later
8 Source:         laconica-0.7.1.tar.bz2
9 Group:          Applications/Internet
10 Summary:        Laconica, the Open Source microblogging platform
11 BuildArch:      noarch
12
13 Requires:       httpd
14 Requires:       php >= 5
15 Requires:       php-pear-Mail-Mime
16 Requires:       php-curl
17 Requires:       php-mysql
18 Requires:       php-mbstring
19 Requires:       php-gettext
20
21 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
22
23 %define apache_serverroot %(/usr/sbin/apxs -q DATADIR)
24 %define apache_sysconfdir %(/usr/sbin/apxs -q SYSCONFDIR)
25 %define wwwpath %{apache_serverroot}/%{name}
26 %define confpath %{_sysconfdir}/%{name}
27
28 %description
29 From the ABOUT file: Laconica (pronounced "luh-KAWN-ih-kuh") is a Free
30 and Open Source microblogging platform. It helps people in a
31 community, company or group to exchange short (140 character) messages
32 over the Web. Users can choose which people to "follow" and receive
33 only their friends' or colleagues' status messages. It provides a
34 similar service to sites like Twitter, Jaiku, and Plurk. 
35
36
37 %prep
38 %setup -q
39
40 %build
41
42
43 %install
44 mkdir -p %{buildroot}%{wwwpath}
45 cp -a * %{buildroot}%{wwwpath}
46
47 mkdir -p %{buildroot}%{_datadir}/laconica
48 cp -a db %{buildroot}%{_datadir}/laconica/db
49
50 mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d
51 cat > %{buildroot}%{_sysconfdir}/httpd/conf.d/laconica.conf <<"EOF"
52 Alias /laconica/ "/var/www/laconica/"
53
54 <Directory "/var/www/laconica">
55     Options Indexes FollowSymLinks
56     AllowOverride All
57     Order allow,deny
58     Allow from all
59 </Directory>
60 EOF
61
62 %clean
63 rm -rf %buildroot
64
65 %files
66 %defattr(-,root,root)
67 %dir %{wwwpath}
68 %{wwwpath}/*
69 %{_datadir}/laconica/*
70 %doc COPYING README doc-src/*
71 %config(noreplace) %{_sysconfdir}/httpd/conf.d/laconica.conf
72
73 %changelog
74 * Sat Feb 28 2009 Ken Sedgwick <ken@bonsai.com> - 0.7.1-1
75 - Modified RPM for Fedora.
76
77 * Thu Feb 13 2009 tuukka.pasanen@ilmi.fi
78 - packaged laconica version 0.7.1
79
80 * Wed Feb 04 2009 tuukka.pasanen@ilmi.fi
81 - packaged laconica version 0.7.0 using the buildservice spec file wizard