]>
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' | |
5f263671 | 3 | # - mark with lang() _datadir/lib/GCLang/* |
8eff6485 | 4 | # |
00b89f0a | 5 | %include /usr/lib/rpm/macros.perl |
c448fb71 | 6 | Summary: GCstar: collection manager |
4e3f85ee | 7 | Summary(pl.UTF-8): GCstar: zarządca kolekcji |
00b89f0a | 8 | Name: gcstar |
3da12c6d | 9 | Version: 1.0.0 |
5f263671 | 10 | Release: 0.9 |
00b89f0a | 11 | License: GPL |
12 | Group: Applications | |
13 | Source0: http://download.gna.org/gcstar/%{name}-%{version}.tar.gz | |
3da12c6d | 14 | # Source0-md5: 0bf2ce46a4adba23136e65ec6d2bd65d |
00b89f0a | 15 | Patch0: %{name}-mandir.patch |
16 | Patch1: %{name}-desktop.patch | |
5f263671 | 17 | Patch2: %{name}-perlmoddir.patch |
9901e863 | 18 | URL: https://gna.org/projects/gcstar/ |
8eff6485 | 19 | BuildRequires: perl-Archive-Zip |
c448fb71 | 20 | BuildRequires: perl-Gtk2 |
8eff6485 | 21 | BuildRequires: perl-XML-Simple |
64f1bcda JB |
22 | BuildRequires: perl-libwww |
23 | Requires(post,postun): desktop-file-utils | |
5f263671 | 24 | BuildArch: noarch |
00b89f0a | 25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
27 | %description | |
9901e863 | 28 | GCstar is an application to manage different kind of collections. It |
29 | is designed to be able to support as many type of collections as | |
30 | needed. For the moment it supports these ones: | |
31 | - Movies | |
32 | - Video games | |
33 | - Books | |
34 | - User defined collections | |
35 | ||
d8f50ea5 JR |
36 | %description -l pl.UTF-8 |
37 | GCstar jest aplikacją do zarządzania różnymi rodzajami kolekcji. Jest | |
38 | zaprojektowana by móc wspierać wszystkie potrzebne typy kolekcji. | |
149bd910 | 39 | Aktualnie wspiera kolekcje: |
d8f50ea5 | 40 | - filmów |
9901e863 | 41 | - gier wideo |
d8f50ea5 JR |
42 | - książek |
43 | - kolekcje zdefiniowane przez użytkownika | |
00b89f0a | 44 | |
45 | %prep | |
46 | %setup -q -n %{name} | |
47 | %patch0 -p1 | |
48 | %patch1 -p1 | |
5f263671 | 49 | %patch2 -p1 |
00b89f0a | 50 | |
51 | %build | |
52 | ||
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
c448fb71 | 56 | ./install --text \ |
57 | --prefix=$RPM_BUILD_ROOT%{_prefix} | |
00b89f0a | 58 | |
59 | install -d $RPM_BUILD_ROOT%{_desktopdir} | |
60 | install -d $RPM_BUILD_ROOT%{_pixmapsdir} | |
61 | install share/applications/gcstar.desktop $RPM_BUILD_ROOT%{_desktopdir} | |
62 | install share/gcstar/icons/gcstar_64x64.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png | |
63 | ||
64 | %clean | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
67 | %post | |
68 | %update_desktop_database_post | |
69 | ||
70 | %postun | |
71 | %update_desktop_database_postun | |
72 | ||
73 | %files | |
74 | %defattr(644,root,root,755) | |
75 | %doc README | |
76 | %attr(755,root,root) %{_bindir}/* | |
77 | %dir %{_datadir}/%{name} | |
78 | %{_datadir}/%{name}/* | |
00b89f0a | 79 | %{_mandir}/man1/* |
80 | %{_desktopdir}/*.desktop | |
81 | %{_pixmapsdir}/*.png |