]> git.pld-linux.org Git - packages/gcstar.git/blob - gcstar.spec
- 1.6.0
[packages/gcstar.git] / gcstar.spec
1 # NOTES:- warnings like this: /usr/lib/rpm/perl.prov: weird, cannot determine the package name for
2 #        `/mnt/hda5/tmp/gcstar-0.5.0-root-inter/usr/lib/gcstar/GCLang/BG/GCstar.pm'
3 #       - mark with lang() _datadir/lib/GCLang/*
4 #
5 # /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'
6 # and similar
7 # TODO: - fix this message, IMHO the first byte of utf8 is the source of error - see with 'less' (uzsolt)
8 #       - after the done of the first todo, clear the 'Provides' fields
9 #       - maybe create subpackage
10 %include        /usr/lib/rpm/macros.perl
11 Summary:        GCstar: collection manager
12 Summary(hu.UTF-8):      GCstar: gyűjtemény kezelő
13 Summary(pl.UTF-8):      GCstar: zarządca kolekcji
14 Name:           gcstar
15 Version:        1.6.0
16 Release:        1
17 License:        GPL
18 Group:          X11/Applications
19 Source0:        http://download.gna.org/gcstar/%{name}-%{version}.tar.gz
20 # Source0-md5:  ba9d273c06aab599e31bc7813e2c146a
21 Patch0:         %{name}-mandir.patch
22 Patch1:         %{name}-desktop.patch
23 # copy gcstar perl-libs to /usr/share instead of /usr/lib
24 Patch2:         %{name}-perlmoddir.patch
25 URL:            http://www.gcstar.org/
26 BuildRequires:  perl-Archive-Zip
27 BuildRequires:  perl-Gtk2
28 BuildRequires:  perl-Sort-Naturally
29 BuildRequires:  perl-XML-LibXML
30 BuildRequires:  perl-XML-Simple
31 BuildRequires:  perl-libwww
32 BuildRequires:  rpm-perlprov
33 Requires(post,postun):  desktop-file-utils
34 BuildArch:      noarch
35 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37 # parts of Gtk2.pm package
38 %define gtk2_subpkgs    Dialog\\\\|MenuBar\\\\|MessageDialog\\\\|ScrolledWindow\\\\|Toolbar\\\\|TreeView\\\\|VBox\\\\|Window
39
40 # don't require/provide itself, it isn't in standard search path
41 %define _noautoprov     ^perl(GC.*)$
42 %define _noautoreq      ^perl(GC.*)$ ^perl(Gtk2::\\\\(%{gtk2_subpkgs}\\\\))$
43
44 %description
45 GCstar is an application to manage different kind of collections. It
46 is designed to be able to support as many type of collections as
47 needed. For the moment it supports these ones:
48  - Movies
49  - Video games
50  - Books
51  - User defined collections
52
53 %description -l hu.UTF-8
54 GCstar egy alkalmazás, amellyel gyűjtemények különféle fajtáit
55 tarthatjuk nyilván. Annyi típusú gyűjteményt tud kezelni, amennyire
56 csak szükségünk lehet. Jelenleg a következőket:
57  - filmek
58  - videójátékok
59  - könyvek
60  - felhasználó által definiált gyűjtemények
61
62 %description -l pl.UTF-8
63 GCstar jest aplikacją do zarządzania różnymi rodzajami kolekcji. Jest
64 zaprojektowana by móc wspierać wszystkie potrzebne typy kolekcji.
65 Aktualnie wspiera kolekcje:
66  - filmów
67  - gier wideo
68  - książek
69  - kolekcje zdefiniowane przez użytkownika
70
71 %prep
72 %setup -q -n %{name}
73 %patch0 -p1
74 %patch1 -p1
75 %patch2 -p1
76
77 %install
78 rm -rf $RPM_BUILD_ROOT
79
80 ./install --text \
81         --prefix=$RPM_BUILD_ROOT%{_prefix}
82
83 install -d $RPM_BUILD_ROOT%{_desktopdir}
84 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
85 install share/applications/gcstar.desktop $RPM_BUILD_ROOT%{_desktopdir}
86 install share/gcstar/icons/gcstar_64x64.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
87
88 %clean
89 rm -rf $RPM_BUILD_ROOT
90
91 %post
92 %update_desktop_database_post
93
94 %postun
95 %update_desktop_database_postun
96
97 %files
98 %defattr(644,root,root,755)
99 %doc README
100 %attr(755,root,root) %{_bindir}/*
101 %{_datadir}/%{name}
102 %{_mandir}/man1/*
103 %{_desktopdir}/*.desktop
104 %{_pixmapsdir}/*.png
This page took 0.135599 seconds and 4 git commands to generate.