Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

87 lines (69 sloc) 3.246 kb
%define f1_prefix /opt/mozilla.org/f1
%define f1_name_prefix mozilla-f1-
# build with --define 'use_python_version 2.6' to pick what python to build against if not the system default
%{!?use_python_version: %global use_python_version %{nil}}
%if "%{use_python_version}" != ""
%global pyver %( echo %{use_python_version} | sed -e's/\\.//g' )
%global python_version %{use_python_version}
%global pyver_sys %pyver
%else
%global pyver %{nil}
%{!?python_version: %global python_version %(%{__python} -c "import sys; sys.stdout.write(sys.version[:3])")}
%global pyver_sys %( echo %{python_version} | sed -e's/\\.//g' )
%endif
%global python_sitelib /lib/python%{python_version}/site-packages
%global python_sitearch /%{_lib}/python%{python_version}/site-packages
Name: %{f1_name_prefix}python%{pyver}
Version: %%version%%
Release: 6%%git%%%{?dist}
Summary: Share Links Fast.
Group: Applications/Internet
License: MPL
URL: http://f1.mozillamessaging.com/
Source0: linkdrop-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: python%{pyver}-devel python%{pyver}-setuptools
BuildRequires: /usr/bin/rsync, /usr/bin/cut, /bin/sed, /usr/bin/awk, /usr/bin/make
BuildRequires: java
BuildRequires: %{f1_name_prefix}python%{pyver}-paste-deploy, %{f1_name_prefix}python%{pyver}-paste-script
Requires: %{f1_name_prefix}python%{pyver}-paste-deploy, %{f1_name_prefix}python%{pyver}-paste-script
Requires: python%{pyver}
%%buildrequires%%
%%requires%%
%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
export PYTHONPATH=$(pwd):%{f1_prefix}%{python_sitelib}:%{f1_prefix}%{python_sitearch}
mkdir web
CFLAGS="%{optflags}" %{__python}%{pyver} setup.py build
%install
export PYTHONPATH=$(pwd):%{f1_prefix}%{python_sitelib}:%{f1_prefix}%{python_sitearch}
rm -rf %{buildroot}
%{__python}%{pyver} setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --prefix %{f1_prefix} --record=INSTALLED_FILES
%{__install} -m 755 -d %{buildroot}%{_sysconfdir}/f1
%{__install} -m 644 *.ini %{buildroot}%{_sysconfdir}/f1/
#XXX: Not ready yet
#%check
#export PYTHONPATH=$(pwd):%{f1_prefix}%{python_sitelib}:%{f1_prefix}%{python_sitearch}
#%{__make} test NOSE="nosetests-%{python_version}" PYTHON="%{__python}%{pyver}"
%clean
rm -rf %{buildroot}
%files -f INSTALLED_FILES
%config(noreplace) %{_sysconfdir}/f1/*ini
%defattr(-,root,root,-)
%doc README.md LICENSE PKG-INFO docs/
%changelog
* Tue Apr 26 2011 Philippe M. Chiasson <gozer@mozillamessaging.com> - 0.3.7dev-7
- Remove web content, moved to mozilla-f1-web
* Wed Apr 20 2011 Philippe M. Chiasson <gozer@mozillamessaging.com> - 0.3.7dev-6
- Compile web content before packaging (make web)
* Thu Apr 14 2011 Philippe M. Chiasson <gozer@mozillamessaging.com> - 0.3.7dev-2
- Include *.ini files
* Fri Mar 18 2011 Philippe M. Chiasson <gozer@mozillamessaging.com> - 0.3.2dev-1
- Initial spec file
Jump to Line
Something went wrong with that request. Please try again.