]> git.pld-linux.org Git - packages/libdmtx.git/blame - libdmtx.spec
- new URLs, updated to 0.7.5
[packages/libdmtx.git] / libdmtx.spec
CommitLineData
bd7d2349
ER
1#
2# Conditional build:
bd7d2349
ER
3%bcond_without tests # build without tests
4
abc44f29 5Summary: Library for working with Data Matrix 2D bar-codes
767b9689 6Summary(pl.UTF-8): Biblioteka do pracy z kodami paskowymi Data Matrix 2D
abc44f29 7Name: libdmtx
767b9689 8Version: 0.7.5
78007152
JR
9Release: 1
10License: BSD
abc44f29 11Group: Libraries
767b9689
JB
12#Source0Download: https://github.com/dmtx/libdmtx/releases
13Source0: https://github.com/dmtx/libdmtx/archive/v%{version}/%{name}-%{version}.tar.gz
14# Source0-md5: 82edcd68e9f4fa779f5f7573baf2a9f5
15URL: https://github.com/dmtx/libdmtx
abc44f29 16BuildRequires: ImageMagick-devel
767b9689
JB
17BuildRequires: autoconf >= 2.50
18BuildRequires: automake
19BuildRequires: libtool
1aaa332f 20BuildRequires: pkgconfig
bd7d2349
ER
21BuildRequires: rpmbuild(macros) >= 1.219
22%if %{with tests}
abc44f29
AM
23BuildRequires: OpenGL-GLU-devel
24BuildRequires: SDL_image-devel
25BuildRequires: libpng-devel
bd7d2349 26%endif
bd7d2349 27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
abc44f29
AM
28
29%description
30libdmtx is open source software for reading and writing Data Matrix 2D
31bar-codes on Linux, Unix, OS X, Windows, and mobile devices. At its
32core libdmtx is a shared library, allowing C/C++ programs to use its
33capabilities without restrictions or overhead.
34
35The included utility programs, dmtxread and dmtxwrite, provide the
36official interface to libdmtx from the command line, and also serve as
37a good reference for programmers who wish to write their own programs
bd7d2349 38that interact with libdmtx.
abc44f29 39
767b9689
JB
40%description -l pl.UTF-8
41libdmtx to mające otwarte źródła oprogramowanie do odczytu i zapisu
42kodów paskowych Data Matrix 3D pod Linuksem, Uniksem, OS X, Windows i
43na platformach mobilnych. Główną częścią jest biblioteka
44współdzielona, pozwalająca programom w C/C++ korzystać ze swoich
45możliwości bez ograniczeń czy narzutów.
46
47Załączone programy użytkowe - dmtxread i dmtxwrite - udostępniają
48oficjalny interfejs libdmtx z poziomu linii poleceń, a także służą
49jako dobre przykłady dla programistów chcących pisać własne programy
50współpracujące z libdmtx.
51
bd7d2349 52%package devel
767b9689
JB
53Summary: Development files for libdmtx library
54Summary(pl.UTF-8): Pliki programistyczne biblioteki libdmtx
abc44f29
AM
55Group: Development/Libraries
56Requires: %{name} = %{version}-%{release}
57
bd7d2349 58%description devel
767b9689
JB
59This package contains the header files for developing applications
60that use libdmtx.
61
62%description devel -l pl.UTF-8
63Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji
64wykorzystują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
87rm -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
94rm -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*
This page took 0.098302 seconds and 4 git commands to generate.