]>
Commit | Line | Data |
---|---|---|
2af19c50 MB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static libraries | |
4 | # | |
5 | Summary: Library for producing 2D barcodes (known as Data Matrix) | |
6 | Summary(pl.UTF-8): Biblioteka do tworzenia kodów kreskowych 2D (znanych jako DataMatrix) | |
7 | Name: iec16022 | |
d47181b0 JB |
8 | Version: 0.3.0 |
9 | Release: 1 | |
2af19c50 MB |
10 | License: GPL v2 |
11 | Group: Libraries | |
d47181b0 JB |
12 | #Source0Download: https://github.com/rdoeffinger/iec16022/releases |
13 | Source0: https://github.com/rdoeffinger/iec16022/releases/download/v%{version}/%{name}-%{version}.tar.xz | |
14 | # Source0-md5: bbd2e819fc202e682da0180ede15b7b5 | |
15 | URL: http://rdoeffinger.github.io/ | |
1d326cc7 | 16 | BuildRequires: autoconf >= 2.50 |
2af19c50 MB |
17 | BuildRequires: automake |
18 | BuildRequires: libtool | |
19 | BuildRequires: popt-devel | |
d47181b0 JB |
20 | BuildRequires: tar >= 1:1.22 |
21 | BuildRequires: xz | |
2af19c50 MB |
22 | BuildRequires: zlib-devel |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | iec16022 is a library for producing 2D barcodes, known as Data Matrix, | |
27 | defined in ISO/IEC 16022. | |
28 | ||
29 | %description -l pl.UTF-8 | |
30 | iec16022 jest biblioteką do tworzenia kodów kreskowych 2D, znanych | |
31 | jako DataMatrix, zdefiniowanych w standardzie ISO/IEC 16022. | |
32 | ||
33 | %package devel | |
34 | Summary: Header files for iec16022 library | |
35 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki iec16022 | |
36 | Group: Development/Libraries | |
37 | Requires: %{name} = %{version}-%{release} | |
38 | ||
39 | %description devel | |
40 | Header files for iec16022 library. | |
41 | ||
42 | %description devel -l pl.UTF-8 | |
43 | Pliki nagłówkowe biblioteki iec16022. | |
44 | ||
45 | %package static | |
46 | Summary: Static iec16022 library | |
47 | Summary(pl.UTF-8): Statyczna biblioteka iec16022 | |
48 | Group: Development/Libraries | |
49 | Requires: %{name}-devel = %{version}-%{release} | |
50 | ||
51 | %description static | |
52 | Static iec16022 library. | |
53 | ||
54 | %description static -l pl.UTF-8 | |
55 | Statyczna biblioteka iec16022. | |
56 | ||
57 | %prep | |
58 | %setup -q | |
59 | ||
60 | %build | |
61 | %{__libtoolize} | |
62 | %{__aclocal} | |
63 | %{__autoconf} | |
64 | %{__autoheader} | |
65 | %{__automake} | |
66 | %configure \ | |
67 | --disable-silent-rules | |
68 | %{__make} | |
69 | ||
70 | %install | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %{__make} install \ | |
74 | DESTDIR=$RPM_BUILD_ROOT | |
75 | ||
d47181b0 JB |
76 | # obsoleted by pkg-config |
77 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libiec16022.la | |
78 | ||
2af19c50 MB |
79 | %clean |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
82 | %post -p /sbin/ldconfig | |
83 | %postun -p /sbin/ldconfig | |
84 | ||
85 | %files | |
86 | %defattr(644,root,root,755) | |
87 | %doc AUTHORS ChangeLog NEWS README TODO | |
88 | %attr(755,root,root) %{_bindir}/iec16022 | |
89 | %attr(755,root,root) %{_libdir}/libiec16022.so.*.*.* | |
90 | %attr(755,root,root) %ghost %{_libdir}/libiec16022.so.0 | |
91 | %{_mandir}/man1/iec16022.1* | |
92 | ||
93 | %files devel | |
94 | %defattr(644,root,root,755) | |
95 | %attr(755,root,root) %{_libdir}/libiec16022.so | |
2af19c50 MB |
96 | %{_includedir}/iec16022 |
97 | %{_pkgconfigdir}/libiec16022.pc | |
98 | ||
99 | %if %{with static_libs} | |
100 | %files static | |
101 | %defattr(644,root,root,755) | |
102 | %{_libdir}/libiec16022.a | |
103 | %endif |