libdmtx/libdmtx.spec
huayadong 687c57aadb update for 0.7.7-1
(cherry picked from commit 056440c7c1d41267a25c126a5908389c20eea0fd)
2023-08-31 09:18:21 +08:00

75 lines
1.5 KiB
RPMSpec

Name: libdmtx
Version: 0.7.7
Release: 1
Summary: Library for working with Data Matrix 2D bar-codes
License: BSD-2-Clause-Views
URL: https://github.com/dmtx
Source0: https://github.com/dmtx/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: gcc
BuildRequires: libtool
BuildRequires: make
%description
libdmtx is open source software for reading and writing Data Matrix 2D
bar-codes on Linux, Unix, OS X, Windows, and mobile devices. At its core
libdmtx is a shared library, allowing C/C++ programs to use its capabilities
without restrictions or overhead.
%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%autosetup -p1
./autogen.sh
%build
%configure --disable-static
%make_build
%install
%make_install
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%check
make check
pushd test
for t in simple
do
./${t}_test/${t}_test
done
popd
%files
%license LICENSE
%doc AUTHORS ChangeLog KNOWNBUG README README.linux TODO
%{_libdir}/%{name}.so.*
%files devel
%doc
%{_includedir}/*
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_mandir}/man3/%{name}.3*
%changelog
* Mon Aug 21 2023 huayadong <huayadong@kylinos.cn> - 0.7.7-1
- update for 0.7.7-1
* Thu Jul 14 2022 misaka00251 <misaka00251@misakanet.cn> - 0.7.5-1
- Init package