]>
Commit | Line | Data |
---|---|---|
ad563a7d | 1 | # |
05374a89 | 2 | # TODO: include /usr/share/griffith/lib/db/*.py[co] files? |
3 | # | |
20976d51 JK |
4 | # Conditional build: |
5 | %bcond_without gtkspell # don't build with spell checker | |
9da5fa33 | 6 | |
05374a89 | 7 | %define artworkver 0.9.4 |
b93ab09f | 8 | Summary: griffith - film collection manager |
1a425c43 | 9 | Summary(pl.UTF-8): griffith - program katalogujący filmy |
b93ab09f | 10 | Name: griffith |
9da5fa33 | 11 | Version: 0.13 |
3dc3d582 | 12 | Release: 6.1 |
ad563a7d | 13 | License: GPL v2+ |
b93ab09f | 14 | Group: X11/Applications/Multimedia |
9da5fa33 ER |
15 | Source0: http://launchpad.net/griffith/trunk/%{version}/+download/%{name}-%{version}.tar.gz |
16 | # Source0-md5: cf130806516fb476a268d950ac8aec91 | |
8c9252af | 17 | Source1: http://download.berlios.de/griffith/%{name}-extra-artwork-%{artworkver}.tar.gz |
c64afa37 | 18 | # Source1-md5: a18f9f900dc467f8ee801bb70776072f |
78794ef4 | 19 | Source2: %{name}.desktop |
3dc3d582 | 20 | Source3: Kodi.py |
f95f7d87 | 21 | Patch100: branch.diff |
feaff652 | 22 | # Patch100-md5: f9d197867cefebf16cf690094007081d |
b93ab09f | 23 | Patch0: %{name}-Makefile.patch |
54b24c89 | 24 | Patch1: %{name}-env_python.patch |
47d9cbee | 25 | Patch2: %{name}-plugin.patch |
c2503670 | 26 | URL: http://www.griffith.cc/ |
b93ab09f JK |
27 | BuildRequires: gtk+2-devel >= 2:2.6.0 |
28 | BuildRequires: intltool | |
29 | BuildRequires: pkgconfig | |
30 | BuildRequires: python-devel | |
31 | BuildRequires: python-pygtk-devel | |
0d57b6a9 | 32 | BuildRequires: rpm-pythonprov |
e69b39d0 | 33 | BuildRequires: rpmbuild(macros) >= 1.234 |
b93ab09f | 34 | Requires: gtk+2 >= 2:2.6.0 |
b9cf69fe | 35 | Requires: python-PIL |
ad563a7d | 36 | Requires: python-PyXML |
f876ed56 | 37 | Requires: python-ReportLab >= 1.19 |
38 | Requires: python-SQLAlchemy >= 0.5 | |
e69b39d0 | 39 | %{?with_gtkspell:Requires: python-gnome-extras-gtkspell} |
b93ab09f | 40 | Requires: python-gnome-gconf |
0f9662f1 ER |
41 | Requires: python-modules |
42 | Requires: python-pygtk-glade | |
f876ed56 | 43 | Requires: python-pygtk-gtk >= 2:2.6.1 |
a45777d7 | 44 | Requires: python-sqlite >= 2.0.0 |
63d80c71 | 45 | # Python interface for MySQL connectivity |
49e17379 | 46 | Suggests: python-MySQLdb >= 1.2.1-p2 |
63d80c71 | 47 | # CSV file encoding detections |
9da5fa33 | 48 | Suggests: python-chardet |
63d80c71 | 49 | # Python interface for PostgreSQL connectivity |
9da5fa33 | 50 | Suggests: python-psycopg2 >= 1.1.21-6 |
b194649e | 51 | BuildArch: noarch |
b93ab09f JK |
52 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
53 | ||
b194649e ER |
54 | %define _libdir %{_prefix}/lib |
55 | ||
b93ab09f | 56 | %description |
11daf1d3 | 57 | Griffith is a movie collection manager application. |
b93ab09f | 58 | |
7c5f0465 | 59 | %description -l pl.UTF-8 |
c77b1c48 | 60 | Griffith to program służący do katalogowania i zarządzania kolekcją |
61 | filmów. | |
b93ab09f | 62 | |
20976d51 JK |
63 | %package extra-artwork |
64 | Summary: Extra graphic files | |
1a425c43 | 65 | Summary(pl.UTF-8): Dodatkowe plik graficzne |
20976d51 JK |
66 | Group: X11/Applications/Multimedia |
67 | Requires: %{name} = %{version}-%{release} | |
8c9252af | 68 | Provides: %{name}-extra-artwork = %{artworkver}-%{release} |
20976d51 JK |
69 | |
70 | %description extra-artwork | |
40d0b23e | 71 | More graphic files. |
20976d51 | 72 | |
7c5f0465 | 73 | %description extra-artwork -l pl.UTF-8 |
40d0b23e | 74 | Dodatkowe pliki graficzne. |
20976d51 | 75 | |
4d6bb459 | 76 | %package -n bash-completion-griffith |
77 | Summary: bash-completion for griffith | |
78 | Summary(pl.UTF-8): bashowe uzupełnianie nazw dla grifith | |
79 | Group: Applications/Shells | |
80 | Requires: %{name} = %{version}-%{release} | |
81 | ||
82 | %description -n bash-completion-griffith | |
83 | bash-completion for griffith. | |
84 | ||
85 | %description -n bash-completion-griffith -l pl.UTF-8 | |
86 | Pakiet ten dostarcza bashowe uzupełnianie nazw dla griffith. | |
87 | ||
b93ab09f | 88 | %prep |
78794ef4 | 89 | %setup -q -a1 |
f95f7d87 | 90 | %patch100 -p1 |
b93ab09f | 91 | %patch0 -p1 |
54b24c89 | 92 | %patch1 -p1 |
47d9cbee | 93 | %patch2 -p1 |
b93ab09f | 94 | |
8c9252af | 95 | mv griffith-extra-artwork-%{artworkver}/images/*.png images/ |
78794ef4 | 96 | |
b93ab09f JK |
97 | %install |
98 | rm -rf $RPM_BUILD_ROOT | |
b93ab09f JK |
99 | %{__make} install \ |
100 | DESTDIR=$RPM_BUILD_ROOT | |
101 | ||
3dc3d582 ER |
102 | cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/%{name}/lib/plugins/imp |
103 | ||
78794ef4 | 104 | ln -fs %{_datadir}/%{name}/lib/%{name} $RPM_BUILD_ROOT%{_bindir}/%{name} |
9da5fa33 ER |
105 | |
106 | install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}} | |
107 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir} | |
108 | cp -p data/%{name}.png $RPM_BUILD_ROOT%{_pixmapsdir} | |
b93ab09f | 109 | |
1f480614 ER |
110 | %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name} |
111 | %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
112 | %py_postclean %{_datadir}/%{name} | |
54b24c89 | 113 | |
b93ab09f JK |
114 | %find_lang %{name} |
115 | ||
116 | %clean | |
117 | rm -rf $RPM_BUILD_ROOT | |
118 | ||
b93ab09f JK |
119 | %files -f %{name}.lang |
120 | %defattr(644,root,root,755) | |
c64afa37 | 121 | %doc NEWS README AUTHORS ChangeLog TODO |
9da5fa33 | 122 | %attr(755,root,root) %{_bindir}/griffith |
78794ef4 | 123 | %dir %{_datadir}/%{name} |
b4ca2e38 | 124 | %dir %{_datadir}/%{name}/lib |
78794ef4 | 125 | %attr(755,root,root) %{_datadir}/%{name}/lib/%{name} |
cd73f251 | 126 | %{_datadir}/%{name}/lib/*.py[co] |
a45777d7 | 127 | %dir %{_datadir}/%{name}/export_templates |
9da5fa33 | 128 | %dir %{_datadir}/%{name}/export_templates/csv |
a45777d7 | 129 | %{_datadir}/%{name}/export_templates/csv/* |
9da5fa33 | 130 | %dir %{_datadir}/%{name}/export_templates/html_tables |
a45777d7 | 131 | %{_datadir}/%{name}/export_templates/html_tables/* |
9da5fa33 | 132 | %dir %{_datadir}/%{name}/export_templates/html_table |
a45777d7 | 133 | %{_datadir}/%{name}/export_templates/html_table/* |
9da5fa33 | 134 | %dir %{_datadir}/%{name}/export_templates/latex |
a45777d7 | 135 | %{_datadir}/%{name}/export_templates/latex/* |
9da5fa33 | 136 | %dir %{_datadir}/%{name}/export_templates/xml |
a45777d7 JK |
137 | %{_datadir}/%{name}/export_templates/xml/* |
138 | %dir %{_datadir}/%{name}/glade | |
139 | %{_datadir}/%{name}/glade/*.glade | |
140 | %{_datadir}/%{name}/glade/*.png | |
20976d51 | 141 | %dir %{_datadir}/%{name}/images |
9da5fa33 | 142 | %{_datadir}/%{name}/images/*.png |
78e73b17 | 143 | %exclude %{_datadir}/%{name}/images/PluginMovie*.png |
17662609 | 144 | %dir %{_datadir}/%{name}/lib/db |
a45777d7 JK |
145 | %dir %{_datadir}/%{name}/lib/plugins |
146 | %dir %{_datadir}/%{name}/lib/plugins/movie | |
147 | %dir %{_datadir}/%{name}/lib/plugins/export | |
c77b1c48 | 148 | %dir %{_datadir}/%{name}/lib/plugins/extensions |
a45777d7 | 149 | %dir %{_datadir}/%{name}/lib/plugins/imp |
17662609 | 150 | %{_datadir}/%{name}/lib/db/*.py[co] |
a45777d7 JK |
151 | %{_datadir}/%{name}/lib/plugins/*.py[co] |
152 | %{_datadir}/%{name}/lib/plugins/movie/*.py[co] | |
153 | %{_datadir}/%{name}/lib/plugins/export/*.py[co] | |
c77b1c48 | 154 | %{_datadir}/%{name}/lib/plugins/extensions/*.py[co] |
a45777d7 | 155 | %{_datadir}/%{name}/lib/plugins/imp/*.py[co] |
b93ab09f | 156 | %{_desktopdir}/%{name}.desktop |
a45777d7 JK |
157 | %{_pixmapsdir}/%{name}.png |
158 | %{_pixmapsdir}/%{name}.xpm | |
9da5fa33 ER |
159 | %{_mandir}/man1/griffith.1* |
160 | %lang(pl) %{_mandir}/pl/man1/griffith.1* | |
161 | %lang(pt) %{_mandir}/pt/man1/griffith.1* | |
20976d51 JK |
162 | |
163 | %files extra-artwork | |
164 | %defattr(644,root,root,755) | |
165 | %{_datadir}/%{name}/images/PluginMovie*.png | |
4d6bb459 | 166 | |
167 | %files -n bash-completion-griffith | |
168 | %defattr(644,root,root,755) | |
169 | %{_sysconfdir}/bash_completion.d/* |