]>
Commit | Line | Data |
---|---|---|
bd7d2349 ER |
1 | # |
2 | # Conditional build: | |
bd7d2349 ER |
3 | %bcond_without tests # build without tests |
4 | ||
abc44f29 | 5 | Summary: Library for working with Data Matrix 2D bar-codes |
767b9689 | 6 | Summary(pl.UTF-8): Biblioteka do pracy z kodami paskowymi Data Matrix 2D |
abc44f29 | 7 | Name: libdmtx |
767b9689 | 8 | Version: 0.7.5 |
78007152 JR |
9 | Release: 1 |
10 | License: BSD | |
abc44f29 | 11 | Group: Libraries |
767b9689 JB |
12 | #Source0Download: https://github.com/dmtx/libdmtx/releases |
13 | Source0: https://github.com/dmtx/libdmtx/archive/v%{version}/%{name}-%{version}.tar.gz | |
14 | # Source0-md5: 82edcd68e9f4fa779f5f7573baf2a9f5 | |
15 | URL: https://github.com/dmtx/libdmtx | |
abc44f29 | 16 | BuildRequires: ImageMagick-devel |
767b9689 JB |
17 | BuildRequires: autoconf >= 2.50 |
18 | BuildRequires: automake | |
19 | BuildRequires: libtool | |
1aaa332f | 20 | BuildRequires: pkgconfig |
bd7d2349 ER |
21 | BuildRequires: rpmbuild(macros) >= 1.219 |
22 | %if %{with tests} | |
abc44f29 AM |
23 | BuildRequires: OpenGL-GLU-devel |
24 | BuildRequires: SDL_image-devel | |
25 | BuildRequires: libpng-devel | |
bd7d2349 | 26 | %endif |
bd7d2349 | 27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
abc44f29 AM |
28 | |
29 | %description | |
30 | libdmtx is open source software for reading and writing Data Matrix 2D | |
31 | bar-codes on Linux, Unix, OS X, Windows, and mobile devices. At its | |
32 | core libdmtx is a shared library, allowing C/C++ programs to use its | |
33 | capabilities without restrictions or overhead. | |
34 | ||
35 | The included utility programs, dmtxread and dmtxwrite, provide the | |
36 | official interface to libdmtx from the command line, and also serve as | |
37 | a good reference for programmers who wish to write their own programs | |
bd7d2349 | 38 | that interact with libdmtx. |
abc44f29 | 39 | |
767b9689 JB |
40 | %description -l pl.UTF-8 |
41 | libdmtx to mające otwarte źródła oprogramowanie do odczytu i zapisu | |
42 | kodów paskowych Data Matrix 3D pod Linuksem, Uniksem, OS X, Windows i | |
43 | na platformach mobilnych. Główną częścią jest biblioteka | |
44 | współdzielona, pozwalająca programom w C/C++ korzystać ze swoich | |
45 | możliwości bez ograniczeń czy narzutów. | |
46 | ||
47 | Załączone programy użytkowe - dmtxread i dmtxwrite - udostępniają | |
48 | oficjalny interfejs libdmtx z poziomu linii poleceń, a także służą | |
49 | jako dobre przykłady dla programistów chcących pisać własne programy | |
50 | współpracujące z libdmtx. | |
51 | ||
bd7d2349 | 52 | %package devel |
767b9689 JB |
53 | Summary: Development files for libdmtx library |
54 | Summary(pl.UTF-8): Pliki programistyczne biblioteki libdmtx | |
abc44f29 AM |
55 | Group: Development/Libraries |
56 | Requires: %{name} = %{version}-%{release} | |
57 | ||
bd7d2349 | 58 | %description devel |
767b9689 JB |
59 | This package contains the header files for developing applications |
60 | that use libdmtx. | |
61 | ||
62 | %description devel -l pl.UTF-8 | |
63 | Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji | |
64 | wykorzystujących bibliotekę libdmtx. | |
abc44f29 | 65 | |
abc44f29 AM |
66 | %prep |
67 | %setup -q | |
68 | ||
abc44f29 | 69 | %build |
767b9689 JB |
70 | %{__libtoolize} |
71 | %{__aclocal} -I m4 | |
72 | %{__autoconf} | |
73 | %{__autoheader} | |
74 | %{__automake} | |
abc44f29 | 75 | %configure \ |
bd7d2349 | 76 | --disable-static |
abc44f29 | 77 | |
bd7d2349 | 78 | %{__make} |
abc44f29 | 79 | |
bd7d2349 | 80 | %if %{with tests} |
767b9689 JB |
81 | %{__make} check \ |
82 | AM_CPPFLAGS+=-std=c99 | |
78007152 | 83 | ./test/simple_test/simple_test |
abc44f29 AM |
84 | %endif |
85 | ||
86 | %install | |
87 | rm -rf $RPM_BUILD_ROOT | |
abc44f29 AM |
88 | %{__make} install \ |
89 | DESTDIR=$RPM_BUILD_ROOT | |
90 | ||
bd7d2349 | 91 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libdmtx.la |
abc44f29 | 92 | |
abc44f29 AM |
93 | %clean |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
bd7d2349 ER |
96 | %post -p /sbin/ldconfig |
97 | %postun -p /sbin/ldconfig | |
abc44f29 AM |
98 | |
99 | %files | |
100 | %defattr(644,root,root,755) | |
767b9689 | 101 | %doc AUTHORS ChangeLog KNOWNBUG LICENSE NEWS README README.linux TODO |
bd7d2349 ER |
102 | %attr(755,root,root) %{_libdir}/libdmtx.so.*.*.* |
103 | %ghost %{_libdir}/libdmtx.so.0 | |
abc44f29 AM |
104 | |
105 | %files devel | |
106 | %defattr(644,root,root,755) | |
767b9689 | 107 | %attr(755,root,root) %{_libdir}/libdmtx.so |
bd7d2349 | 108 | %{_includedir}/dmtx.h |
767b9689 JB |
109 | %{_pkgconfigdir}/libdmtx.pc |
110 | %{_mandir}/man3/libdmtx.3* |