pystring/pystring.spec

73 lines
2.0 KiB
RPMSpec
Raw Normal View History

Name: pystring
Version: 1.1.4
Release: 1mamba
Summary: C++ functions matching the interface and behavior of python string methods with std::string
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/imageworks/pystring
Source: https://github.com/imageworks/pystring.git/v%{version}/pystring-%{version}.tar.bz2
Patch0: pystring-1.1.4-fix-makefile.patch
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description
C++ functions matching the interface and behavior of python string methods with std::string.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n lib%{name}
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
%patch 0 -p1 -b .fix-makefile
%build
%make LIBDIR=%{_libdir}
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall LIBDIR=%{_libdir}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libpystring.so.*
%doc LICENSE
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/pystring
%{_includedir}/pystring/pystring.h
%{_libdir}/libpystring.a
%{_libdir}/libpystring.so
%doc README.md
%changelog
* Sun Feb 04 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.4-1mamba
- package created using the webbuild interface