fda0e62
%global inkscape_extensions_dir %{_datadir}/inkscape/extensions
fda0e62
fda0e62
Name:           inkscape-table
fda0e62
Version:        1.0
Debarshi Ray f265a12
Release:        7%{?dist}
fda0e62
Summary:        Table support for inkscape
fda0e62
Group:          Applications/Productivity
fda0e62
License:        GPLv2+
fda0e62
URL:            http://sourceforge.net/projects/inkscape-tables/
Debarshi Ray f265a12
fda0e62
Source0:        http://downloads.sourceforge.net/project/inkscape-tables/%{name}-%{version}.tar.gz
Debarshi Ray f265a12
Source1:        %{name}.metainfo.xml
Debarshi Ray f265a12
fda0e62
BuildArch:      noarch
Debarshi Ray f265a12
Buildrequires:  libappstream-glib
fda0e62
Buildrequires:  python2-devel
fda0e62
Requires:       inkscape
fda0e62
Requires:       python2
fda0e62
Requires:       pygtk2
fda0e62
Requires:       python-lxml
fda0e62
fda0e62
fda0e62
%description
fda0e62
This Inkscape extension provides support for drawing tables.
fda0e62
fda0e62
fda0e62
%prep
fda0e62
%setup -q
fda0e62
fda0e62
fda0e62
%build
fda0e62
fda0e62
fda0e62
%install
fda0e62
mkdir -p %{buildroot}%{inkscape_extensions_dir}
fda0e62
cp -a modules/* %{buildroot}%{inkscape_extensions_dir}
fda0e62
chmod +x %{buildroot}%{inkscape_extensions_dir}/table_merge_merge.py
fda0e62
chmod +x %{buildroot}%{inkscape_extensions_dir}/table_fit_guides.py
fda0e62
chmod +x %{buildroot}%{inkscape_extensions_dir}/base_transform.py
fda0e62
chmod +x %{buildroot}%{inkscape_extensions_dir}/table_fit_width.py
fda0e62
chmod +x %{buildroot}%{inkscape_extensions_dir}/table_fit_height.py
fda0e62
chmod +x %{buildroot}%{inkscape_extensions_dir}/table_fit_page.py
fda0e62
Debarshi Ray f265a12
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
Debarshi Ray f265a12
cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/appdata
Debarshi Ray f265a12
appstream-util validate-relax --nonet $RPM_BUILD_ROOT%{_datadir}/appdata/*.metainfo.xml
Debarshi Ray f265a12
fda0e62
fda0e62
%files
Debarshi Ray f265a12
%{_datadir}/appdata/*.metainfo.xml
fda0e62
%{inkscape_extensions_dir}/*
fda0e62
%doc README CHANGELOG
fda0e62
fda0e62
fda0e62
%changelog
Debarshi Ray f265a12
* Fri May 04 2018 Debarshi Ray <rishi@fedoraproject.org> - 1.0-7
Debarshi Ray f265a12
- Add inkscape-table.metainfo.xml for AppData
Debarshi Ray f265a12
c32eebb
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-6
c32eebb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c32eebb
27c5463
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-5
27c5463
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
27c5463
464939d
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-4
464939d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
464939d
0872fef
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-3
0872fef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
0872fef
93f9166
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-2
93f9166
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
93f9166
fda0e62
* Sat May 17 2014 Lubomir Rintel <lkundrak@v3.sk> - 1.0-1
fda0e62
- Initial packaging