/[packages]/cauldron/comex-qt/current/SPECS/comex-qt.spec
ViewVC logotype

Contents of /cauldron/comex-qt/current/SPECS/comex-qt.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 893067 - (show annotations) (download)
Tue Oct 20 19:32:10 2015 UTC (5 years, 11 months ago) by hman
File size: 2143 byte(s)
bump 0.1.9
1 %define archivename comex-project
2 %define comexbase comex-base
3 %define comexfolder comex
4 Summary: Qt user interface for comex project
5 Name: comex-qt
6 Version: 0.1.9
7 Release: %mkrel 1
8 License: GPLv2
9 #ExcludeArch: ppc64
10 Group: Office/Utilities
11 Source: https://github.com/armando-basile/%archivename/archive/%{name}-%{version}.tar.gz
12 # get sources from https://github.com/armando-basile/%archivename/archive/%{version}.tar.gz
13 # and rename folder from comex-project to comex-qt
14 URL: https://github.com/armando-basile/%archivename/
15 BuildArch: noarch
16
17
18 BuildRequires: mono-devel
19 BuildRequires: log4net-devel
20 BuildRequires: %{comexbase} >= 0.1.9
21 BuildRequires: qyoto-devel
22 BuildRequires: qyoto
23 #BuildRequires: pinentry-qt4
24 BuildRequires: pkgconfig
25
26 Requires: mono
27 Requires: log4net
28 Requires: %{comexbase} >= 0.1.9
29 Requires: qyoto
30 Requires: qyoto-devel
31
32
33 %description
34 Is QT user interface of a simple application that can be used to exchange
35 data with smartcards using PC/SC standard readers or smartmouse
36 phoenix serial reader.
37
38
39 %prep
40 %setup -q
41
42
43 %build
44 # build commands
45 cd %{_builddir}/%{name}-%{version}/build-linux
46 bash ./build-lnx-comex-qt.sh
47
48 %install
49 # create folders if not exists
50 mkdir -p %{buildroot}%{_prefix}/lib/%{comexfolder}
51 mkdir -p %{buildroot}%{_bindir}
52 mkdir -p %{buildroot}%{_datadir}/pixmaps
53 mkdir -p %{buildroot}%{_datadir}/applications
54 mkdir -p %{buildroot}%{_docdir}/%{name}
55
56 # install commands
57 cp -f %{_builddir}/%{name}-%{version}/%{name}/bin/Debug/%{name}.exe* %{buildroot}%{_prefix}/lib/%{comexfolder}/
58 cp -f %{_builddir}/%{name}-%{version}/resources/Images/comex_48.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
59 cp -f %{_builddir}/%{name}-%{version}/%{name}/Resources/%{name} %{buildroot}%{_datadir}/applications/%{name}.desktop
60
61
62 # generate bin script
63 (
64 cat <<EOF
65 #!/bin/sh
66 exec mono "%{_prefix}/lib/%{comexfolder}/%{name}.exe" "\$@"
67 EOF
68 ) >> %{buildroot}%{_bindir}/%{name}
69 chmod 775 %{buildroot}%{_bindir}/%{name}
70
71
72 %files
73 %doc copying.gpl %{name}/readme
74 %{_bindir}/%{name}
75 %_prefix/lib/%{comexfolder}/%{name}.exe*
76 %{_datadir}/pixmaps/%{name}.png
77 %{_datadir}/applications/%{name}.desktop
78
79
80
81

  ViewVC Help
Powered by ViewVC 1.1.28