]> git.pld-linux.org Git - packages/XCardII.git/commitdiff
- new
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 19 Mar 2011 07:23:23 +0000 (07:23 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- pcsc patch to build with pcsc-lite 1.6+

Changed files:
    XCardII-pcsc.patch -> 1.1
    XCardII.spec -> 1.1

XCardII-pcsc.patch [new file with mode: 0644]
XCardII.spec [new file with mode: 0644]

diff --git a/XCardII-pcsc.patch b/XCardII-pcsc.patch
new file mode 100644 (file)
index 0000000..1787d57
--- /dev/null
@@ -0,0 +1,20 @@
+--- XCardII-0.9.9/src/xcardMain.cpp.orig       2003-09-30 22:36:40.000000000 +0200
++++ XCardII-0.9.9/src/xcardMain.cpp    2011-03-19 08:11:44.753347580 +0100
+@@ -70,7 +70,7 @@
+ QProgressDialog *progressDialog;
+-void xcardMainReaderEvent(LPSCARD_READERSTATE_A preaderState);
++void xcardMainReaderEvent(LPSCARD_READERSTATE preaderState);
+ int ioCallbackForProgress(void *addparams, int currentProgress) {
+@@ -523,7 +523,7 @@
+ }
+-void xcardMainReaderEvent(LPSCARD_READERSTATE_A preaderState) {
++void xcardMainReaderEvent(LPSCARD_READERSTATE preaderState) {
+   xcardMain *xcardMainChannel;
diff --git a/XCardII.spec b/XCardII.spec
new file mode 100644 (file)
index 0000000..7aeac1c
--- /dev/null
@@ -0,0 +1,49 @@
+Summary:       XCardII - graphical smartcard administration tool
+Summary(pl.UTF-8):     XCardII - graficzne narzędzie do administrowania kartami procesorowymi
+Name:          XCardII
+Version:       0.9.9
+Release:       1
+License:       BSD
+Group:         Applications
+Source0:       https://alioth.debian.org/frs/download.php/394/%{name}-%{version}.tar.gz
+# Source0-md5: 36a521169258a10ef388178284565e65
+Patch0:                %{name}-pcsc.patch
+URL:           http://muscleapps.alioth.debian.org/
+BuildRequires: libmusclecard-devel >= 1.1.0
+BuildRequires: pcsc-lite-devel >= 1.6.0
+BuildRequires: qt-devel >= 3.0
+Requires:      libmusclecard >= 1.1.0
+Obsoletes:     muscleframework-xcard
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+XCardII - graphical smartcard administration tool.
+
+%description -l pl.UTF-8
+XCardII - graficzne narzędzie do administrowania kartami
+procesorowymi.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__make} -C src \
+       CPP="%{__cxx} %{rpmcxxflags}" \
+       INC="-I/usr/include/qt -I/usr/include/PCSC" \
+       LIBS="%{rpmldflags} -lqt-mt -lmusclecard -lpcsclite -lpthread"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -D src/xcard $RPM_BUILD_ROOT%{_bindir}/xcard
+install -D man/xcard.1 $RPM_BUILD_ROOT%{_mandir}/man1/xcard.1
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc COPYING Changelog README
+%attr(755,root,root) %{_bindir}/xcard
+%{_mandir}/man1/xcard.1*
This page took 0.087679 seconds and 4 git commands to generate.