File: openhbci-ddvcard.spec.in

package info (click to toggle)
libopenhbci-plugin-ddvcard 0.4.2-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,544 kB
  • ctags: 178
  • sloc: sh: 8,267; cpp: 2,159; makefile: 114
file content (69 lines) | stat: -rw-r--r-- 1,775 bytes parent folder | download
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
%define name openhbci-plugin-ddvcard
%define version @rpm_version@
%define release @rpm_release@
%define rpm_build_root @rpm_build_root@
%define rpm_cxxflags \"-O2 -march=i486 -mcpu=i586\"
%define rpm_cflags \"-O2 -march=i486 -mcpu=i586\"
%define medium_path @PLUGIN_PATH@/media

# Note: All commands below use %{_prefix}, which is rpm's system
# default prefix (as defined in /usr/lib/rpm/macros), so this variable
# is not used inside this spec file.
#%define prefix @prefix@

Summary: A plugin for OpenHBCI for using a DDV chip card
Name: %{name}
Version: %{version}
Release: %{release}
Copyright: LGPL
Group: Libraries/System
Source: http://download.sourceforge.net/openhbci/%{name}-%{version}.tar.gz
Packager: Martin Preuss<martin@libchipcard.de>
URL: http://www.openhbci.de
BuildRoot: %{rpm_build_root}
Prefix: %{_prefix}

%description
This is a plugin for OpenHBCI which adds support for HBCI chipcards.
You need Libchipcard (version 0.9 or better) for this to work.

%prep
if test "$RPM_BUILD_ROOT" != "/"; then
    rm -Rf $RPM_BUILD_ROOT
fi

%setup

%build
CXXFLAGS=%{rpm_cxxflags} CFLAGS=%{rpm_cflags} ./configure --disable-static --disable-maintainer-mode --prefix=%{_prefix} --libdir=%{_libdir}
make

%install
make DESTDIR=$RPM_BUILD_ROOT \
  install

# strip ELF executables
#strip `file %{medium_path}/* | grep ELF | cut -d':' -f 1`
# -- doesn't work since it doesn't take the DESTDIR into account, 
#    i.e. it strips /usr/lib/openhbci instead of 
#    $RPM_BUILD_ROOT/usr/lib/openhbci


%clean
#if test "$RPM_BUILD_ROOT" != "/"; then
#    rm -Rf $RPM_BUILD_ROOT
#fi
echo "----->$RPM_BUILD_ROOT"

%post
ldconfig %{medium_path}


%postun
ldconfig %{medium_path}


%files
%defattr(-,root,root,0755)
%doc README COPYING TODO ChangeLog
%{medium_path}/ddvcard.so*