]>
Commit | Line | Data |
---|---|---|
a2595cc2 | 1 | Summary: Genealogical Research and Analysis Management Programming System |
fdd5ef0e | 2 | Summary(pl.UTF-8): System programowania do zarządzania badaniami i analizą genealogiczną |
9a2c0d03 | 3 | Name: gramps |
abde0e46 | 4 | Version: 4.0.2 |
d2bddfc1 | 5 | Release: 2 |
1fbbc073 | 6 | License: GPL v2 |
9a2c0d03 | 7 | Group: Applications/Science |
abde0e46 JR |
8 | Source0: http://downloads.sourceforge.net/gramps/%{name}-%{version}.tar.gz |
9 | # Source0-md5: 41d9ae797c2eb2da42474aca3cccb6b3 | |
9cff0fc3 | 10 | Patch0: %{name}-icon_path.patch |
1768e738 | 11 | URL: http://gramps-project.org/ |
f2613b03 | 12 | BuildRequires: GConf2-devel |
2e43f759 KT |
13 | BuildRequires: autoconf |
14 | BuildRequires: automake | |
8e691462 | 15 | BuildRequires: gettext-tools |
4b5b6cf6 | 16 | BuildRequires: gnome-doc-utils |
30e86544 | 17 | BuildRequires: gtk+2-devel >= 2:2.8.0 |
1a8d7f1a | 18 | BuildRequires: intltool |
8e99b26e | 19 | BuildRequires: pkgconfig |
f2613b03 | 20 | BuildRequires: python >= 1:2.5 |
3e003a63 | 21 | BuildRequires: rpm-pythonprov |
30e86544 | 22 | BuildRequires: rpmbuild(macros) >= 1.197 |
1a8d7f1a | 23 | BuildRequires: scrollkeeper >= 0.3.5 |
30e86544 | 24 | %pyrequires_eq python-modules |
30e86544 | 25 | Requires(post,postun): desktop-file-utils |
26 | Requires(post,postun): scrollkeeper | |
f2613b03 | 27 | Requires(post,preun): GConf2 |
30e86544 | 28 | Requires: hicolor-icon-theme |
29 | Requires: python-gnome-ui >= 2.12.2-2 | |
0e0e2bcf PG |
30 | Suggests: graphviz |
31 | Suggests: python-ReportLab | |
9a2c0d03 | 32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
33 | ||
34 | %description | |
35 | gramps (Genealogical Research and Analysis Management Programming | |
36 | System) is a GNOME based genealogy program supporting a Python based | |
37 | plugin system. | |
38 | ||
138c7415 | 39 | %description -l pl.UTF-8 |
a2595cc2 | 40 | gramps (Genealogical Research and Analysis Management Programming |
138c7415 JR |
41 | System - system programowania do zarządzania badaniami i analizą |
42 | genealogiczną) to oparty na GNOME program do genealogii obsługujący | |
a2595cc2 JB |
43 | system wtyczek w Pythonie. |
44 | ||
9a2c0d03 | 45 | %prep |
46 | %setup -q | |
90b35e80 | 47 | %patch0 -p1 |
48 | ||
9a2c0d03 | 49 | %build |
abde0e46 JR |
50 | CC="%{__cc}" \ |
51 | CFLAGS="%{rpmcflags}" \ | |
52 | %{__python} setup.py build | |
9a2c0d03 | 53 | |
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
a2595cc2 | 56 | |
abde0e46 JR |
57 | %{__python} setup.py \ |
58 | install \ | |
59 | --root=$RPM_BUILD_ROOT \ | |
60 | --optimize=2 | |
8e99b26e | 61 | |
2e43f759 | 62 | install -d $RPM_BUILD_ROOT%{_pixmapsdir} |
abde0e46 JR |
63 | install images/gramps.png $RPM_BUILD_ROOT%{_pixmapsdir} |
64 | ||
65 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/mime-info | |
d2bddfc1 JR |
66 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} |
67 | ||
68 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/locale/pt{_PT,} | |
abde0e46 JR |
69 | |
70 | %py_postclean | |
a2595cc2 | 71 | |
abde0e46 | 72 | %find_lang gramps |
9a2c0d03 | 73 | |
74 | %clean | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
2e43f759 | 77 | %post |
2e43f759 | 78 | %update_desktop_database_post |
30e86544 | 79 | %scrollkeeper_update_post |
2e43f759 | 80 | |
2e43f759 KT |
81 | %postun |
82 | %update_desktop_database_postun | |
30e86544 | 83 | %scrollkeeper_update_postun |
a2595cc2 | 84 | |
9a2c0d03 | 85 | %files -f gramps.lang |
86 | %defattr(644,root,root,755) | |
abde0e46 | 87 | %doc AUTHORS FAQ NEWS README TODO example |
9a2c0d03 | 88 | %attr(755,root,root) %{_bindir}/gramps |
30e86544 | 89 | |
1fbbc073 | 90 | %dir %{_datadir}/gramps |
abde0e46 JR |
91 | %{_datadir}/gramps/*.xml |
92 | %{_datadir}/gramps/css | |
1fbbc073 | 93 | %{_datadir}/gramps/images |
abde0e46 JR |
94 | |
95 | %{py_sitescriptdir}/gramps | |
96 | %{py_sitescriptdir}/gramps-*.egg-info | |
1fbbc073 | 97 | |
2e43f759 | 98 | %{_desktopdir}/*.desktop |
1fbbc073 | 99 | %{_iconsdir}/hicolor/*/mimetypes/* |
a2595cc2 | 100 | %{_pixmapsdir}/gramps.png |
30e86544 | 101 | |
abde0e46 JR |
102 | %{_datadir}/appdata/gramps.appdata.xml |
103 | ||
30e86544 | 104 | %{_datadir}/mime/packages/gramps.xml |
30e86544 | 105 | |
a2595cc2 | 106 | %{_mandir}/man1/* |
abde0e46 | 107 | %lang(cs) %{_mandir}/cs/man1/* |
bb9955f7 | 108 | %lang(fr) %{_mandir}/fr/man1/* |
f2613b03 AG |
109 | %lang(nl) %{_mandir}/nl/man1/* |
110 | %lang(pl) %{_mandir}/pl/man1/* | |
abde0e46 | 111 | %lang(pt_BR) %{_mandir}/pt_BR/man1/* |
f2613b03 | 112 | %lang(sv) %{_mandir}/sv/man1/* |