2011-03-24 22:39:10 +03:00
|
|
|
%{!?pyver: %global pyver %( %{__python} -V 2>&1 | awk '{print $2}' | cut -d. -f1-2 | sed -e's!\\.!!g' )}
|
|
|
|
|
2011-03-28 19:12:06 +04:00
|
|
|
Name: mozilla-f1-python%{pyver}
|
2011-03-23 22:39:12 +03:00
|
|
|
Version: %%version%%
|
2011-03-18 22:46:39 +03:00
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Share Links Fast.
|
|
|
|
|
|
|
|
Group: Applications/Internet
|
|
|
|
License: MPL
|
|
|
|
URL: http://f1.mozillamessaging.com/
|
2011-03-23 23:03:06 +03:00
|
|
|
Source0: linkdrop-%{version}.tar.gz
|
2011-03-18 22:46:39 +03:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
2011-03-24 22:39:10 +03:00
|
|
|
BuildRequires: python%{pyver}-devel python%{pyver}-setuptools
|
2011-03-25 20:23:49 +03:00
|
|
|
BuildRequires: /usr/bin/rsync, /usr/bin/cut, /bin/sed, /usr/bin/awk
|
2011-03-24 22:39:10 +03:00
|
|
|
BuildRequires: python%{pyver}-paste-deploy, python%{pyver}-paste-script
|
2011-03-25 20:39:00 +03:00
|
|
|
|
|
|
|
#XXX Versions need to come from setup.oy
|
|
|
|
Requires: python%{pyver}
|
|
|
|
Requires: mozilla-f1-python%{pyver}-twitter
|
|
|
|
Requires: mozilla-f1-python%{pyver}-gdata
|
|
|
|
Requires: mozilla-f1-python%{pyver}-oauth2
|
2011-03-18 22:46:39 +03:00
|
|
|
|
|
|
|
%description
|
|
|
|
F1 is a browser extension that allows you to share links
|
|
|
|
in a fast and fun way. Share links from within the browser,
|
|
|
|
from any webpage, using the same services you already know
|
|
|
|
and love. F1 is made by Mozilla Messaging.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n linkdrop-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
CFLAGS="%{optflags}" %{__python} -c 'import setuptools; execfile("setup.py")' build
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
2011-03-23 22:39:12 +03:00
|
|
|
%{__python} setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
|
2011-03-24 23:43:20 +03:00
|
|
|
%{__install} -m 755 -d %{buildroot}%{_var}/www/f1
|
|
|
|
rsync -a web/ %{buildroot}%{_var}/www/f1/
|
2011-03-18 22:46:39 +03:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
2011-03-23 22:39:12 +03:00
|
|
|
%files -f INSTALLED_FILES
|
2011-03-24 23:43:20 +03:00
|
|
|
%{_var}/www/f1
|
2011-03-18 22:46:39 +03:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc README.md LICENSE PKG-INFO docs/
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Fri Mar 18 2011 Philippe M. Chiasson <gozer@mozillamessaging.com> - 0.3.2dev-1
|
|
|
|
- Initial spec file
|