]>
Commit | Line | Data |
---|---|---|
8eff6485 | 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' | |
8eff6485 | 3 | # |
2bcc22c6 ZU |
4 | # /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' |
5 | # and similar | |
6 | # TODO: - fix this message, IMHO the first byte of utf8 is the source of error - see with 'less' (uzsolt) | |
7 | # - after the done of the first todo, clear the 'Provides' fields | |
4a7c6738 | 8 | # - maybe create subpackage |
ec5ebfe7 SS |
9 | # - fix permssions of /usr/share/gcstar/helpers/xdg-open (or use system xdg-open) |
10 | # | |
2d948bf5 | 11 | %include /usr/lib/rpm/macros.perl |
c448fb71 | 12 | Summary: GCstar: collection manager |
d58332be | 13 | Summary(hu.UTF-8): GCstar: gyűjtemény kezelő |
4e3f85ee | 14 | Summary(pl.UTF-8): GCstar: zarządca kolekcji |
00b89f0a | 15 | Name: gcstar |
e59c7e14 SS |
16 | Version: 1.7.0 |
17 | Release: 0.1 | |
00b89f0a | 18 | License: GPL |
4a7c6738 | 19 | Group: X11/Applications |
00b89f0a | 20 | Source0: http://download.gna.org/gcstar/%{name}-%{version}.tar.gz |
e59c7e14 | 21 | # Source0-md5: 94d0c4d6acc912b4b4d3a72d934cc16d |
00b89f0a | 22 | Patch0: %{name}-mandir.patch |
23 | Patch1: %{name}-desktop.patch | |
290001d9 | 24 | # copy gcstar perl-libs to /usr/share instead of /usr/lib |
5f263671 | 25 | Patch2: %{name}-perlmoddir.patch |
a399d7d3 | 26 | URL: http://www.gcstar.org/ |
8eff6485 | 27 | BuildRequires: perl-Archive-Zip |
c448fb71 | 28 | BuildRequires: perl-Gtk2 |
83b45a9f | 29 | BuildRequires: perl-HTML-Parser |
0705dc9b | 30 | BuildRequires: perl-Sort-Naturally |
2d948bf5 | 31 | BuildRequires: perl-XML-LibXML |
aca574c6 | 32 | BuildRequires: perl-XML-Simple |
64f1bcda | 33 | BuildRequires: perl-libwww |
2d948bf5 | 34 | BuildRequires: rpm-perlprov |
64f1bcda | 35 | Requires(post,postun): desktop-file-utils |
5f263671 | 36 | BuildArch: noarch |
00b89f0a | 37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
38 | ||
74573e9b | 39 | # parts of Gtk2.pm package |
40 | %define gtk2_subpkgs Dialog\\\\|MenuBar\\\\|MessageDialog\\\\|ScrolledWindow\\\\|Toolbar\\\\|TreeView\\\\|VBox\\\\|Window | |
41 | ||
42 | # don't require/provide itself, it isn't in standard search path | |
43 | %define _noautoprov ^perl(GC.*)$ | |
44 | %define _noautoreq ^perl(GC.*)$ ^perl(Gtk2::\\\\(%{gtk2_subpkgs}\\\\))$ | |
45 | ||
00b89f0a | 46 | %description |
9901e863 | 47 | GCstar is an application to manage different kind of collections. It |
48 | is designed to be able to support as many type of collections as | |
49 | needed. For the moment it supports these ones: | |
50 | - Movies | |
51 | - Video games | |
52 | - Books | |
53 | - User defined collections | |
54 | ||
d58332be ZU |
55 | %description -l hu.UTF-8 |
56 | GCstar egy alkalmazás, amellyel gyűjtemények különféle fajtáit | |
57 | tarthatjuk nyilván. Annyi típusú gyűjteményt tud kezelni, amennyire | |
58 | csak szükségünk lehet. Jelenleg a következőket: | |
59 | - filmek | |
60 | - videójátékok | |
61 | - könyvek | |
62 | - felhasználó által definiált gyűjtemények | |
63 | ||
d8f50ea5 JR |
64 | %description -l pl.UTF-8 |
65 | GCstar jest aplikacją do zarządzania różnymi rodzajami kolekcji. Jest | |
66 | zaprojektowana by móc wspierać wszystkie potrzebne typy kolekcji. | |
149bd910 | 67 | Aktualnie wspiera kolekcje: |
d8f50ea5 | 68 | - filmów |
9901e863 | 69 | - gier wideo |
d8f50ea5 JR |
70 | - książek |
71 | - kolekcje zdefiniowane przez użytkownika | |
00b89f0a | 72 | |
73 | %prep | |
74 | %setup -q -n %{name} | |
75 | %patch0 -p1 | |
76 | %patch1 -p1 | |
290001d9 | 77 | %patch2 -p1 |
00b89f0a | 78 | |
15cac200 SS |
79 | #rm BOM from files - it can confuse perl.prov |
80 | find -type f -name '*.pm' | xargs sed -i 's/^\xef\xbb\xbf//' | |
81 | ||
00b89f0a | 82 | %install |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
c448fb71 | 85 | ./install --text \ |
86 | --prefix=$RPM_BUILD_ROOT%{_prefix} | |
00b89f0a | 87 | |
88 | install -d $RPM_BUILD_ROOT%{_desktopdir} | |
89 | install -d $RPM_BUILD_ROOT%{_pixmapsdir} | |
90 | install share/applications/gcstar.desktop $RPM_BUILD_ROOT%{_desktopdir} | |
91 | install share/gcstar/icons/gcstar_64x64.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png | |
92 | ||
93 | %clean | |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
96 | %post | |
97 | %update_desktop_database_post | |
54a19666 SS |
98 | %update_icon_cache hicolor |
99 | %update_mime_database | |
00b89f0a | 100 | |
101 | %postun | |
102 | %update_desktop_database_postun | |
54a19666 SS |
103 | %update_icon_cache hicolor |
104 | %update_mime_database | |
00b89f0a | 105 | |
106 | %files | |
107 | %defattr(644,root,root,755) | |
108 | %doc README | |
2afbb631 | 109 | %attr(755,root,root) %{_bindir}/gcstar |
95d40e4c SS |
110 | %dir %{_datadir}/%{name} |
111 | %{_datadir}/%{name}/fonts | |
112 | %{_datadir}/%{name}/genres | |
113 | %{_datadir}/%{name}/helpers | |
114 | %{_datadir}/%{name}/html_models | |
115 | %{_datadir}/%{name}/icons | |
759ddd2f SS |
116 | %dir %{_datadir}/%{name}/lib |
117 | %{_datadir}/%{name}/lib/GCBackend | |
118 | %{_datadir}/%{name}/lib/GCExport | |
119 | %{_datadir}/%{name}/lib/GCExtract | |
120 | %{_datadir}/%{name}/lib/GCGraphicComponents | |
121 | %{_datadir}/%{name}/lib/GCImport | |
122 | %{_datadir}/%{name}/lib/GCItemsLists | |
43c66add SS |
123 | %dir %{_datadir}/%{name}/lib/GCLang |
124 | %lang(ar) %{_datadir}/%{name}/lib/GCLang/AR | |
125 | %lang(bg) %{_datadir}/%{name}/lib/GCLang/BG | |
126 | %lang(ca) %{_datadir}/%{name}/lib/GCLang/CA | |
127 | %lang(cs) %{_datadir}/%{name}/lib/GCLang/CS | |
128 | %lang(de) %{_datadir}/%{name}/lib/GCLang/DE | |
129 | %lang(el) %{_datadir}/%{name}/lib/GCLang/EL | |
130 | %lang(en) %{_datadir}/%{name}/lib/GCLang/EN | |
131 | %lang(es) %{_datadir}/%{name}/lib/GCLang/ES | |
132 | %lang(fr) %{_datadir}/%{name}/lib/GCLang/FR | |
133 | %lang(gl) %{_datadir}/%{name}/lib/GCLang/GL | |
134 | %lang(hu) %{_datadir}/%{name}/lib/GCLang/HU | |
135 | %lang(id) %{_datadir}/%{name}/lib/GCLang/ID | |
136 | %lang(it) %{_datadir}/%{name}/lib/GCLang/IT | |
137 | %lang(nl) %{_datadir}/%{name}/lib/GCLang/NL | |
138 | %lang(pl) %{_datadir}/%{name}/lib/GCLang/PL | |
139 | %lang(pt) %{_datadir}/%{name}/lib/GCLang/PT | |
140 | %lang(ro) %{_datadir}/%{name}/lib/GCLang/RO | |
141 | %lang(ru) %{_datadir}/%{name}/lib/GCLang/RU | |
142 | %lang(sr) %{_datadir}/%{name}/lib/GCLang/SR | |
143 | %lang(sv) %{_datadir}/%{name}/lib/GCLang/SV | |
144 | %lang(tr) %{_datadir}/%{name}/lib/GCLang/TR | |
145 | %lang(uk) %{_datadir}/%{name}/lib/GCLang/UK | |
146 | %lang(zh) %{_datadir}/%{name}/lib/GCLang/ZH | |
147 | %lang(zh_CN) %{_datadir}/%{name}/lib/GCLang/ZH_CN | |
148 | %{_datadir}/%{name}/lib/GCLang/GCLangUtils.pm | |
149 | %{_datadir}/%{name}/lib/GCLang/README | |
759ddd2f SS |
150 | %{_datadir}/%{name}/lib/GCModels |
151 | %{_datadir}/%{name}/lib/GCPlugins | |
152 | %{_datadir}/%{name}/lib/*.pm | |
95d40e4c SS |
153 | %{_datadir}/%{name}/list_bg |
154 | %{_datadir}/%{name}/logos | |
155 | %{_datadir}/%{name}/overlays | |
156 | %{_datadir}/%{name}/panels | |
157 | %{_datadir}/%{name}/schemas | |
158 | %{_datadir}/%{name}/style | |
159 | %{_datadir}/%{name}/xml_models | |
160 | %{_datadir}/%{name}/xslt | |
2afbb631 SS |
161 | %{_mandir}/man1/gcstar.1* |
162 | %{_desktopdir}/gcstar.desktop | |
163 | %{_pixmapsdir}/gcstar.png |