]> git.pld-linux.org Git - packages/gcstar.git/blobdiff - gcstar.spec
- 1.6.0
[packages/gcstar.git] / gcstar.spec
index 1e8abd00a506951ac283fb7e49a2e00b130809a7..6643ae69c8fa385538d9c02fd8b9f7e92e7b0e9c 100644 (file)
@@ -1,34 +1,84 @@
+# 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'
+#      - mark with lang() _datadir/lib/GCLang/*
 #
-%include        /usr/lib/rpm/macros.perl
-Summary:       GCstar: collection manager.
+# /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(hu.UTF-8):     GCstar: gyűjtemény kezelő
+Summary(pl.UTF-8):     GCstar: zarządca kolekcji
 Name:          gcstar
-Version:       0.5.0
+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: 12ba75fe2f3091c1ccd03864424a34e2
+# Source0-md5: ba9d273c06aab599e31bc7813e2c146a
 Patch0:                %{name}-mandir.patch
 Patch1:                %{name}-desktop.patch
-BuildRequires: perl(Gtk2)
-BuildRequires: perl(LWP::Simple)
+# 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 a free application for managing your collections. 
+GCstar is an application to manage different kind of collections. It
+is designed to be able to support as many type of collections as
+needed. For the moment it supports these ones:
+ - Movies
+ - Video games
+ - Books
+ - User defined collections
+
+%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
+ - gier wideo
+ - 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
 
-./install      --text \
-               --prefix=$RPM_BUILD_ROOT/usr
+./install --text \
+       --prefix=$RPM_BUILD_ROOT%{_prefix}
 
 install -d $RPM_BUILD_ROOT%{_desktopdir}
 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
@@ -48,10 +98,7 @@ 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
This page took 0.089322 seconds and 4 git commands to generate.