libprison/libprison.spec

75 lines
2.1 KiB
RPMSpec

%define majver %(echo %version | cut -d. -f1-2)
Name: libprison
Version: 1.1.1
Release: 1mamba
Summary: A barcode api offering a nice Qt api to produce QRCode barcodes and DataMatrix barcodes
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://projects.kde.org/prison
Source: ftp://ftp.kde.org/pub/kde/stable/prison/%{version}/src/prison-%{version}.tar.xz
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libdmtx-devel
BuildRequires: libgcc
BuildRequires: libqrencode-devel
BuildRequires: libqt4-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
prison is a barcode api currently offering a nice Qt api to produce QRCode barcodes and DataMatrix barcodes, and can easily be made support more.
%package devel
Group: Development/Libraries
Summary: Static libraries and headers for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
prison is a barcode api currently offering a nice Qt api to produce QRCode barcodes and DataMatrix barcodes, and can easily be made support more.
This package contains static libraries and header files need for development.
%prep
%setup -q -n prison-%{version}
%build
%cmake -d build
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libprison.so.*
%doc LICENSE
%files devel
%defattr(-,root,root)
%dir %{_includedir}/prison
%{_includedir}/prison/*
%{_libdir}/cmake/Prison/PrisonConfig.cmake
%{_libdir}/libprison.so
%changelog
* Wed Apr 09 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.1-1mamba
- update to 1.1.1
* Tue Mar 18 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.0-1mamba
- update to 1.1.0
* Mon Aug 08 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0-1mamba
- package created by autospec