forked from mhogomchungu/zuluCrypt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zuluCrypt.spec
145 lines (120 loc) · 4.21 KB
/
zuluCrypt.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
Name: zuluCrypt
Version: 4.6.5
Release: 0
Summary: Qt GUI front end to cryptsetup
License: GPL-2.0+
Group: Productivity/Security
Source: zuluCrypt-%{version}.tar.bz2
Source100: zuluCrypt-rpmlint
URL: http://code.google.com/p/zulucrypt/
BuildRoot: %{_topdir}/%{name}-%{version}
%define zuluCrypt_plugins zuluCrypt_plugins
%define libversion 3.2.0
%define srcname zuluCrypt
%define libname lib%srcname%libversion
%define libnamedev lib%{srcname}%{libversion}-devel
#You may want to add dependencies for kwallet,gnome-keyring and pwquality below
#if you want to include optional functionality they provide.
%if 0%{?fedora}
BuildRequires: cmake gcc gcc-c++ qt-devel glibc-devel libmount-devel libblkid-devel cryptsetup-luks-devel
#BuildRequires: cmake gcc gcc-c++ qt-devel gnome-keyring-devel glibc-devel libmount-devel libblkid-devel cryptsetup-luks-devel
%else
BuildRequires: cmake gcc gcc-c++ libqt4-devel glibc-devel libmount-devel libblkid-devel libcryptsetup-devel
%endif
%description
zuluCrypt is a front end to cryptsetup.
It makes it easier to use cryptsetup by providing a Qt based GUI and a simpler to use cli front end to cryptsetup.
It does the same thing truecrypt does but without licensing problems or requiring a user to setup sudo for it or presenting root's password.
This package contains the applications.
%package -n %{libnamedev}
Requires: lib%{libname} = %{version}
Summary: Development library package
Group: Development/Libraries/C and C++
%description -n %{libnamedev}
This package contains development files and libraries necessary to build programs around zulucrypt
%package -n %{libname}
Summary: Library for %{name}
Group: Productivity/Security
%description -n %{libname}
This package contains libraries that provide higher level access to cryptsetup API and provide mounting/unmounting API
to easy opening and closing of volumes
%package -n %{zuluCrypt_plugins}
Requires: lib%{libname}
Summary: various zuluCrypt plugins
%description -n %{zuluCrypt_plugins}
zuluCrypt plugins
%prep
%setup -q -n zuluCrypt-%{version}
%build
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE=Release ../
%install
cd build
make DESTDIR=$RPM_BUILD_ROOT install
%post
chmod 4755 %{_bindir}/zuluCrypt-cli
chmod 4755 %{_bindir}/zuluMount-cli
%post -n %{libnamedev}
sbin/ldconfig
%postun -n %{libnamedev}
sbin/ldconfig
%post -n %{libname}
sbin/ldconfig
%postun -n %{libname}
sbin/ldconfig
%clean
rm -rf %{buildroot}
rm -rf $RPM_BUILD_DIR/%{name}-%{version}
%files
%defattr(0755,root,root)
%{_bindir}/zuluMount-gui
%{_bindir}/zuluMount-cli
%{_bindir}/zuluCrypt-gui
%{_bindir}/zuluCrypt-cli
%{_bindir}/zuluCrypt-test
%{_libdir}/zuluCrypt/zuluCrypt-testKey
%{_datadir}/applications/zuluCrypt.desktop
%{_datadir}/applications/zuluMount.desktop
%defattr(0644,root,root)
%{_datadir}/icons/*
%{_mandir}/man1/*
%defattr(0644,root,root)
%files -n %{zuluCrypt_plugins}
%defattr(0755,root,root)
# It maybe necessary to comment out plugins that were configured not to be build
# Dont know how to write spec file to autodetect what plugin was not build and act accordingly
%{_libdir}/zuluCrypt/kwallet
%{_libdir}/zuluCrypt/keyring
%{_libdir}/zuluCrypt/keykeyfile
%{_libdir}/zuluCrypt/keydialog-qt
%{_libdir}/zuluCrypt/gpg
%files -n %{libname}
%defattr(0755,root,root)
%dir %{_libdir}/zuluCrypt
%defattr(0644,root,root)
%{_libdir}/libzuluCrypt.so.*
%{_libdir}/libzuluCrypt-exe.so.*
%{_libdir}/libzuluCryptPluginManager.so.*
%files -n %{libnamedev}
%defattr(0755,root,root)
%dir %{_includedir}/zuluCrypt
%defattr(0644,root,root)
%{_includedir}/zuluCrypt/libzuluCrypt.h
%{_includedir}/zuluCrypt/libzuluCrypt-exe.h
%{_includedir}/zuluCrypt/libzuluCryptPluginManager.h
%{_libdir}/libzuluCryptPluginManager.so
%{_libdir}/libzuluCrypt.so
%{_libdir}/libzuluCrypt-exe.so
%{_libdir}/pkgconfig/libzuluCrypt.pc
%changelog
* Fri Jul 19 2013 [email protected]
- update to version 4.6.5
* Sun Jun 2 2013 [email protected]
- update to version 4.6.4
* Thu May 30 2013 [email protected]
- upate to version 4.6.3
* Fri Mar 15 2013 [email protected]
- upate to version 4.6.2
* Mon Jan 14 2012 [email protected]
- update to version 4.6.0