crossguid/crossguid.spec

84 lines
2.6 KiB
RPMSpec

Name: crossguid
Version: 0.2.2
Release: 1mamba
Summary: A minimal, cross platform, C++ GUID library
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/graeme-hill/crossguid
Source: https://github.com/graeme-hill/crossguid.git/master/crossguid-%{version}.tar.bz2
License: MIT
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libgcc
BuildRequires: libstdc++6-devel
BuildRequires: libuuid-devel
## AUTOBUILDREQ-END
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
CrossGuid is a minimal, cross platform, C++ GUID library. It uses the best native GUID/UUID ge
%package -n lib%{name}
Group: System/Libraries
Summary: Shared library for %{name}
%description -n lib%{name}
CrossGuid is a minimal, cross platform, C++ GUID library. It uses the best native GUID/UUID generator on the given platform and had a generic class for parsing, stringifying, and comparing IDs.
This package contains the %{name} shared library.
%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
CrossGuid is a minimal, cross platform, C++ GUID library. It uses the best native GUID/UUID generator on the given platform and had a generic class for parsing, stringifying, and comparing IDs.
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
sed -i "s|crossguid/cmake|cmake/crossguid|" CMakeLists.txt
%build
%cmake -d build \
-DCMAKE_INSTALL_DATADIR=%{_libdir}
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
rm -f %{buildroot}%{_libdir}/crossguid/{LICENSE,README.md}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libcrossguid.so.*
%doc LICENSE
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/crossguid
%{_includedir}/crossguid/guid.hpp
%{_libdir}/libcrossguid.so
%{_libdir}/pkgconfig/crossguid.pc
%dir %{_libdir}/cmake/crossguid
%{_libdir}/cmake/crossguid/crossguid-config*.cmake
%doc README.md
%changelog
* Sat Feb 20 2021 Automatic Build System <autodist@mambasoft.it> 0.2.2-1mamba
- automatic version update by autodist
* Tue Mar 15 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.0.20160315git-1mamba
- package created using the webbuild interface