]>
Commit | Line | Data |
---|---|---|
23b3882f | 1 | # |
2 | # TODO: | |
3797571a | 3 | # - real descriptions |
23b3882f | 4 | # - check BR-s and R-s |
23b3882f | 5 | # |
6 | %define _snap 20070924 | |
7 | Summary: A GNOME GUI for TrueCrypt | |
3797571a | 8 | Summary(pl.UTF-8): Graficzny interfejs GNOME do TrueCrypta |
23b3882f | 9 | Name: forcefield |
10 | Version: 0.92 | |
11 | Release: 0.%{_snap} | |
12 | License: GPL | |
13 | Group: Applications/System | |
14 | # Download current version with: svn checkout | |
15 | # http://bockcay.de/svn/forcefield/trunk | |
16 | Source0: %{name}-%{_snap}.tar.bz2 | |
17 | # Source0-md5: 6e403a32487c24eeb0fea2ec30500276 | |
18 | Source1: %{name}.desktop | |
23b3882f | 19 | Patch0: %{name}-install.patch |
20 | Patch1: %{name}-cracklib.patch | |
3797571a | 21 | URL: http://www.bockcay.de/forcefield |
c44f027b | 22 | BuildRequires: autoconf >= 2.53 |
3797571a JB |
23 | BuildRequires: automake >= 1:1.9 |
24 | BuildRequires: python >= 1:2.5 | |
23b3882f | 25 | BuildRequires: python-gnome-devel |
3797571a JB |
26 | BuildRequires: python-pygtk-devel >= 2:2.0 |
27 | BuildRequires: rpm-pythonprov | |
28 | BuildRequires: rpmbuild(macros) >= 1.311 | |
c44f027b | 29 | BuildRequires: sed >= 4.0 |
b39311f9 | 30 | Requires(post,postun): gtk-update-icon-cache |
3797571a JB |
31 | Requires(post,postun): hicolor-icon-theme |
32 | Requires(post,postun): shared-mime-info | |
b39311f9 | 33 | Requires(post,preun): GConf2 >= 2.4.0 |
3797571a | 34 | %pyrequires_eq python |
23b3882f | 35 | Requires: cracklib |
23b3882f | 36 | Requires: python-cracklib |
37 | Requires: python-gnome | |
38 | Requires: python-gnome-extras | |
39 | Requires: python-gnome-gconf | |
40 | Requires: python-pexpect | |
3797571a JB |
41 | Requires: python-pygtk-glade >= 2:2.0 |
42 | Requires: python-pygtk-gtk >= 2:2.0 | |
23b3882f | 43 | Requires: python-pynotify |
44 | Requires: truecrypt | |
45 | BuildArch: noarch | |
d63714fb | 46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23b3882f | 47 | |
48 | %description | |
49 | A GNOME GUI for TrueCrypt. | |
50 | ||
51 | %description -l pl.UTF-8 | |
3797571a | 52 | Graficzny interfejs GNOME do TrueCrypta. |
23b3882f | 53 | |
54 | %prep | |
55 | %setup -q -n %{name}-%{_snap} | |
56 | %patch0 -p1 | |
57 | %patch1 -p1 | |
58 | ||
c44f027b JB |
59 | sed -i -e 's|include/python2.4|include/python%{py_ver} $(CFLAGS) -fPIC|g' src/lib/Makefile.am |
60 | # kill precompiled x86 module | |
61 | rm data/misc/crack.so | |
62 | ||
23b3882f | 63 | %build |
64 | %{__aclocal} | |
65 | %{__autoconf} | |
66 | %{__automake} | |
c44f027b JB |
67 | %configure \ |
68 | --disable-schemas-install | |
23b3882f | 69 | %{__make} |
70 | ||
71 | %install | |
72 | rm -rf $RPM_BUILD_ROOT | |
c44f027b | 73 | |
23b3882f | 74 | %{__make} install \ |
75 | DESTDIR=$RPM_BUILD_ROOT | |
23b3882f | 76 | |
77 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} | |
78 | ||
c44f027b | 79 | %py_postclean |
23b3882f | 80 | %find_lang %{name} |
81 | ||
82 | %clean | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %post | |
86 | %gconf_schema_install %{name}.schemas | |
3797571a JB |
87 | %update_icon_cache hicolor |
88 | %update_mime_database | |
23b3882f | 89 | |
3797571a JB |
90 | %preun |
91 | %gconf_schema_uninstall %{name}.schemas | |
23b3882f | 92 | |
3797571a JB |
93 | %postun |
94 | %update_icon_cache hicolor | |
95 | %update_mime_database | |
23b3882f | 96 | |
97 | %files -f %{name}.lang | |
98 | %defattr(644,root,root,755) | |
99 | %doc README AUTHORS ChangeLog | |
100 | %attr(755,root,root) %{_bindir}/%{name} | |
101 | %{_sysconfdir}/gconf/schemas/%{name}.schemas | |
102 | %dir %{py_sitedir}/%{name} | |
103 | %{py_sitedir}/%{name}/*.py[co] | |
c44f027b | 104 | %attr(755,root,root) %{py_sitedir}/%{name}/zero_out.so |
23b3882f | 105 | %{_datadir}/%{name} |
106 | %{_iconsdir}/hicolor/24x24/apps/%{name}.png | |
107 | %{_desktopdir}/%{name}.desktop | |
108 | %{_datadir}/mime/packages/%{name}.xml |