]> git.pld-linux.org Git - SPECS.git/blob - revelation.spec
SPECS updated Tue 30 Apr 15:13:02 CEST 2024
[SPECS.git] / revelation.spec
1 Summary:        A password manager for the GNOME 2 desktop
2 Summary(pl.UTF-8):      Zarządca haseł dla środowiska GNOME 2
3 Name:           revelation
4 Version:        0.4.11
5 Release:        7
6 License:        GPL
7 Group:          X11/Applications
8 Source0:        ftp://oss.codepoet.no/revelation/%{name}-%{version}.tar.bz2
9 # Source0-md5:  e2db4a2f00f59b18798d4453c778129f
10 Patch0:         %{name}-desktop.patch
11 Patch1:         %{name}-zh_CN.patch
12 URL:            http://oss.codepoet.no/revelation/
13 BuildRequires:  GConf2-devel
14 BuildRequires:  autoconf
15 BuildRequires:  automake
16 BuildRequires:  cracklib-devel
17 BuildRequires:  gettext-tools
18 BuildRequires:  intltool
19 BuildRequires:  libtool
20 BuildRequires:  pkgconfig
21 BuildRequires:  python-Crypto >= 1.9
22 BuildRequires:  python-gnome-desktop-devel
23 BuildRequires:  python-gnome-devel >= 2.12.4
24 BuildRequires:  python-gnome-extras-devel >= 2.0
25 BuildRequires:  python-gnome-ui >= 2.12.4
26 BuildRequires:  python-libxml2 >= 2.0.0
27 BuildRequires:  python-pygtk-devel >= 2.12.4
28 BuildRequires:  rpm-pythonprov
29 BuildRequires:  rpmbuild(macros) >= 1.197
30 Requires(post,postun):  desktop-file-utils
31 Requires(post,postun):  shared-mime-info
32 Requires(post,preun):   GConf2
33 Requires:       hicolor-icon-theme
34 Requires:       python-Crypto >= 1.9
35 Requires:       python-PyXML
36 Requires:       python-gnome >= 2.12.4
37 Requires:       python-gnome-desktop-applet >= 2.14.0
38 Requires:       python-gnome-gconf >= 2.12.4
39 Requires:       python-gnome-vfs >= 2.12.4
40 Requires:       python-libxml2 >= 2.0.0
41 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42
43 %description
44 Revelation is a password manager for the GNOME 2 desktop. It organizes
45 accounts in a tree structure, and stores them as AES-encrypted XML
46 files.
47
48 %description -l pl.UTF-8
49 Revelation jest zarządcą haseł dla środowiska GNOME 2. Wyświetla konta
50 w postaci drzewa, a dane przechowuje w zakodowanych plikach XML.
51
52 %prep
53 %setup -q
54 %patch0 -p1
55 %patch1 -p1
56 mv po/zh.po po/zh_CN.po
57
58 %build
59 %{__libtoolize}
60 %{__aclocal}
61 %{__automake}
62 %{__autoconf}
63 %configure \
64         --disable-schemas-install \
65         --disable-desktop-update \
66         --disable-mime-update
67 %{__make}
68
69 %install
70 rm -rf $RPM_BUILD_ROOT
71 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
72
73 %{__make} install \
74         DESTDIR=$RPM_BUILD_ROOT
75
76 rm -f $RPM_BUILD_ROOT%{py_sitedir}/%{name}/*.py
77 rm -f $RPM_BUILD_ROOT%{py_sitedir}/%{name}/datahandler/*.py
78
79 install data/icons/48x48/revelation.png $RPM_BUILD_ROOT%{_pixmapsdir}
80
81 %find_lang %{name}
82
83 %clean
84 rm -rf $RPM_BUILD_ROOT
85
86 %post
87 %gconf_schema_install revelation.schemas
88 %gconf_schema_install revelation-applet.schemas
89 %update_desktop_database_post
90 umask 022
91 /usr/bin/update-mime-database %{_datadir}/mime ||:
92
93 %preun
94 %gconf_schema_uninstall revelation.schemas
95 %gconf_schema_uninstall revelation-applet.schemas
96
97 %postun
98 %update_desktop_database_postun
99 if [ $1 = 0 ]; then
100         umask 022
101         /usr/bin/update-mime-database %{_datadir}/mime
102 fi
103
104 %files -f %{name}.lang
105 %defattr(644,root,root,755)
106 %doc AUTHORS ChangeLog README
107 %attr(755,root,root) %{_bindir}/*
108 %attr(755,root,root) %{_libdir}/revelation-applet
109 %{_datadir}/%{name}
110 %{_datadir}/mime/packages/revelation.xml
111 %{_desktopdir}/*.desktop
112 %{_iconsdir}/hicolor/16x16/apps/*.png
113 %{_iconsdir}/hicolor/24x24/apps/*.png
114 %{_iconsdir}/hicolor/32x32/apps/*.png
115 %{_iconsdir}/hicolor/48x48/apps/*.png
116 %{_iconsdir}/hicolor/48x48/mimetypes/*.png
117 %{_libdir}/bonobo/servers/GNOME_RevelationApplet.server
118 %{_pixmapsdir}/*.png
119
120 %dir %{py_sitedir}/%{name}
121 %dir %{py_sitedir}/%{name}/datahandler
122 %dir %{py_sitedir}/%{name}/bundle
123 %attr(755,root,root) %{py_sitedir}/%{name}/*.so
124 %{py_sitedir}/%{name}/*.py[oc]
125 %{py_sitedir}/%{name}/datahandler/*.py[co]
126 %{py_sitedir}/%{name}/bundle/*.py[co]
127
128 %{_sysconfdir}/gconf/schemas/revelation.schemas
129 %{_sysconfdir}/gconf/schemas/revelation-applet.schemas
This page took 0.236244 seconds and 3 git commands to generate.