]> git.pld-linux.org Git - SPECS.git/blob - muscletool.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / muscletool.spec
1 #
2 # Conditional build:
3 %bcond_with     musclev2        # for MuscleCard v2
4 #
5 %if %{with musclev2}
6 %define muscle_ver      2.0
7 %else
8 %define muscle_ver      1.3.0
9 %endif
10 Summary:        muscleTool - command line tool for MuscleCard enabled smartcards
11 Summary(pl.UTF-8):      muscleTool - narzędzie linii poleceń do kart procesorowych MuscleCard
12 Name:           muscletool
13 Version:        2.1.1
14 Release:        1
15 License:        BSD
16 Group:          Applications
17 #Source0Download: https://alioth.debian.org/project/showfiles.php?group_id=30112
18 Source0:        https://alioth.debian.org/frs/download.php/3180/%{name}-%{version}.tar.bz2
19 # Source0-md5:  262040198294075274418688c73c2538
20 URL:            http://muscleapps.alioth.debian.org/
21 BuildRequires:  libmusclecard-devel >= %{muscle_ver}
22 BuildRequires:  pkgconfig
23 BuildRequires:  readline-devel
24 Requires:       libmusclecard >= %{muscle_ver}
25 Obsoletes:      muscleframework-tools < 1.1.7
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 muscleTool is a command line tool for MuscleCard enabled smartcards.
30 The main function is to format a smart card, but it offers some
31 additional MuscleCard functionality. There are key, PIN, object and
32 general related functions.
33
34 %description -l pl.UTF-8
35 muscleTool to działające z linii poleceń narzędzie do kart
36 procesorowych z oprogramowaniem MuscleCard. Główną funkcją jest
37 formatowanie kart procesorowych, ale dostępne są też inne funkcje
38 związane z oprogramowaniem MuscleCard, związane m.in. z kluczami,
39 PIN-ami, obiektami.
40
41 %prep
42 %setup -q
43
44 %build
45 %configure \
46         --enable-readline \
47         %{?with_musclev2:--enable-version2}
48 %{__make}
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52
53 %{__make} install \
54         DESTDIR=$RPM_BUILD_ROOT
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %files
60 %defattr(644,root,root,755)
61 %doc AUTHORS COPYING ChangeLog README
62 %attr(755,root,root) %{_bindir}/muscleTool
63 %{_mandir}/man1/muscleTool.1*
This page took 0.110587 seconds and 3 git commands to generate.