File actdiag.spec of Package actdiag

#
# spec file for package actdiag
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2013 Pascal Bleser <pascal.bleser@opensuse.org>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%{!?python_sitelib:  %global python_sitelib  %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
Name:           actdiag
Version:        0.5.4
Release:        0
Summary:        Generate Activity Diagrams from Specification Text File
License:        Apache-2.0
Group:          Development/Tools/Other
Url:            http://blockdiag.com/en/actdiag/index.html
Source:         https://pypi.python.org/packages/source/a/actdiag/actdiag-%{version}.tar.gz
Source99:       %{name}.rpmlintrc
BuildRequires:  python-devel >= 2.4
BuildRequires:  python-imaging
BuildRequires:  python-setuptools
Requires:       python-imaging
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%py_requires
%if 0%{?suse_version} >= 1120
BuildArch:      noarch
%endif

%description
actdiag generates activity diagram image files from spec-text file.

Features:
* Generate activity-diagram from dot like text (basic feature)
* Multilingualization for node-label (utf-8 only)

%prep
%setup -q

%build
python ./setup.py build

%install
python ./setup.py install \
    --prefix="%{_prefix}" \
    --root=%{buildroot} \
    --record-rpm=files.lst

rm -rf "%{buildroot}%{python_sitelib}"/*/tests
perl -n -i -e 'print unless m,^(%dir\s+)?\Q%{python_sitelib}\E/[^/]+/tests,' files.lst

%files -f files.lst
%defattr(-,root,root)
%doc LICENSE README.rst

%changelog
openSUSE Build Service is sponsored by