-
Notifications
You must be signed in to change notification settings - Fork 1
/
mincrypt.spec
50 lines (39 loc) · 1.01 KB
/
mincrypt.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
%if 0%{?suse_version}
%define php_confdir %{_sysconfdir}/php5/conf.d
%define php_extdir %{_libdir}/php5/extensions
%else
%define php_confdir %{_sysconfdir}/php.d
%define php_extdir %{_libdir}/php/modules
%endif
Name: mincrypt
Version: 0.0.4
Release: 1%{?dist}%{?extra_release}
Summary: MinCrypt crypto-algorithm implementation
Source: http://www.migsoft.net/projects/mincrypt/mincrypt-%{version}.tar.gz
Group: Development/Libraries
License: LGPLv2+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
%if 0%{?suse_version}
Requires: php5
%else
Requires: php
%endif
%description
MinCrypt minimal encryption/decryption system
%prep
%setup -q -n mincrypt-%{version}
%build
%configure
make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot}
mkdir -p $RPM_BUILD_ROOT%{_bindir}/bin
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc LICENSE README html
%{_bindir}/mincrypt
%{php_extdir}/mincrypt-php.so
%config(noreplace) %{php_confdir}/mincrypt-php.ini
%changelog