1 %define php_min_version 5.2
2 Summary: Tools to extend library services to Facebook users through Facebook applications
3 Name: php-facebook-athenaeum
7 Group: Development/Languages/PHP
8 Source0: http://facebook-athenaeum.googlecode.com/files/fb-athenaeum-%{version}.tar.gz
9 # Source0-md5: c9805c5d03afeeae61383212224cf293
10 URL: http://code.google.com/p/facebook-athenaeum/
11 BuildRequires: rpm-php-pearprov
12 BuildRequires: rpmbuild(macros) >= 1.461
13 Requires: php(core) >= %{php_min_version}
14 Patch0: json-dep.patch
17 Requires: php(simplexml)
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 %define _noautoreq_pear facebookapi_php5_restlib.php
26 # exclude optional php dependencies
27 %define _noautoreq php-curl
30 Facebook Athenaeum provides libraries an easy to implement Facebook
31 application to extend library resources to students in Facebook. The
32 application is easily customized for your institution and includes an
33 integrated RSS reader, search tools, and a friend locator that allows
34 Facebook users to record their location in the library so their
35 friends can find them.
38 %setup -q -n fb-athenaeum-%{version}
41 # we depend on php 5.2
42 rm -rf libs/facebook_api/jsonwrapper
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT%{php_data_dir}
47 cp -a libs/facebook_api $RPM_BUILD_ROOT%{php_data_dir}
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)
54 %{php_data_dir}/facebook_api