server-share/f1.spec.in

70 строки
2.2 KiB
Plaintext
Исходник Обычный вид История

%define f1_prefix /opt/mozilla.org/f1
2011-03-31 07:29:43 +04:00
%define f1_name_prefix mozilla-f1-
2011-03-31 08:06:10 +04:00
# build with --define 'use_python_version 2.6' to pick what python to build against if not the system default
2011-03-31 07:29:43 +04:00
%{!?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
2011-03-31 07:29:43 +04:00
%else
%global pyver %{nil}
2011-03-31 08:06:10 +04:00
%{!?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' )
2011-03-31 07:29:43 +04:00
%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_sys}
Version: %%version%%
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
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
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
BuildRequires: python%{pyver}-paste-deploy, 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
CFLAGS="%{optflags}" %{__python}%{pyver} setup.py build
%install
rm -rf %{buildroot}
%{__python}%{pyver} setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --prefix %{f1_prefix} --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/
%clean
rm -rf %{buildroot}
%files -f INSTALLED_FILES
2011-03-24 23:43:20 +03:00
%{_var}/www/f1
%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