forked from open-eid/qdigidoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqdigidoc.spec
65 lines (56 loc) · 1.37 KB
/
qdigidoc.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
Name: qdigidoc
Version: 3.3
Release: 1%{?dist}
Summary: DigiDoc UI applications
Group: Applications/File
License: LGPLv2+
URL: http://www.ria.ee
Source0: qdigidoc.tar.gz
BuildRoot: %{_tmppath}/-%{version}-%{release}-root-%(%{__id_u} -n)
%if 0%{?fedora}
BuildRequires: libdigidocpp-devel, openldap-devel, qt4-devel
Requires: liberation-sans-fonts
%else
BuildRequires: openldap2-devel, libqt4-devel
Requires: liberation-fonts
%endif
BuildRequires: libdigidocpp-devel
Requires: libdigidocpp => 3.3
%description
Qt based UI application for verifying and signing digital signatures
%if %{defined suse_version}
%debug_package
%endif
%prep
%setup -q -n %{name}
cmake . \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_VERBOSE_MAKEFILE=ON
%build
make
%install
rm -rf %{buildroot}
cd %{_builddir}/%{name}
make install DESTDIR=%{buildroot}
%clean
rm -rf %{buildroot}
cd %{_builddir}/%{name}
make clean
%files
%defattr(-,root,root,-)
%doc
%{_bindir}/*
%{_mandir}/*
%{_datadir}/applications/*
%{_datadir}/mime/packages/*
%{_datadir}/icons/hicolor/*
%changelog
* Fri Aug 13 2010 RIA <[email protected]> 1.0-1
- first build no changes
%post
/usr/bin/update-desktop-database &> /dev/null || :
/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :
%postun
/usr/bin/update-desktop-database &> /dev/null || :
/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :