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