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