]> git.pld-linux.org Git - packages/gcstar.git/blob - gcstar.spec
3f67c5ca0864b16138415abca8419966604baf32
[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.5.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:  966652b3f331d72c76509e13fc4dfba5
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-XML-LibXML
29 BuildRequires:  perl-XML-Simple
30 BuildRequires:  perl-libwww
31 BuildRequires:  rpm-perlprov
32 Requires(post,postun):  desktop-file-utils
33 BuildArch:      noarch
34 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36 # parts of Gtk2.pm package
37 %define gtk2_subpkgs    Dialog\\\\|MenuBar\\\\|MessageDialog\\\\|ScrolledWindow\\\\|Toolbar\\\\|TreeView\\\\|VBox\\\\|Window
38
39 # don't require/provide itself, it isn't in standard search path
40 %define _noautoprov     ^perl(GC.*)$
41 %define _noautoreq      ^perl(GC.*)$ ^perl(Gtk2::\\\\(%{gtk2_subpkgs}\\\\))$
42
43 %description
44 GCstar is an application to manage different kind of collections. It
45 is designed to be able to support as many type of collections as
46 needed. For the moment it supports these ones:
47  - Movies
48  - Video games
49  - Books
50  - User defined collections
51
52 %description -l hu.UTF-8
53 GCstar egy alkalmazás, amellyel gyűjtemények különféle fajtáit
54 tarthatjuk nyilván. Annyi típusú gyűjteményt tud kezelni, amennyire
55 csak szükségünk lehet. Jelenleg a következőket:
56  - filmek
57  - videójátékok
58  - könyvek
59  - felhasználó által definiált gyűjtemények
60
61 %description -l pl.UTF-8
62 GCstar jest aplikacją do zarządzania różnymi rodzajami kolekcji. Jest
63 zaprojektowana by móc wspierać wszystkie potrzebne typy kolekcji.
64 Aktualnie wspiera kolekcje:
65  - filmów
66  - gier wideo
67  - książek
68  - kolekcje zdefiniowane przez użytkownika
69
70 %prep
71 %setup -q -n %{name}
72 %patch0 -p1
73 %patch1 -p1
74 %patch2 -p1
75
76 %install
77 rm -rf $RPM_BUILD_ROOT
78
79 ./install --text \
80         --prefix=$RPM_BUILD_ROOT%{_prefix}
81
82 install -d $RPM_BUILD_ROOT%{_desktopdir}
83 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
84 install share/applications/gcstar.desktop $RPM_BUILD_ROOT%{_desktopdir}
85 install share/gcstar/icons/gcstar_64x64.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
86
87 %clean
88 rm -rf $RPM_BUILD_ROOT
89
90 %post
91 %update_desktop_database_post
92
93 %postun
94 %update_desktop_database_postun
95
96 %files
97 %defattr(644,root,root,755)
98 %doc README
99 %attr(755,root,root) %{_bindir}/*
100 %{_datadir}/%{name}
101 %{_mandir}/man1/*
102 %{_desktopdir}/*.desktop
103 %{_pixmapsdir}/*.png
This page took 0.100297 seconds and 2 git commands to generate.