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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 893066 by umeabot, Wed Oct 15 00:16:32 2014 UTC revision 893067 by hman, Tue Oct 20 19:32:10 2015 UTC
# Line 1  Line 1 
1  Summary:   QT user interface for comex project  %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  Name:      comex-qt
6  Version:   0.1.6.2  Version:   0.1.9
7  Release:   %mkrel 5  Release:   %mkrel 1
8  License:   GPLv2  License:   GPLv2
9  #ExcludeArch: ppc64  #ExcludeArch: ppc64
10  Group:     Office/Utilities  Group:     Office/Utilities
11  Source:    http://comex-project.googlecode.com/files/%{name}-%{version}.tar.gz  Source:    https://github.com/armando-basile/%archivename/archive/%{name}-%{version}.tar.gz
12  URL:       http://comex-project.googlecode.com/  # 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  BuildArch: noarch
 # don't generate debug file because is empty  
 # % define debug_package %{nil}  
16    
17  BuildRequires: mono  
18    BuildRequires: mono-devel
19  BuildRequires: log4net-devel  BuildRequires: log4net-devel
20  BuildRequires: comex-base-devel >= 0.1.8.5  BuildRequires: %{comexbase} >= 0.1.9
 BuildRequires: qyoto  
21  BuildRequires: qyoto-devel  BuildRequires: qyoto-devel
22  BuildRequires: pinentry-qt4  BuildRequires: qyoto
23    #BuildRequires: pinentry-qt4
24  BuildRequires: pkgconfig  BuildRequires: pkgconfig
25    
26  Requires: mono  Requires: mono
27  Requires: log4net  Requires: log4net
28  Requires: comex-base >= 0.1.8.5  Requires: %{comexbase} >= 0.1.9
29  Requires: qyoto  Requires: qyoto
30  Requires: qyoto-devel  Requires: qyoto-devel
31    
32    
33  %description  %description
34  Is QT user interface of a simple application that can be used to exchange  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  data with smartcards using PC/SC standard readers or smartmouse
36  phoenix serial reader.  phoenix serial reader.
37    
38    
39  %prep  %prep
40  %setup -q  %setup -q
41    
42    
43  %build  %build
44  %configure2_5x --libdir=%_prefix/lib  # build commands
45  %make  cd %{_builddir}/%{name}-%{version}/build-linux
46    bash ./build-lnx-comex-qt.sh
47    
48  %install  %install
49  %makeinstall_std  # 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  %files
73  %doc copying.gpl comex-qt/readme  %doc copying.gpl %{name}/readme
74  %{_bindir}/%{name}  %{_bindir}/%{name}
75  %_prefix/lib/%{name}/  %_prefix/lib/%{comexfolder}/%{name}.exe*
76  %{_datadir}/pixmaps/%{name}.png  %{_datadir}/pixmaps/%{name}.png
77  %{_datadir}/applications/%{name}.desktop  %{_datadir}/applications/%{name}.desktop
78    
79    
80    
81    

Legend:
Removed from v.893066  
changed lines
  Added in v.893067

  ViewVC Help
Powered by ViewVC 1.1.28