# NOTES:- warnings like this: /usr/lib/rpm/perl.prov: weird, cannot determine the package name for
# `/mnt/hda5/tmp/gcstar-0.5.0-root-inter/usr/lib/gcstar/GCLang/BG/GCstar.pm'
-# - wrong? perl modules location: /usr/lib/gcstar
-# - putting files in /usr/lib/ makes this package arch dependent
+# - mark with lang() _datadir/lib/GCLang/*
#
%include /usr/lib/rpm/macros.perl
Summary: GCstar: collection manager
Summary(pl): GCstar: zarz±dca kolekcji
Name: gcstar
Version: 1.0.0
-Release: 0.1
+Release: 0.9
License: GPL
Group: Applications
Source0: http://download.gna.org/gcstar/%{name}-%{version}.tar.gz
# Source0-md5: 0bf2ce46a4adba23136e65ec6d2bd65d
Patch0: %{name}-mandir.patch
Patch1: %{name}-desktop.patch
+Patch2: %{name}-perlmoddir.patch
URL: https://gna.org/projects/gcstar/
BuildRequires: perl-Archive-Zip
BuildRequires: perl-Gtk2
BuildRequires: perl-XML-Simple
BuildRequires: perl-libwww
Requires(post,postun): desktop-file-utils
+BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%setup -q -n %{name}
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
%attr(755,root,root) %{_bindir}/*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
-%dir %{_libdir}/%{name}
-%{_libdir}/%{name}/*
%{_mandir}/man1/*
%{_desktopdir}/*.desktop
%{_pixmapsdir}/*.png