]> git.pld-linux.org Git - packages/forcefield.git/blame - forcefield.spec
- Requires(post,postun): gtk-update-icon-cache
[packages/forcefield.git] / forcefield.spec
CommitLineData
23b3882f 1#
2# TODO:
3797571a 3# - real descriptions
23b3882f 4# - check BR-s and R-s
23b3882f 5#
6%define _snap 20070924
7Summary: A GNOME GUI for TrueCrypt
3797571a 8Summary(pl.UTF-8): Graficzny interfejs GNOME do TrueCrypta
23b3882f 9Name: forcefield
10Version: 0.92
11Release: 0.%{_snap}
12License: GPL
13Group: Applications/System
14# Download current version with: svn checkout
15# http://bockcay.de/svn/forcefield/trunk
16Source0: %{name}-%{_snap}.tar.bz2
17# Source0-md5: 6e403a32487c24eeb0fea2ec30500276
18Source1: %{name}.desktop
23b3882f 19Patch0: %{name}-install.patch
20Patch1: %{name}-cracklib.patch
3797571a 21URL: http://www.bockcay.de/forcefield
c44f027b 22BuildRequires: autoconf >= 2.53
3797571a
JB
23BuildRequires: automake >= 1:1.9
24BuildRequires: python >= 1:2.5
23b3882f 25BuildRequires: python-gnome-devel
3797571a
JB
26BuildRequires: python-pygtk-devel >= 2:2.0
27BuildRequires: rpm-pythonprov
28BuildRequires: rpmbuild(macros) >= 1.311
c44f027b 29BuildRequires: sed >= 4.0
b39311f9 30Requires(post,postun): gtk-update-icon-cache
3797571a
JB
31Requires(post,postun): hicolor-icon-theme
32Requires(post,postun): shared-mime-info
b39311f9 33Requires(post,preun): GConf2 >= 2.4.0
3797571a 34%pyrequires_eq python
23b3882f 35Requires: cracklib
23b3882f 36Requires: python-cracklib
37Requires: python-gnome
38Requires: python-gnome-extras
39Requires: python-gnome-gconf
40Requires: python-pexpect
3797571a
JB
41Requires: python-pygtk-glade >= 2:2.0
42Requires: python-pygtk-gtk >= 2:2.0
23b3882f 43Requires: python-pynotify
44Requires: truecrypt
45BuildArch: noarch
d63714fb 46BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23b3882f 47
48%description
49A GNOME GUI for TrueCrypt.
50
51%description -l pl.UTF-8
3797571a 52Graficzny interfejs GNOME do TrueCrypta.
23b3882f 53
54%prep
55%setup -q -n %{name}-%{_snap}
56%patch0 -p1
57%patch1 -p1
58
c44f027b
JB
59sed -i -e 's|include/python2.4|include/python%{py_ver} $(CFLAGS) -fPIC|g' src/lib/Makefile.am
60# kill precompiled x86 module
61rm 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
72rm -rf $RPM_BUILD_ROOT
c44f027b 73
23b3882f 74%{__make} install \
75 DESTDIR=$RPM_BUILD_ROOT
23b3882f 76
77install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
78
c44f027b 79%py_postclean
23b3882f 80%find_lang %{name}
81
82%clean
83rm -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
This page took 0.070361 seconds and 4 git commands to generate.