# 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
+# /usr/lib/rpm/perl.prov: weird, cannot determine the package name for `/root/tmp/gcstar-1.4.2-root-root/usr/share/gcstar/lib/GCLang/SV/GCstar.pm'
+# and similar
+# TODO: - fix this message, IMHO the first byte of utf8 is the source of error - see with 'less' (uzsolt)
+# - after the done of the first todo, clear the 'Provides' fields
+# - maybe create subpackage
+%include /usr/lib/rpm/macros.perl
Summary: GCstar: collection manager
-Summary(pl): GCstar: zarz±dca kolekcji
+Summary(hu.UTF-8): GCstar: gyűjtemény kezelő
+Summary(pl.UTF-8): GCstar: zarządca kolekcji
Name: gcstar
-Version: 1.0.0
-Release: 0.1
+Version: 1.6.0
+Release: 1
License: GPL
-Group: Applications
+Group: X11/Applications
Source0: http://download.gna.org/gcstar/%{name}-%{version}.tar.gz
-# Source0-md5: 0bf2ce46a4adba23136e65ec6d2bd65d
+# Source0-md5: ba9d273c06aab599e31bc7813e2c146a
Patch0: %{name}-mandir.patch
Patch1: %{name}-desktop.patch
-URL: https://gna.org/projects/gcstar/
+# copy gcstar perl-libs to /usr/share instead of /usr/lib
+Patch2: %{name}-perlmoddir.patch
+URL: http://www.gcstar.org/
BuildRequires: perl-Archive-Zip
BuildRequires: perl-Gtk2
+BuildRequires: perl-Sort-Naturally
+BuildRequires: perl-XML-LibXML
BuildRequires: perl-XML-Simple
BuildRequires: perl-libwww
+BuildRequires: rpm-perlprov
Requires(post,postun): desktop-file-utils
+BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+# parts of Gtk2.pm package
+%define gtk2_subpkgs Dialog\\\\|MenuBar\\\\|MessageDialog\\\\|ScrolledWindow\\\\|Toolbar\\\\|TreeView\\\\|VBox\\\\|Window
+
+# don't require/provide itself, it isn't in standard search path
+%define _noautoprov ^perl(GC.*)$
+%define _noautoreq ^perl(GC.*)$ ^perl(Gtk2::\\\\(%{gtk2_subpkgs}\\\\))$
+
%description
GCstar is an application to manage different kind of collections. It
is designed to be able to support as many type of collections as
- Books
- User defined collections
-%description -l pl
-GCstar jest aplikacj± do zarz±dzania ró¿nymi rodzajami kolekcji. Jest
-zaprojektowana by móc wspieraæ wszystkie potrzebne typy kolekcji.
+%description -l hu.UTF-8
+GCstar egy alkalmazás, amellyel gyűjtemények különféle fajtáit
+tarthatjuk nyilván. Annyi típusú gyűjteményt tud kezelni, amennyire
+csak szükségünk lehet. Jelenleg a következőket:
+ - filmek
+ - videójátékok
+ - könyvek
+ - felhasználó által definiált gyűjtemények
+
+%description -l pl.UTF-8
+GCstar jest aplikacją do zarządzania różnymi rodzajami kolekcji. Jest
+zaprojektowana by móc wspierać wszystkie potrzebne typy kolekcji.
Aktualnie wspiera kolekcje:
- - filmów
+ - filmów
- gier wideo
- - ksi±¿ek
- - kolekcje zdefiniowane przez u¿ytkownika
+ - książek
+ - kolekcje zdefiniowane przez użytkownika
%prep
%setup -q -n %{name}
%patch0 -p1
%patch1 -p1
-
-%build
+%patch2 -p1
%install
rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc README
%attr(755,root,root) %{_bindir}/*
-%dir %{_datadir}/%{name}
-%{_datadir}/%{name}/*
-%dir %{_libdir}/%{name}
-%{_libdir}/%{name}/*
+%{_datadir}/%{name}
%{_mandir}/man1/*
%{_desktopdir}/*.desktop
%{_pixmapsdir}/*.png