Source

trac-userscriptservernotes-plugin / src / trac-userscriptservernotes-plugin.spec

Full commit
# norootforbuild
%define _version 6.1.1
%define _name UserscriptServerNotes
%define _pkg userscriptservernotes
%{!?revision: %define revision 0 }
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysc
onfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sy
sconfig import get_python_lib; print get_python_lib(1)")}
%{!?py_requires: %define py_requires Requires: python >= %(%{__python} -c "from 
distutils.sysconfig import get_python_version; print get_python_version()")}

Name:           trac-userscriptservernotes-plugin
Version:        %_version.%revision
Release:        1
License:        BSD
Group:          Development/Tools/Other
Url:            http://bitbucket.org/guidod/userscriptservernotes
Source:         %_pkg-%_version.tgz
Provides:       %name = %_version
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  unzip
BuildRequires:  python-devel
BuildRequires:  python-setuptools >= 0.6
%py_requires
Requires:       python-setuptools
Requires:       trac >= 0.11
Summary:        Userscript Server Notes plugin for Trac

%if %{?suse_version: 0%{?suse_version} > 1110} %{!?suse_version: 1}
BuildArch:      noarch
%endif

%description
This plugin works in combination with Greasemonkey userscripts
that embed buttons into third party pages. Upon pressing the
button some contacts gets saved here - so you can make all sorts 
of other notes back on your home server. 

More specifically the project ships some userscripts that will
look for chat mails to have them saved in a home server archive.
Other userscripts will allow to retrieve some of those old mails
and to show them on the third party server where it is active.

%prep
#setup -qn %_pkg-%_version

%setup -qDn .

%build
%{__python} setup.py build

%install
%{__python} setup.py install --root=%{buildroot} --prefix=%{_prefix} \
 %{!?suse_version: --record=INSTALLED_FILES} %{?suse_version: --record-rpm=INSTALLED_FILES}

%clean
%__rm -rf %{buildroot}

%files -f INSTALLED_FILES
%defattr(-,root,root)

%changelog